Shared同步脚本
This commit is contained in:
26
client/assets/scripts/Shared/protocols/PtlMove.ts
Normal file
26
client/assets/scripts/Shared/protocols/PtlMove.ts
Normal file
@@ -0,0 +1,26 @@
|
||||
import { Position } from './base';
|
||||
|
||||
/**
|
||||
* 移动请求
|
||||
*/
|
||||
export interface ReqMove {
|
||||
/** 目标位置 X 坐标 */
|
||||
x: number;
|
||||
|
||||
/** 目标位置 Y 坐标 */
|
||||
y: number;
|
||||
}
|
||||
|
||||
/**
|
||||
* 移动响应
|
||||
*/
|
||||
export interface ResMove {
|
||||
/** 是否成功 */
|
||||
success: boolean;
|
||||
|
||||
/** 消息 */
|
||||
message?: string;
|
||||
|
||||
/** 实际移动后的位置 */
|
||||
position?: Position;
|
||||
}
|
||||
Reference in New Issue
Block a user