SendAns
This commit is contained in:
parent
b65105567d
commit
a0c82c96ef
@ -20,6 +20,9 @@ export enum EGameState {
|
||||
/** 回合結束 */
|
||||
TurnEnd,
|
||||
|
||||
/** 遊戲結束 */
|
||||
GameOver,
|
||||
|
||||
MyReady = 100,
|
||||
MyWait,
|
||||
MyTurnCards,
|
||||
|
3
room/PtlSendAns.ts
Normal file
3
room/PtlSendAns.ts
Normal file
@ -0,0 +1,3 @@
|
||||
export interface ReqSendAns { answer: number }
|
||||
|
||||
export type ResSendAns = boolean
|
@ -1,14 +1,15 @@
|
||||
import { ServiceProto } from "tsrpc-proto";
|
||||
import { ReqLogin, ResLogin } from "./account/PtlLogin";
|
||||
import { MsgChat } from "./MsgChat";
|
||||
import { MsgChangeState } from "./room/MsgChangeState";
|
||||
import { MsgExit } from "./room/MsgExit";
|
||||
import { MsgGoToGame } from "./room/MsgGoToGame";
|
||||
import { ReqChangeState, ResChangeState } from "./room/PtlChangeState";
|
||||
import { ReqCreate, ResCreate } from "./room/PtlCreate";
|
||||
import { ReqExit, ResExit } from "./room/PtlExit";
|
||||
import { ReqJoin, ResJoin } from "./room/PtlJoin";
|
||||
import { ReqList, ResList } from "./room/PtlList";
|
||||
import { ServiceProto } from 'tsrpc-proto';
|
||||
import { ReqLogin, ResLogin } from './account/PtlLogin';
|
||||
import { MsgChat } from './MsgChat';
|
||||
import { MsgChangeState } from './room/MsgChangeState';
|
||||
import { MsgExit } from './room/MsgExit';
|
||||
import { MsgGoToGame } from './room/MsgGoToGame';
|
||||
import { ReqChangeState, ResChangeState } from './room/PtlChangeState';
|
||||
import { ReqCreate, ResCreate } from './room/PtlCreate';
|
||||
import { ReqExit, ResExit } from './room/PtlExit';
|
||||
import { ReqJoin, ResJoin } from './room/PtlJoin';
|
||||
import { ReqList, ResList } from './room/PtlList';
|
||||
import { ReqSendAns, ResSendAns } from './room/PtlSendAns';
|
||||
|
||||
export interface ServiceType {
|
||||
api: {
|
||||
@ -35,6 +36,10 @@ export interface ServiceType {
|
||||
"room/List": {
|
||||
req: ReqList,
|
||||
res: ResList
|
||||
},
|
||||
"room/SendAns": {
|
||||
req: ReqSendAns,
|
||||
res: ResSendAns
|
||||
}
|
||||
},
|
||||
msg: {
|
||||
@ -46,6 +51,7 @@ export interface ServiceType {
|
||||
}
|
||||
|
||||
export const serviceProto: ServiceProto<ServiceType> = {
|
||||
"version": 1,
|
||||
"services": [
|
||||
{
|
||||
"id": 0,
|
||||
@ -96,6 +102,11 @@ export const serviceProto: ServiceProto<ServiceType> = {
|
||||
"id": 9,
|
||||
"name": "room/List",
|
||||
"type": "api"
|
||||
},
|
||||
{
|
||||
"id": 10,
|
||||
"name": "room/SendAns",
|
||||
"type": "api"
|
||||
}
|
||||
],
|
||||
"types": {
|
||||
@ -222,6 +233,21 @@ export const serviceProto: ServiceProto<ServiceType> = {
|
||||
"elementType": {
|
||||
"type": "Any"
|
||||
}
|
||||
},
|
||||
"room/PtlSendAns/ReqSendAns": {
|
||||
"type": "Interface",
|
||||
"properties": [
|
||||
{
|
||||
"id": 0,
|
||||
"name": "answer",
|
||||
"type": {
|
||||
"type": "Number"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"room/PtlSendAns/ResSendAns": {
|
||||
"type": "Boolean"
|
||||
}
|
||||
}
|
||||
};
|
Loading…
Reference in New Issue
Block a user