Shared同步脚本
This commit is contained in:
19
client/assets/scripts/Shared/protocols/MsgPlayerMove.ts
Normal file
19
client/assets/scripts/Shared/protocols/MsgPlayerMove.ts
Normal file
@@ -0,0 +1,19 @@
|
||||
import { Position } from './base';
|
||||
|
||||
/**
|
||||
* 玩家移动广播消息
|
||||
* 当有玩家移动时,广播给所有在线玩家
|
||||
*/
|
||||
export interface MsgPlayerMove {
|
||||
/** 移动的玩家ID */
|
||||
playerId: string;
|
||||
|
||||
/** 玩家昵称 */
|
||||
playerName: string;
|
||||
|
||||
/** 移动后的位置 */
|
||||
position: Position;
|
||||
|
||||
/** 移动时间戳 */
|
||||
timestamp: number;
|
||||
}
|
||||
Reference in New Issue
Block a user