[Editor] Enable basic game map serialization/deserialization
This commit is contained in:
23
proto/src/main/proto/map.proto
Executable file
23
proto/src/main/proto/map.proto
Executable file
@@ -0,0 +1,23 @@
|
||||
package com.bartlomiejpluta.base.proto;
|
||||
|
||||
option java_package = "com.bartlomiejpluta.base.proto";
|
||||
option java_outer_classname = "GameMapProto";
|
||||
|
||||
message GameMap {
|
||||
required string name = 1;
|
||||
required uint32 rows = 2;
|
||||
required uint32 columns = 3;
|
||||
repeated Layer layers = 4;
|
||||
}
|
||||
|
||||
message Layer {
|
||||
required string name = 1;
|
||||
|
||||
oneof layer {
|
||||
TileLayer tileLayer = 2;
|
||||
}
|
||||
}
|
||||
|
||||
message TileLayer {
|
||||
repeated uint32 tiles = 1;
|
||||
}
|
||||
Reference in New Issue
Block a user