package dfproto; option optimize_for = LITE_RUNTIME; message EnumItemName { required int32 value = 1; optional string name = 2; optional int32 bit_size = 3 [default = 1]; }; message BasicMaterialId { required int32 type = 1; required sint32 index = 2; }; message BasicMaterialInfo { required int32 type = 1; required sint32 index = 2; required string token = 3; repeated int32 flags = 4; // of material_flags optional int32 subtype = 5 [default = -1]; optional int32 creature_id = 6 [default = -1]; optional int32 plant_id = 7 [default = -1]; optional int32 histfig_id = 8 [default = -1]; optional string name_prefix = 9 [default = ""]; repeated fixed32 state_color = 10; repeated string state_name = 11; repeated string state_adj = 12; message Product { required string id = 1; required int32 type = 2; required sint32 index = 3; }; repeated string reaction_class = 13; repeated Product reaction_product = 14; repeated int32 inorganic_flags = 15; }; message BasicMaterialInfoMask { enum StateType { Solid = 0; Liquid = 1; Gas = 2; Powder = 3; Paste = 4; Pressed = 5; }; repeated StateType states = 1; optional int32 temperature = 4 [default = 10015]; optional bool flags = 2 [default = false]; optional bool reaction = 3 [default = false]; }; message NameInfo { optional string first_name = 1; optional string nickname = 2; optional int32 language_id = 3 [default = -1]; optional string last_name = 4; optional string english_name = 5; }; message SkillInfo { required int32 id = 1; required int32 level = 2; required int32 experience = 3; }; message BasicUnitInfo { required int32 unit_id = 1; optional NameInfo name = 2; required fixed32 flags1 = 3; required fixed32 flags2 = 4; required fixed32 flags3 = 5; required int32 race = 6; required int32 caste = 7; optional int32 gender = 8 [default = -1]; optional int32 civ_id = 9 [default = -1]; optional int32 histfig_id = 10 [default = -1]; repeated int32 labors = 11; repeated SkillInfo skills = 12; required int32 pos_x = 13; required int32 pos_y = 14; required int32 pos_z = 15; }; message BasicUnitInfoMask { optional bool labors = 1 [default = false]; optional bool skills = 2 [default = false]; }; message BasicSquadInfo { required int32 squad_id = 1; optional NameInfo name = 2; optional string alias = 3; repeated sint32 members = 4; };