cleanup de fichiers en double

This commit is contained in:
MarcEricMartel
2023-09-29 12:04:08 -04:00
parent 180fd39f2e
commit 954b976f27
22 changed files with 287 additions and 3427 deletions

View File

@@ -18,9 +18,26 @@ namespace netprot {
LAST_PACK
};
struct Keys {
bool forward,
backward,
left,
right,
jump,
shoot;
};
struct States {
bool jumping,
shooting,
hit,
powerup;
};
struct Input { // cli -> srv UDP ~frame
Timestamp timestamp;
uint8_t keys; // 0bFBLRJS__ bit-packing de bool.
uint64_t sid = 0;
Keys keys; // 0bFBLRJS__ bit-packing de bool.
Vector3f direction;
};
@@ -28,8 +45,8 @@ namespace netprot {
Timestamp timestamp;
uint64_t id = 0;
Vector3f position,
direction;
uint8_t states; // 0bJSH_____ bit-packing de bool.
direction;
States states; // 0bJSH_____ bit-packing de bool.
};
struct Sync { // srv -> cli TCP ~second