|
119 | 119 | return entry.change.yellowCardOver.forTeam;
|
120 | 120 | case 'addGameEvent':
|
121 | 121 | return this.gameEventDetails(entry.change.addGameEvent.gameEvent).byTeam;
|
| 122 | + case 'addPassiveGameEvent': |
| 123 | + return this.gameEventDetails(entry.change.addPassiveGameEvent.gameEvent).byTeam; |
122 | 124 | case 'addProposedGameEvent':
|
123 | 125 | return this.gameEventDetails(entry.change.addProposedGameEvent.gameEvent).byTeam;
|
124 | 126 | case 'updateTeamState':
|
125 | 127 | return entry.change.updateTeamState.forTeam;
|
| 128 | + case 'newGameState': |
| 129 | + return entry.change.newGameState.gameState.forTeam; |
126 | 130 | default:
|
127 | 131 | return undefined;
|
128 | 132 | }
|
|
133 | 137 | return 'terminal';
|
134 | 138 | case 'changeStage':
|
135 | 139 | return 'gavel';
|
| 140 | + case 'setBallPlacementPos': |
| 141 | + return 'futbol'; |
136 | 142 | case 'addYellowCard':
|
137 | 143 | return 'chess-board';
|
138 | 144 | case 'addRedCard':
|
|
141 | 147 | return 'clock';
|
142 | 148 | case 'addGameEvent':
|
143 | 149 | return 'exclamation-triangle';
|
| 150 | + case 'addPassiveGameEvent': |
| 151 | + return 'exclamation-triangle'; |
144 | 152 | case 'addProposedGameEvent':
|
145 | 153 | return 'recycle';
|
146 | 154 | case 'startBallPlacement':
|
147 | 155 | return 'futbol';
|
148 |
| - case 'setBallPlacementPos': |
149 |
| - return 'futbol'; |
150 | 156 | case 'continue':
|
151 | 157 | return 'bullhorn';
|
152 | 158 | case 'updateConfig':
|
|
157 | 163 | return 'edit';
|
158 | 164 | case 'revert':
|
159 | 165 | return 'exclamation';
|
| 166 | + case 'newGameState': |
| 167 | + return 'gavel'; |
| 168 | + case 'acceptGameEventProposals': |
| 169 | + return 'check-circle'; |
160 | 170 | default:
|
161 | 171 | return 'question-circle';
|
162 | 172 | }
|
|
168 | 178 | return 'New command: ' + entry.change.newCommand.command.type;
|
169 | 179 | case 'changeStage':
|
170 | 180 | return 'New stage: ' + entry.change.changeStage.newStage;
|
| 181 | + case 'setBallPlacementPos': |
| 182 | + return 'New ball placement pos'; |
171 | 183 | case 'addYellowCard':
|
172 | 184 | return 'Yellow card';
|
173 | 185 | case 'addRedCard':
|
|
176 | 188 | return 'Yellow card over';
|
177 | 189 | case 'addGameEvent':
|
178 | 190 | return 'New game event: ' + entry.change.addGameEvent.gameEvent.type;
|
| 191 | + case 'addPassiveGameEvent': |
| 192 | + return 'New passive game event: ' + entry.change.addPassiveGameEvent.gameEvent.type; |
179 | 193 | case 'addProposedGameEvent':
|
180 | 194 | return 'New proposed game event: ' + entry.change.addProposedGameEvent.gameEvent.type;
|
181 | 195 | case 'startBallPlacement':
|
182 | 196 | return 'Start ball placement';
|
183 |
| - case 'setBallPlacementPos': |
184 |
| - return 'New ball placement pos'; |
185 | 197 | case 'continue':
|
186 | 198 | return 'Continue';
|
187 | 199 | case 'updateConfig':
|
|
192 | 204 | return 'Switch colors';
|
193 | 205 | case 'revert':
|
194 | 206 | return 'Revert';
|
| 207 | + case 'newGameState': |
| 208 | + return 'New game state: ' + entry.change.newGameState.gameState.type; |
| 209 | + case 'acceptGameEventProposals': |
| 210 | + return 'Accept game event proposals'; |
195 | 211 | default:
|
196 | 212 | return type;
|
197 | 213 | }
|
|
0 commit comments