~starkingdoms/starkingdoms

ref: f7c45924e683dfb1750d979d9677c2c15f5251c9 starkingdoms/protocol/src/pbuf/planet.proto -rw-r--r-- 376 bytes
f7c45924 — c0repwn3r Merge remote-tracking branch 'origin/master' 2 years ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
syntax = "proto3";
package protocol.planet;

message Planet {
  PlanetType planet_type = 1;  // Type of the planet
  float x = 2;          // Translation on the X axis, in game units
  float y = 3;          // Translation on the Y axis, in game units
  float radius = 4;     // The radius of the planet extending out from (x, y)
}

enum PlanetType {
  Earth = 0;
  Moon = 1;
}