dfhack/plugins/proto/DwarfControl.proto

34 lines
744 B
Protocol Buffer

syntax = "proto2";
package DwarfControl;
//Attempts to provide a complete framework for reading everything from a fortress needed for vizualization
option optimize_for = LITE_RUNTIME;
import "ui_sidebar_mode.proto";
2018-06-28 08:57:12 -06:00
import "RemoteFortressReader.proto";
enum BuildCategory
{
NotCategory = 0;
SiegeEngines = 1;
Traps = 2;
Workshops = 3;
Furnaces = 4;
Constructions = 5;
MachineComponents = 6;
Track = 7;
}
message SidebarState
{
optional proto.enums.ui_sidebar_mode.ui_sidebar_mode mode = 1;
2018-06-28 08:57:12 -06:00
repeated MenuItem menu_items = 2;
}
message MenuItem
{
optional RemoteFortressReader.BuildingType building_type = 1;
optional int32 existing_count = 2;
optional BuildCategory build_category = 3;
}