WIP, tout est en chantier, très content :)

This commit is contained in:
LuckyLaszlo
2022-11-20 15:46:45 +01:00
parent 023b5ed485
commit 48665cfe30
22 changed files with 580 additions and 302 deletions

37
src/shared_js/enums.ts Normal file
View File

@@ -0,0 +1,37 @@
enum EventTypes {
// Class Implemented
gameUpdate = 1,
assignId,
matchmakingComplete,
// Generic
matchmakingInProgress,
matchNewRound, // unused
matchStart, // unused
matchPause, // unused
matchResume, // unused
// Client
clientAnnounce,
clientPlayerReady,
clientInput,
}
enum InputEnum {
up = 1,
down
}
enum PlayerSide {
left = 1,
right
}
enum ClientRole {
player = 1,
spectator
}
export {EventTypes, InputEnum, PlayerSide, ClientRole}