重构NetManager支持MessagePair,新增TSRPCWsClient。
This commit is contained in:
11
client/assets/scripts/Shared/protocols/MsgReqLogin.ts
Normal file
11
client/assets/scripts/Shared/protocols/MsgReqLogin.ts
Normal file
@@ -0,0 +1,11 @@
|
||||
|
||||
/**
|
||||
* 登录请求消息
|
||||
*/
|
||||
export interface MsgReqLogin {
|
||||
/** 玩家ID(用于识别玩家) */
|
||||
playerId: string;
|
||||
|
||||
/** 玩家昵称(可选,新玩家时使用) */
|
||||
playerName?: string;
|
||||
}
|
||||
Reference in New Issue
Block a user