[add] Room OK
This commit is contained in:
parent
14a11e2f3a
commit
905fdff15f
6
BaseConnection.ts
Normal file
6
BaseConnection.ts
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
// declare module 'tsrpc' {
|
||||||
|
// export interface BaseConnection {
|
||||||
|
// // 自定义的新字段
|
||||||
|
// userId: string;
|
||||||
|
// }
|
||||||
|
// }
|
@ -1,16 +1,19 @@
|
|||||||
export enum EGameState {
|
export enum EGameState {
|
||||||
Loading,
|
Ready,
|
||||||
|
Wait,
|
||||||
TurnCards,
|
TurnCards,
|
||||||
ImageViewer,
|
ImageViewer,
|
||||||
ChooseCards,
|
ChooseCards,
|
||||||
|
|
||||||
MyLoading = 100,
|
MyReady = 100,
|
||||||
|
MyWait,
|
||||||
MyTurnCards,
|
MyTurnCards,
|
||||||
MyImageViewer,
|
MyImageViewer,
|
||||||
MyChooseCards,
|
MyChooseCards,
|
||||||
|
|
||||||
OtherLoading = 200,
|
OtherReady = 200,
|
||||||
OtherTurnCards = 201,
|
OtherWait,
|
||||||
|
OtherTurnCards,
|
||||||
OtherImageViewer,
|
OtherImageViewer,
|
||||||
OtherChooseCards,
|
OtherChooseCards,
|
||||||
}
|
}
|
@ -1 +1 @@
|
|||||||
export type MsgChangeState = number
|
export type MsgChangeState = any[]
|
@ -46,35 +46,34 @@ export interface ServiceType {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export const serviceProto: ServiceProto<ServiceType> = {
|
export const serviceProto: ServiceProto<ServiceType> = {
|
||||||
"version": 12,
|
|
||||||
"services": [
|
"services": [
|
||||||
{
|
{
|
||||||
"id": 4,
|
"id": 0,
|
||||||
"name": "account/Login",
|
"name": "account/Login",
|
||||||
"type": "api"
|
"type": "api"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": 0,
|
"id": 1,
|
||||||
"name": "Chat",
|
"name": "Chat",
|
||||||
"type": "msg"
|
"type": "msg"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": 12,
|
"id": 2,
|
||||||
"name": "room/ChangeState",
|
"name": "room/ChangeState",
|
||||||
"type": "msg"
|
"type": "msg"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": 10,
|
"id": 3,
|
||||||
"name": "room/Exit",
|
"name": "room/Exit",
|
||||||
"type": "msg"
|
"type": "msg"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": 11,
|
"id": 4,
|
||||||
"name": "room/GoToGame",
|
"name": "room/GoToGame",
|
||||||
"type": "msg"
|
"type": "msg"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": 13,
|
"id": 5,
|
||||||
"name": "room/ChangeState",
|
"name": "room/ChangeState",
|
||||||
"type": "api"
|
"type": "api"
|
||||||
},
|
},
|
||||||
@ -135,7 +134,10 @@ export const serviceProto: ServiceProto<ServiceType> = {
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"room/MsgChangeState/MsgChangeState": {
|
"room/MsgChangeState/MsgChangeState": {
|
||||||
"type": "Number"
|
"type": "Array",
|
||||||
|
"elementType": {
|
||||||
|
"type": "Any"
|
||||||
|
}
|
||||||
},
|
},
|
||||||
"room/MsgExit/MsgExit": {
|
"room/MsgExit/MsgExit": {
|
||||||
"type": "Number"
|
"type": "Number"
|
||||||
@ -152,14 +154,6 @@ export const serviceProto: ServiceProto<ServiceType> = {
|
|||||||
"type": {
|
"type": {
|
||||||
"type": "Number"
|
"type": "Number"
|
||||||
}
|
}
|
||||||
},
|
|
||||||
{
|
|
||||||
"id": 1,
|
|
||||||
"name": "data",
|
|
||||||
"type": {
|
|
||||||
"type": "Any"
|
|
||||||
},
|
|
||||||
"optional": true
|
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
@ -170,7 +164,7 @@ export const serviceProto: ServiceProto<ServiceType> = {
|
|||||||
"type": "Interface",
|
"type": "Interface",
|
||||||
"properties": [
|
"properties": [
|
||||||
{
|
{
|
||||||
"id": 1,
|
"id": 0,
|
||||||
"name": "null",
|
"name": "null",
|
||||||
"type": {
|
"type": {
|
||||||
"type": "String"
|
"type": "String"
|
||||||
|
Loading…
Reference in New Issue
Block a user