Skip to content

Commit d746e86

Browse files
committed
Add more reasonable initial sample data for development
1 parent 22d07c1 commit d746e86

File tree

1 file changed

+40
-5
lines changed

1 file changed

+40
-5
lines changed

src/main.js

Lines changed: 40 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,35 +18,70 @@ const store = new Vuex.Store({
1818
refereeMsg: new Referee({
1919
yellow: new Referee.TeamInfo({
2020
name: 'Yellow',
21-
score: 0
21+
score: 0,
22+
yellowCards: 10,
23+
yellowCardTimes: [15000000, 61000000, 120000000, 1],
24+
maxAllowedBots: 11,
2225
}),
2326
blue: new Referee.TeamInfo({
2427
name: 'Blue',
25-
score: 1
28+
score: 10,
29+
maxAllowedBots: 6,
2630
}),
27-
stage: 0,
28-
command: 0,
29-
stageTimeLeft: 4,
31+
stage: 6,
32+
command: 3,
33+
stageTimeLeft: 140000000,
34+
gameEvents: [
35+
{
36+
origin: ['TIGERs AutoRef', 'ER-Force', 'Majority'],
37+
attackerTooCloseToDefenseArea: {
38+
byTeam: 1,
39+
byBot: 1,
40+
distance: 0.2,
41+
}
42+
},
43+
{
44+
origin: ['TIGERs AutoRef', 'ER-Force', 'Majority'],
45+
botKickedBallTooFast: {
46+
byTeam: 2,
47+
byBot: 1,
48+
initialBallSpeed: 42.0,
49+
chipped: true,
50+
}
51+
},
52+
{
53+
origin: ['TIGERs AutoRef', 'ER-Force', 'Majority'],
54+
ballLeftFieldTouchLine: {
55+
byTeam: 1,
56+
byBot: 1,
57+
}
58+
}
59+
]
3060
})
3161
},
3262
mutations: {
3363
SOCKET_ONOPEN() {
64+
// empty
3465
}
3566
,
3667
SOCKET_ONCLOSE() {
68+
// empty
3769
}
3870
,
3971
SOCKET_ONERROR() {
72+
// empty
4073
}
4174
,
4275
SOCKET_ONMESSAGE(state, message) {
4376
state.refereeMsg = Referee.decode(new Uint8Array(message.data));
4477
}
4578
,
4679
SOCKET_RECONNECT() {
80+
// empty
4781
}
4882
,
4983
SOCKET_RECONNECT_ERROR() {
84+
// empty
5085
}
5186
,
5287
}

0 commit comments

Comments
 (0)