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