Added ClientInput
- refactored some magic numbers
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user