Closed tynidev closed 1 year ago
Should be able to get from:
"game:update_state": {
"event": "string",
"game": {
"arena": "string",
"ball": {
"location": {
"X": "number",
"Y": "number",
"Z": "number"
},
"speed": "number",
"team": "number"
},
"hasTarget": "boolean",
"hasWinner": "boolean",
"isOT": "boolean",
"isReplay": "boolean",
"target": "string",
"teams": {
"0": {
"color_primary": "string",
"color_secondary": "string",
"name": "string",
"score": "number"
},
"1": {
"color_primary": "string",
"color_secondary": "string",
"name": "string",
"score": "number"
}
},
"time": "number",
"winner": "string"
},
"hasGame": "boolean",
"players": {
"PLAYER OBJECT": {
"assists": "number",
"attacker": "string",
"boost": "number",
"cartouches": "number",
"demos": "number",
"goals": "number",
"hasCar": "boolean",
"id": "string",
"isDead": "boolean",
"isPowersliding": "boolean",
"isSonic": "boolean",
"location": {
"X": "number",
"Y": "number",
"Z": "number",
"pitch": "number",
"roll": "number",
"yaw": "number"
},
"name": "string",
"onGround": "boolean",
"onWall": "boolean",
"primaryID": "string",
"saves": "number",
"score": "number",
"shortcut": "number",
"shots": "number",
"speed": "number",
"team": "number",
"touches": "number"
}
}
}