udpate
This commit is contained in:
33
src/common/proto/game.proto
Normal file
33
src/common/proto/game.proto
Normal file
@@ -0,0 +1,33 @@
|
||||
syntax = "proto3";
|
||||
|
||||
package ru.m.tankz.proto.game;
|
||||
|
||||
|
||||
enum GameActionType {
|
||||
MOVE = 0;
|
||||
SHOT = 1;
|
||||
STOP = 2;
|
||||
}
|
||||
|
||||
enum GameObjectType {
|
||||
TANK = 0;
|
||||
BULLET = 1;
|
||||
}
|
||||
|
||||
enum GameChangeType {
|
||||
MOVED = 0;
|
||||
DESTROED = 1;
|
||||
MODIFIED = 2;
|
||||
APPEND = 3;
|
||||
DIRECTION = 4;
|
||||
}
|
||||
|
||||
message GameChange {
|
||||
GameChangeType type = 1;
|
||||
GameObjectType objectType = 2;
|
||||
int32 objectId = 3;
|
||||
float x = 4;
|
||||
float y = 5;
|
||||
int32 directionX = 6;
|
||||
int32 directionY = 7;
|
||||
}
|
||||
Reference in New Issue
Block a user