Added ClientInput

- refactored some magic numbers
This commit is contained in:
2026-01-27 16:42:24 +01:00
parent 0767ddac38
commit 3c011e272b
3 changed files with 76 additions and 40 deletions
+13
View File
@@ -20,6 +20,15 @@ const (
CmdClientInput byte = 0x04
)
const (
ClientCountOffset = 1
// Payload Sizes
PayloadVersionSize = 10
PayloadClientInfoSize = 19
PayloadClientInputSize = 13
)
type PayloadVersion struct {
Version uint16
Buildhash [7]uint8
@@ -36,4 +45,8 @@ type PayloadClientInfo struct {
}
type PayloadClientInput struct {
ClientID byte
X float32
Y float32
InputMask uint32
}