add pics
All checks were successful
Dynamic Branch Deploy / build-and-deploy (push) Successful in 1m11s
All checks were successful
Dynamic Branch Deploy / build-and-deploy (push) Successful in 1m11s
This commit is contained in:
3
types.go
3
types.go
@@ -2,6 +2,7 @@ package main
|
||||
|
||||
type ObstacleDef struct {
|
||||
ID string `json:"id"`
|
||||
Type string `json:"type"`
|
||||
Width float64 `json:"width"`
|
||||
Height float64 `json:"height"`
|
||||
Color string `json:"color"`
|
||||
@@ -19,6 +20,7 @@ type GameConfig struct {
|
||||
// Dynamischer State
|
||||
type ActiveObstacle struct {
|
||||
ID string `json:"id"`
|
||||
Type string `json:"type"`
|
||||
X float64 `json:"x"`
|
||||
Y float64 `json:"y"`
|
||||
Width float64 `json:"w"`
|
||||
@@ -41,6 +43,7 @@ type ValidateResponse struct {
|
||||
Status string `json:"status"`
|
||||
VerifiedScore int `json:"verifiedScore"`
|
||||
ServerObs []ActiveObstacle `json:"serverObs"`
|
||||
ActivePowerup string `json:"activePowerup"`
|
||||
}
|
||||
|
||||
type StartResponse struct {
|
||||
|
||||
Reference in New Issue
Block a user