/
change.go
73 lines (60 loc) · 2.34 KB
/
change.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
package match_to
type RoomStateChange struct {
GameRoomInfo GameRoomInfo `json:"gameRoomInfo"`
}
type GameRoomInfo struct {
GameRoomConfig GameRoomConfig `json:"gameRoomConfig"`
StateType string `json:"stateType"`
Players []PlayerInfo `json:"players"`
FinalMatchResult *FinalMatchResult `json:"finalMatchResult"`
}
type GameRoomConfig struct {
EventId string `json:"eventId"`
ReservedPlayers []ReservedPlayer `json:"reservedPlayers"`
MatchId string `json:"matchId"`
MatchConfig MatchConfig `json:"matchConfig"`
GreConfig GreConfig `json:"greConfig"`
GreHostLoggerLevel string `json:"greHostLoggerLevel"`
JoinRoomTimeoutSecs int `json:"joinRoomTimeoutSecs"`
PlayerDisconnectTimeoutSecs int `json:"playerDisconnectTimeoutSecs"`
}
type PlayerInfo struct {
UserId string `json:"userId"`
SystemSeatId int `json:"systemSeatId"`
}
type ReservedPlayer struct {
UserId string `json:"userId"`
PlayerName string `json:"playerName"`
SystemSeatId int `json:"systemSeatId"`
TeamId int `json:"teamId"`
ConnectionInfo ConnectionInfo `json:"connectionInfo"`
CourseId string `json:"courseId"`
}
type ConnectionInfo struct {
ConnectionState string `json:"connectionState"`
}
type MatchConfig struct {
}
type GreConfig struct {
GameStateRedactorConfiguration GameStateRedactorConfiguration `json:"gameStateRedactorConfiguration"`
ClipsConfiguration ClipsConfiguration `json:"clipsConfiguration"`
CheckpointConfiguration CheckpointConfiguration `json:"checkpointConfiguration"`
}
type GameStateRedactorConfiguration struct {
EnableRedaction bool `json:"enableRedaction"`
EnableForceDiff bool `json:"enableForceDiff"`
}
type ClipsConfiguration struct {
}
type CheckpointConfiguration struct {
}
type FinalMatchResult struct {
MatchId string `json:"matchId"`
MatchCompletedReason string `json:"matchCompletedReason"`
ResultList []ResultInfo `json:"resultList"`
}
type ResultInfo struct {
Scope string `json:"scope"`
Result string `json:"result"`
WinningTeamId int `json:"winningTeamId"`
}