2015-02-13 13:14:31 -07:00
|
|
|
package isoworldremote;
|
|
|
|
|
|
|
|
//Describes a very basic material structure for the map embark
|
|
|
|
option optimize_for = LITE_RUNTIME;
|
|
|
|
|
2018-07-03 14:54:30 -06:00
|
|
|
// Plugin: isoworldremote
|
|
|
|
|
2015-02-13 13:14:31 -07:00
|
|
|
enum BasicMaterial {
|
2015-02-14 20:53:06 -07:00
|
|
|
AIR = 0;
|
|
|
|
OTHER = 1;
|
|
|
|
INORGANIC = 2;
|
|
|
|
LIQUID = 3;
|
|
|
|
PLANT = 4;
|
|
|
|
WOOD = 5;
|
2015-02-13 13:14:31 -07:00
|
|
|
};
|
|
|
|
|
|
|
|
enum LiquidType {
|
2015-02-14 20:53:06 -07:00
|
|
|
ICE = 0;
|
|
|
|
WATER = 1;
|
|
|
|
MAGMA = 2;
|
2015-02-13 13:14:31 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
enum BasicShape {
|
2015-02-14 20:53:06 -07:00
|
|
|
NONE = 0;
|
|
|
|
OPEN = 1;
|
|
|
|
WALL = 3;
|
|
|
|
FLOOR = 4;
|
|
|
|
RAMP_UP = 5;
|
|
|
|
RAMP_DOWN = 6;
|
2015-02-13 13:14:31 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
message ColorDefinition {
|
2015-02-14 20:53:06 -07:00
|
|
|
required int32 red = 1;
|
|
|
|
required int32 green = 2;
|
|
|
|
required int32 blue = 3;
|
2015-02-13 13:14:31 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
message EmbarkTileLayer {
|
2015-02-14 20:53:06 -07:00
|
|
|
repeated BasicMaterial mat_type_table = 4 [packed=true];
|
|
|
|
repeated int32 mat_subtype_table = 5 [packed=true];
|
|
|
|
repeated BasicShape tile_shape_table = 6 [packed=true];
|
|
|
|
repeated ColorDefinition tile_color_table = 7;
|
2015-02-13 13:14:31 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
message EmbarkTile {
|
2015-02-14 20:53:06 -07:00
|
|
|
required int32 world_x = 1;
|
|
|
|
required int32 world_y = 2;
|
|
|
|
required sint32 world_z = 3;
|
|
|
|
repeated EmbarkTileLayer tile_layer = 4;
|
|
|
|
optional int32 current_year = 5;
|
|
|
|
optional int32 current_season = 6;
|
|
|
|
optional bool is_valid = 7;
|
2015-02-13 13:14:31 -07:00
|
|
|
}
|
|
|
|
|
2018-07-03 14:36:41 -06:00
|
|
|
// RPC GetEmbarkTile : TileRequest -> EmbarkTile
|
2015-02-13 13:14:31 -07:00
|
|
|
message TileRequest {
|
2015-02-14 20:53:06 -07:00
|
|
|
optional int32 want_x = 1;
|
|
|
|
optional int32 want_y = 2;
|
2015-02-13 13:14:31 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
message MapRequest {
|
2015-02-14 20:53:06 -07:00
|
|
|
optional string save_folder = 1;
|
2015-02-13 13:14:31 -07:00
|
|
|
}
|
|
|
|
|
2018-07-03 14:36:41 -06:00
|
|
|
// RPC GetEmbarkInfo : MapRequest -> MapReply
|
2015-02-13 13:14:31 -07:00
|
|
|
message MapReply {
|
2015-02-14 20:53:06 -07:00
|
|
|
required bool available = 1;
|
|
|
|
optional int32 region_x = 2;
|
|
|
|
optional int32 region_y = 3;
|
|
|
|
optional int32 region_size_x = 4;
|
|
|
|
optional int32 region_size_y = 5;
|
|
|
|
optional int32 current_year = 6;
|
|
|
|
optional int32 current_season = 7;
|
2015-02-13 13:14:31 -07:00
|
|
|
}
|
|
|
|
|
2018-07-03 14:36:41 -06:00
|
|
|
// RPC GetRawNames : MapRequest -> RawNames
|
2015-02-13 13:14:31 -07:00
|
|
|
message RawNames {
|
2015-02-14 20:53:06 -07:00
|
|
|
required bool available = 1;
|
|
|
|
repeated string inorganic = 2;
|
|
|
|
repeated string organic = 3;
|
2015-02-13 13:14:31 -07:00
|
|
|
}
|