Shared同步脚本
This commit is contained in:
22
client/assets/scripts/Shared/protocols/MsgPlayerJoin.ts
Normal file
22
client/assets/scripts/Shared/protocols/MsgPlayerJoin.ts
Normal file
@@ -0,0 +1,22 @@
|
||||
import { Position } from './base';
|
||||
|
||||
/**
|
||||
* 玩家加入游戏广播消息
|
||||
* 当有新玩家登录或加入游戏时,广播给所有在线玩家
|
||||
*/
|
||||
export interface MsgPlayerJoin {
|
||||
/** 加入的玩家ID */
|
||||
playerId: string;
|
||||
|
||||
/** 玩家昵称 */
|
||||
playerName: string;
|
||||
|
||||
/** 玩家位置 */
|
||||
position: Position;
|
||||
|
||||
/** 是否新玩家 */
|
||||
isNewPlayer: boolean;
|
||||
|
||||
/** 加入时间戳 */
|
||||
timestamp: number;
|
||||
}
|
||||
Reference in New Issue
Block a user