Files
tankz/src/common/proto/game.proto
2018-01-05 18:01:51 +03:00

34 lines
516 B
Protocol Buffer

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;
}