59 lines
1.2 KiB
TypeScript
Raw Normal View History

2022-12-04 22:10:30 +08:00
// export enum ApiMsgEnum {
// ApiPlayerList = 'ApiPlayerList',
// ApiPlayerJoin = 'ApiPlayerJoin',
// ApiRoomList = 'ApiRoomList',
// ApiRoomCreate = 'ApiRoomCreate',
// ApiRoomJoin = 'ApiRoomJoin',
// ApiRoomLeave = 'ApiRoomLeave',
// ApiGameStart = 'ApiGameStart',
// MsgPlayerList = 'MsgPlayerList',
// MsgRoomList = 'MsgRoomList',
// MsgRoom = 'MsgRoom',
// MsgGameStart = 'MsgGameStart',
// MsgClientSync = 'MsgClientSync',
// MsgServerSync = 'MsgServerSync',
// }
2022-12-03 20:06:57 +08:00
export enum ApiMsgEnum {
2022-12-04 22:10:30 +08:00
ApiPlayerList,
ApiPlayerJoin,
ApiRoomList,
ApiRoomCreate,
ApiRoomJoin,
ApiRoomLeave,
ApiGameStart,
2022-12-07 22:24:46 +08:00
ApiGameEnd,
2022-12-04 22:10:30 +08:00
MsgPlayerList,
MsgRoomList,
MsgRoom,
MsgGameStart,
2022-12-07 22:24:46 +08:00
MsgGameEnd,
2022-12-04 22:10:30 +08:00
MsgClientSync,
MsgServerSync,
2022-12-03 20:06:57 +08:00
}
2022-12-04 22:10:30 +08:00
// export enum InputTypeEnum {
// ActorMove = 'ActorMove',
// WeaponShoot = 'WeaponShoot',
// TimePast = 'TimePast',
// }
2022-12-03 20:06:57 +08:00
export enum InputTypeEnum {
2022-12-04 22:10:30 +08:00
ActorMove,
WeaponShoot,
TimePast,
2022-12-03 20:06:57 +08:00
}
export enum EntityTypeEnum {
Map1 = 'Map1',
Actor1 = 'Actor1',
Actor2 = 'Actor2',
Weapon1 = 'Weapon1',
Weapon2 = 'Weapon2',
Bullet1 = 'Bullet1',
Bullet2 = 'Bullet2',
Explosion = 'Explosion',
JoyStick = 'JoyStick',
Shoot = 'Shoot',
}