From 128caeddefa4eba5cdae7a308c9ce6a3b267c410 Mon Sep 17 00:00:00 2001 From: JianMiau Date: Wed, 10 Jan 2024 11:26:00 +0800 Subject: [PATCH] =?UTF-8?q?[add]=20=E9=81=8A=E6=88=B2Type?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- define/enum.ts | 3 +++ room/PtlCreate.ts | 2 +- serviceProto.ts | 8 ++++---- 3 files changed, 8 insertions(+), 5 deletions(-) diff --git a/define/enum.ts b/define/enum.ts index c937a9c..3ea2191 100644 --- a/define/enum.ts +++ b/define/enum.ts @@ -41,4 +41,7 @@ export enum EGameState { OtherChooseCards, OtherChooseCard, OtherTurnEnd, +} +export enum EGameType { + foreigners } \ No newline at end of file diff --git a/room/PtlCreate.ts b/room/PtlCreate.ts index 3114d65..5bd9aa9 100644 --- a/room/PtlCreate.ts +++ b/room/PtlCreate.ts @@ -1,3 +1,3 @@ -export interface ReqCreate { null: string } +export interface ReqCreate { type: number } export type ResCreate = number \ No newline at end of file diff --git a/serviceProto.ts b/serviceProto.ts index 7856ecd..64ebea9 100644 --- a/serviceProto.ts +++ b/serviceProto.ts @@ -51,7 +51,7 @@ export interface ServiceType { } export const serviceProto: ServiceProto = { - "version": 1, + "version": 2, "services": [ { "id": 0, @@ -175,10 +175,10 @@ export const serviceProto: ServiceProto = { "type": "Interface", "properties": [ { - "id": 0, - "name": "null", + "id": 1, + "name": "type", "type": { - "type": "String" + "type": "Number" } } ]