Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
d.zhdanov
04_snakes_task
Commits
22d90ce7
Commit
22d90ce7
authored
5 months ago
by
d.zhdanov
Browse files
Options
Download
Email Patches
Plain Diff
Update snakes.proto
parent
44afee12
Pipeline
#154311
passed with stage
in 1 minute
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
src/main/protobuf/snakes.proto
src/main/protobuf/snakes.proto
+5
-5
No files found.
src/main/protobuf/snakes.proto
View file @
22d90ce7
...
...
@@ -30,10 +30,10 @@ message GamePlayer {
/* Параметры идущей игры (не должны меняться в процессе игры) */
message
GameConfig
{
optional
int32
width
=
1
;
// Ширина поля в клетках (от 10 до 100)
optional
int32
height
=
2
;
// Высота поля в клетках (от 10 до 100)
optional
int32
food_static
=
3
;
// Количество клеток с едой, независимо от числа игроков (от 0 до 100)
optional
int32
state_delay_ms
=
5
;
// Задержка между ходами (сменой состояний) в игре, в миллисекундах (от 100 до 3000)
int32
width
=
1
;
// Ширина поля в клетках (от 10 до 100)
int32
height
=
2
;
// Высота поля в клетках (от 10 до 100)
int32
food_static
=
3
;
// Количество клеток с едой, независимо от числа игроков (от 0 до 100)
int32
state_delay_ms
=
5
;
// Задержка между ходами (сменой состояний) в игре, в миллисекундах (от 100 до 3000)
}
/* Игроки конкретной игры */
...
...
@@ -81,7 +81,7 @@ message GameState {
message
GameAnnouncement
{
GamePlayers
players
=
1
;
// Текущие игроки
GameConfig
config
=
2
;
// Параметры игры
optional
bool
can_join
=
3
;
// Можно ли новому игроку присоединиться к игре (есть ли место на поле)
bool
can_join
=
3
;
// Можно ли новому игроку присоединиться к игре (есть ли место на поле)
string
game_name
=
4
;
// Глобально уникальное имя игры, например "my game"
}
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment