13 lines
213 B
Go
13 lines
213 B
Go
package main
|
|
|
|
type InputMessage struct {
|
|
PlayerID string
|
|
DX float64 `json:"dx"`
|
|
DY float64 `json:"dy"`
|
|
}
|
|
|
|
type StateMessage struct {
|
|
Type string `json:"type"`
|
|
Payload any `json:"payload"`
|
|
}
|