cleanup de fichiers en double
This commit is contained in:
		| @@ -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 | ||||
|   | ||||
		Reference in New Issue
	
	Block a user