dfhack/plugins/stockpiles/proto/stockpiles.proto

191 lines
5.4 KiB
Protocol Buffer

syntax = "proto2";
package dfstockpiles;
option optimize_for = LITE_RUNTIME;
message StockpileSettings {
message AnimalsSet {
2023-03-15 22:54:48 -06:00
optional bool all = 4;
optional bool empty_cages = 1;
optional bool empty_traps = 2;
repeated string enabled = 3;
}
message FoodSet {
2023-03-15 22:54:48 -06:00
optional bool all = 21;
repeated string meat = 1;
repeated string fish = 2;
repeated string unprepared_fish = 20;
repeated string egg = 3 ;
repeated string plants = 4 ;
repeated string drink_plant = 5 ;
repeated string drink_animal = 6 ;
repeated string cheese_plant = 7 ;
repeated string cheese_animal = 8 ;
repeated string seeds = 9 ;
repeated string leaves = 10 ;
repeated string powder_plant = 11 ;
repeated string powder_creature = 12 ;
repeated string glob = 13;
repeated string glob_paste = 14 ;
repeated string glob_pressed = 15 ;
repeated string liquid_plant = 16 ;
repeated string liquid_animal = 17;
repeated string liquid_misc = 18;
optional bool prepared_meals = 19;
}
2014-11-19 02:20:54 -07:00
message FurnitureSet {
2023-03-15 22:54:48 -06:00
optional bool all = 7;
repeated string type = 1;
repeated string other_mats = 2;
repeated string mats = 3;
repeated string quality_core = 4;
repeated string quality_total = 5;
// UNUSED: optional bool sand_bags = 6;
}
message RefuseSet {
2023-03-15 22:54:48 -06:00
optional bool all = 12;
repeated string type = 1;
repeated string corpses = 2;
repeated string body_parts = 3;
repeated string skulls = 4;
repeated string bones = 5;
repeated string hair = 6;
repeated string shells = 7;
repeated string teeth= 8;
repeated string horns = 9;
optional bool fresh_raw_hide = 10;
optional bool rotten_raw_hide = 11;
}
message StoneSet {
2023-03-15 22:54:48 -06:00
optional bool all = 2;
repeated string mats = 1;
}
message OreSet {
2023-03-15 22:54:48 -06:00
repeated string mats = 1;
}
message AmmoSet {
2023-03-15 22:54:48 -06:00
optional bool all = 6;
repeated string type = 1;
repeated string other_mats = 2;
repeated string mats = 3;
2014-11-19 02:20:54 -07:00
repeated string quality_core = 4;
repeated string quality_total = 5;
}
message CoinSet {
2023-03-15 22:54:48 -06:00
optional bool all = 2;
repeated string mats = 1;
}
message BarsBlocksSet {
2023-03-15 22:54:48 -06:00
optional bool all = 5;
repeated string bars_other_mats = 1;
repeated string blocks_other_mats = 2;
repeated string bars_mats = 3;
repeated string blocks_mats = 4;
}
message GemsSet {
2023-03-15 22:54:48 -06:00
optional bool all = 5;
repeated string rough_other_mats = 1;
repeated string cut_other_mats = 2;
repeated string rough_mats = 3;
repeated string cut_mats = 4;
}
message FinishedGoodsSet {
2023-03-15 22:54:48 -06:00
optional bool all = 6;
repeated string type = 1;
repeated string other_mats = 2;
repeated string mats = 3;
repeated string quality_core = 4;
repeated string quality_total = 5;
}
message LeatherSet {
2023-03-15 22:54:48 -06:00
optional bool all = 2;
repeated string mats = 1;
}
message ClothSet {
2023-03-15 22:54:48 -06:00
optional bool all = 9;
repeated string thread_silk = 1;
repeated string thread_plant = 2;
repeated string thread_yarn = 3;
repeated string thread_metal = 4;
repeated string cloth_silk = 5;
repeated string cloth_plant = 6;
repeated string cloth_yarn = 7;
repeated string cloth_metal = 8;
}
message WoodSet {
2023-03-15 22:54:48 -06:00
optional bool all = 2;
repeated string mats = 1;
}
message WeaponsSet {
2023-03-15 22:54:48 -06:00
optional bool all = 9;
repeated string weapon_type = 1;
repeated string trapcomp_type = 2;
repeated string other_mats = 3;
repeated string mats = 4;
2014-11-19 02:20:54 -07:00
repeated string quality_core = 5;
repeated string quality_total = 6;
optional bool usable = 7;
optional bool unusable = 8;
}
message ArmorSet {
2023-03-15 22:54:48 -06:00
optional bool all = 13;
repeated string body = 1;
repeated string head = 2;
repeated string feet = 3;
repeated string hands = 4;
repeated string legs = 5;
repeated string shield = 6;
repeated string other_mats = 7;
repeated string mats = 8;
2014-11-19 02:20:54 -07:00
repeated string quality_core = 9;
repeated string quality_total = 10;
2023-03-15 22:54:48 -06:00
optional bool usable = 11;
optional bool unusable = 12;
}
2023-03-15 22:54:48 -06:00
message CorpsesSet {
optional bool all = 1;
2023-03-20 16:14:28 -06:00
repeated string corpses = 2;
2023-03-15 22:54:48 -06:00
}
message SheetSet {
optional bool all = 1;
2023-03-20 16:14:28 -06:00
repeated string paper = 2;
repeated string parchment = 3;
2023-03-15 22:54:48 -06:00
}
// general settings
optional int32 max_barrels = 20;
optional int32 max_bins = 21;
optional int32 max_wheelbarrows = 22;
optional bool use_links_only = 23;
optional bool allow_organic = 18;
optional bool allow_inorganic = 19;
2014-11-19 02:20:54 -07:00
2023-03-15 22:54:48 -06:00
// categories
optional AmmoSet ammo = 8;
optional AnimalsSet animals = 1;
2023-03-15 22:54:48 -06:00
optional ArmorSet armor = 17;
optional BarsBlocksSet barsblocks = 10;
optional ClothSet cloth = 14;
optional CoinSet coin = 9;
optional FinishedGoodsSet finished_goods = 12;
optional FoodSet food = 2;
optional FurnitureSet furniture = 3;
optional GemsSet gems = 11;
optional LeatherSet leather = 13;
2023-03-15 22:54:48 -06:00
optional CorpsesSet corpses_v50 = 25;
optional RefuseSet refuse = 5;
optional SheetSet sheet = 26;
optional StoneSet stone = 6;
optional WeaponsSet weapons = 16;
2023-03-15 22:54:48 -06:00
optional WoodSet wood = 15;
// deprecated
optional bool corpses = 24; // not marked as deprecated since we still read it
optional OreSet ore = 7 [deprecated=true];
optional int32 unknown1 = 4 [deprecated=true];
}