#[derive(serde::Serialize)]
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct EnumItemName {
#[prost(int32, required, tag = "1")]
pub value: i32,
#[prost(string, optional, tag = "2")]
pub name: ::core::option::Option<::prost::alloc::string::String>,
#[prost(int32, optional, tag = "3", default = "1")]
pub bit_size: ::core::option::Option<i32>,
}
impl ::prost::Name for EnumItemName {
const NAME: &'static str = "EnumItemName";
const PACKAGE: &'static str = "dfproto";
fn full_name() -> ::prost::alloc::string::String {
"dfproto.EnumItemName".into()
}
fn type_url() -> ::prost::alloc::string::String {
"/dfproto.EnumItemName".into()
}
}
#[derive(serde::Serialize)]
#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
pub struct BasicMaterialId {
#[prost(int32, required, tag = "1")]
pub r#type: i32,
#[prost(sint32, required, tag = "2")]
pub index: i32,
}
impl ::prost::Name for BasicMaterialId {
const NAME: &'static str = "BasicMaterialId";
const PACKAGE: &'static str = "dfproto";
fn full_name() -> ::prost::alloc::string::String {
"dfproto.BasicMaterialId".into()
}
fn type_url() -> ::prost::alloc::string::String {
"/dfproto.BasicMaterialId".into()
}
}
#[derive(serde::Serialize)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct BasicMaterialInfo {
#[prost(int32, required, tag = "1")]
pub r#type: i32,
#[prost(sint32, required, tag = "2")]
pub index: i32,
#[prost(string, required, tag = "3")]
pub token: ::prost::alloc::string::String,
#[prost(int32, repeated, packed = "false", tag = "4")]
pub flags: ::prost::alloc::vec::Vec<i32>,
#[prost(int32, optional, tag = "5", default = "-1")]
pub subtype: ::core::option::Option<i32>,
#[prost(int32, optional, tag = "6", default = "-1")]
pub creature_id: ::core::option::Option<i32>,
#[prost(int32, optional, tag = "7", default = "-1")]
pub plant_id: ::core::option::Option<i32>,
#[prost(int32, optional, tag = "8", default = "-1")]
pub histfig_id: ::core::option::Option<i32>,
#[prost(string, optional, tag = "9", default = "")]
pub name_prefix: ::core::option::Option<::prost::alloc::string::String>,
#[prost(fixed32, repeated, packed = "false", tag = "10")]
pub state_color: ::prost::alloc::vec::Vec<u32>,
#[prost(string, repeated, tag = "11")]
pub state_name: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
#[prost(string, repeated, tag = "12")]
pub state_adj: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
#[prost(string, repeated, tag = "13")]
pub reaction_class: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
#[prost(message, repeated, tag = "14")]
pub reaction_product: ::prost::alloc::vec::Vec<basic_material_info::Product>,
#[prost(int32, repeated, packed = "false", tag = "15")]
pub inorganic_flags: ::prost::alloc::vec::Vec<i32>,
}
pub mod basic_material_info {
#[derive(serde::Serialize)]
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct Product {
#[prost(string, required, tag = "1")]
pub id: ::prost::alloc::string::String,
#[prost(int32, required, tag = "2")]
pub r#type: i32,
#[prost(sint32, required, tag = "3")]
pub index: i32,
}
impl ::prost::Name for Product {
const NAME: &'static str = "Product";
const PACKAGE: &'static str = "dfproto";
fn full_name() -> ::prost::alloc::string::String {
"dfproto.BasicMaterialInfo.Product".into()
}
fn type_url() -> ::prost::alloc::string::String {
"/dfproto.BasicMaterialInfo.Product".into()
}
}
}
impl ::prost::Name for BasicMaterialInfo {
const NAME: &'static str = "BasicMaterialInfo";
const PACKAGE: &'static str = "dfproto";
fn full_name() -> ::prost::alloc::string::String {
"dfproto.BasicMaterialInfo".into()
}
fn type_url() -> ::prost::alloc::string::String {
"/dfproto.BasicMaterialInfo".into()
}
}
#[derive(serde::Serialize)]
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct BasicMaterialInfoMask {
#[prost(
enumeration = "basic_material_info_mask::StateType",
repeated,
packed = "false",
tag = "1"
)]
pub states: ::prost::alloc::vec::Vec<i32>,
#[prost(int32, optional, tag = "4", default = "10015")]
pub temperature: ::core::option::Option<i32>,
#[prost(bool, optional, tag = "2", default = "false")]
pub flags: ::core::option::Option<bool>,
#[prost(bool, optional, tag = "3", default = "false")]
pub reaction: ::core::option::Option<bool>,
}
pub mod basic_material_info_mask {
#[derive(serde::Serialize)]
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum StateType {
Solid = 0,
Liquid = 1,
Gas = 2,
Powder = 3,
Paste = 4,
Pressed = 5,
}
impl StateType {
pub fn as_str_name(&self) -> &'static str {
match self {
Self::Solid => "Solid",
Self::Liquid => "Liquid",
Self::Gas => "Gas",
Self::Powder => "Powder",
Self::Paste => "Paste",
Self::Pressed => "Pressed",
}
}
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"Solid" => Some(Self::Solid),
"Liquid" => Some(Self::Liquid),
"Gas" => Some(Self::Gas),
"Powder" => Some(Self::Powder),
"Paste" => Some(Self::Paste),
"Pressed" => Some(Self::Pressed),
_ => None,
}
}
}
}
impl ::prost::Name for BasicMaterialInfoMask {
const NAME: &'static str = "BasicMaterialInfoMask";
const PACKAGE: &'static str = "dfproto";
fn full_name() -> ::prost::alloc::string::String {
"dfproto.BasicMaterialInfoMask".into()
}
fn type_url() -> ::prost::alloc::string::String {
"/dfproto.BasicMaterialInfoMask".into()
}
}
#[derive(serde::Serialize)]
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct JobSkillAttr {
#[prost(int32, required, tag = "1")]
pub id: i32,
#[prost(string, required, tag = "2")]
pub key: ::prost::alloc::string::String,
#[prost(string, optional, tag = "3")]
pub caption: ::core::option::Option<::prost::alloc::string::String>,
#[prost(string, optional, tag = "4")]
pub caption_noun: ::core::option::Option<::prost::alloc::string::String>,
#[prost(int32, optional, tag = "5")]
pub profession: ::core::option::Option<i32>,
#[prost(int32, optional, tag = "6")]
pub labor: ::core::option::Option<i32>,
#[prost(string, optional, tag = "7")]
pub r#type: ::core::option::Option<::prost::alloc::string::String>,
}
impl ::prost::Name for JobSkillAttr {
const NAME: &'static str = "JobSkillAttr";
const PACKAGE: &'static str = "dfproto";
fn full_name() -> ::prost::alloc::string::String {
"dfproto.JobSkillAttr".into()
}
fn type_url() -> ::prost::alloc::string::String {
"/dfproto.JobSkillAttr".into()
}
}
#[derive(serde::Serialize)]
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct ProfessionAttr {
#[prost(int32, required, tag = "1")]
pub id: i32,
#[prost(string, required, tag = "2")]
pub key: ::prost::alloc::string::String,
#[prost(string, optional, tag = "3")]
pub caption: ::core::option::Option<::prost::alloc::string::String>,
#[prost(bool, optional, tag = "4")]
pub military: ::core::option::Option<bool>,
#[prost(bool, optional, tag = "5")]
pub can_assign_labor: ::core::option::Option<bool>,
#[prost(int32, optional, tag = "6")]
pub parent: ::core::option::Option<i32>,
}
impl ::prost::Name for ProfessionAttr {
const NAME: &'static str = "ProfessionAttr";
const PACKAGE: &'static str = "dfproto";
fn full_name() -> ::prost::alloc::string::String {
"dfproto.ProfessionAttr".into()
}
fn type_url() -> ::prost::alloc::string::String {
"/dfproto.ProfessionAttr".into()
}
}
#[derive(serde::Serialize)]
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct UnitLaborAttr {
#[prost(int32, required, tag = "1")]
pub id: i32,
#[prost(string, required, tag = "2")]
pub key: ::prost::alloc::string::String,
#[prost(string, optional, tag = "3")]
pub caption: ::core::option::Option<::prost::alloc::string::String>,
}
impl ::prost::Name for UnitLaborAttr {
const NAME: &'static str = "UnitLaborAttr";
const PACKAGE: &'static str = "dfproto";
fn full_name() -> ::prost::alloc::string::String {
"dfproto.UnitLaborAttr".into()
}
fn type_url() -> ::prost::alloc::string::String {
"/dfproto.UnitLaborAttr".into()
}
}
#[derive(serde::Serialize)]
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct NameInfo {
#[prost(string, optional, tag = "1")]
pub first_name: ::core::option::Option<::prost::alloc::string::String>,
#[prost(string, optional, tag = "2")]
pub nickname: ::core::option::Option<::prost::alloc::string::String>,
#[prost(int32, optional, tag = "3", default = "-1")]
pub language_id: ::core::option::Option<i32>,
#[prost(string, optional, tag = "4")]
pub last_name: ::core::option::Option<::prost::alloc::string::String>,
#[prost(string, optional, tag = "5")]
pub english_name: ::core::option::Option<::prost::alloc::string::String>,
}
impl ::prost::Name for NameInfo {
const NAME: &'static str = "NameInfo";
const PACKAGE: &'static str = "dfproto";
fn full_name() -> ::prost::alloc::string::String {
"dfproto.NameInfo".into()
}
fn type_url() -> ::prost::alloc::string::String {
"/dfproto.NameInfo".into()
}
}
#[derive(serde::Serialize)]
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct NameTriple {
#[prost(string, required, tag = "1")]
pub normal: ::prost::alloc::string::String,
#[prost(string, optional, tag = "2")]
pub plural: ::core::option::Option<::prost::alloc::string::String>,
#[prost(string, optional, tag = "3")]
pub adjective: ::core::option::Option<::prost::alloc::string::String>,
}
impl ::prost::Name for NameTriple {
const NAME: &'static str = "NameTriple";
const PACKAGE: &'static str = "dfproto";
fn full_name() -> ::prost::alloc::string::String {
"dfproto.NameTriple".into()
}
fn type_url() -> ::prost::alloc::string::String {
"/dfproto.NameTriple".into()
}
}
#[derive(serde::Serialize)]
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct UnitCurseInfo {
#[prost(fixed32, required, tag = "1")]
pub add_tags1: u32,
#[prost(fixed32, required, tag = "2")]
pub rem_tags1: u32,
#[prost(fixed32, required, tag = "3")]
pub add_tags2: u32,
#[prost(fixed32, required, tag = "4")]
pub rem_tags2: u32,
#[prost(message, optional, tag = "5")]
pub name: ::core::option::Option<NameTriple>,
}
impl ::prost::Name for UnitCurseInfo {
const NAME: &'static str = "UnitCurseInfo";
const PACKAGE: &'static str = "dfproto";
fn full_name() -> ::prost::alloc::string::String {
"dfproto.UnitCurseInfo".into()
}
fn type_url() -> ::prost::alloc::string::String {
"/dfproto.UnitCurseInfo".into()
}
}
#[derive(serde::Serialize)]
#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
pub struct SkillInfo {
#[prost(int32, required, tag = "1")]
pub id: i32,
#[prost(int32, required, tag = "2")]
pub level: i32,
#[prost(int32, required, tag = "3")]
pub experience: i32,
}
impl ::prost::Name for SkillInfo {
const NAME: &'static str = "SkillInfo";
const PACKAGE: &'static str = "dfproto";
fn full_name() -> ::prost::alloc::string::String {
"dfproto.SkillInfo".into()
}
fn type_url() -> ::prost::alloc::string::String {
"/dfproto.SkillInfo".into()
}
}
#[derive(serde::Serialize)]
#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
pub struct UnitMiscTrait {
#[prost(int32, required, tag = "1")]
pub id: i32,
#[prost(int32, required, tag = "2")]
pub value: i32,
}
impl ::prost::Name for UnitMiscTrait {
const NAME: &'static str = "UnitMiscTrait";
const PACKAGE: &'static str = "dfproto";
fn full_name() -> ::prost::alloc::string::String {
"dfproto.UnitMiscTrait".into()
}
fn type_url() -> ::prost::alloc::string::String {
"/dfproto.UnitMiscTrait".into()
}
}
#[derive(serde::Serialize)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct BasicUnitInfo {
#[prost(int32, required, tag = "1")]
pub unit_id: i32,
#[prost(int32, required, tag = "13")]
pub pos_x: i32,
#[prost(int32, required, tag = "14")]
pub pos_y: i32,
#[prost(int32, required, tag = "15")]
pub pos_z: i32,
#[prost(message, optional, tag = "2")]
pub name: ::core::option::Option<NameInfo>,
#[prost(fixed32, required, tag = "3")]
pub flags1: u32,
#[prost(fixed32, required, tag = "4")]
pub flags2: u32,
#[prost(fixed32, required, tag = "5")]
pub flags3: u32,
#[prost(int32, required, tag = "6")]
pub race: i32,
#[prost(int32, required, tag = "7")]
pub caste: i32,
#[prost(int32, optional, tag = "8", default = "-1")]
pub gender: ::core::option::Option<i32>,
#[prost(int32, optional, tag = "9", default = "-1")]
pub civ_id: ::core::option::Option<i32>,
#[prost(int32, optional, tag = "10", default = "-1")]
pub histfig_id: ::core::option::Option<i32>,
#[prost(int32, optional, tag = "17", default = "-1")]
pub death_id: ::core::option::Option<i32>,
#[prost(uint32, optional, tag = "18")]
pub death_flags: ::core::option::Option<u32>,
#[prost(int32, optional, tag = "19", default = "-1")]
pub squad_id: ::core::option::Option<i32>,
#[prost(int32, optional, tag = "20", default = "-1")]
pub squad_position: ::core::option::Option<i32>,
#[prost(int32, optional, tag = "22", default = "-1")]
pub profession: ::core::option::Option<i32>,
#[prost(string, optional, tag = "23")]
pub custom_profession: ::core::option::Option<::prost::alloc::string::String>,
#[prost(int32, repeated, packed = "false", tag = "11")]
pub labors: ::prost::alloc::vec::Vec<i32>,
#[prost(message, repeated, tag = "12")]
pub skills: ::prost::alloc::vec::Vec<SkillInfo>,
#[prost(message, repeated, tag = "24")]
pub misc_traits: ::prost::alloc::vec::Vec<UnitMiscTrait>,
#[prost(message, optional, tag = "16")]
pub curse: ::core::option::Option<UnitCurseInfo>,
#[prost(int32, repeated, packed = "false", tag = "21")]
pub burrows: ::prost::alloc::vec::Vec<i32>,
}
impl ::prost::Name for BasicUnitInfo {
const NAME: &'static str = "BasicUnitInfo";
const PACKAGE: &'static str = "dfproto";
fn full_name() -> ::prost::alloc::string::String {
"dfproto.BasicUnitInfo".into()
}
fn type_url() -> ::prost::alloc::string::String {
"/dfproto.BasicUnitInfo".into()
}
}
#[derive(serde::Serialize)]
#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
pub struct BasicUnitInfoMask {
#[prost(bool, optional, tag = "1", default = "false")]
pub labors: ::core::option::Option<bool>,
#[prost(bool, optional, tag = "2", default = "false")]
pub skills: ::core::option::Option<bool>,
#[prost(bool, optional, tag = "3", default = "false")]
pub profession: ::core::option::Option<bool>,
#[prost(bool, optional, tag = "4", default = "false")]
pub misc_traits: ::core::option::Option<bool>,
}
impl ::prost::Name for BasicUnitInfoMask {
const NAME: &'static str = "BasicUnitInfoMask";
const PACKAGE: &'static str = "dfproto";
fn full_name() -> ::prost::alloc::string::String {
"dfproto.BasicUnitInfoMask".into()
}
fn type_url() -> ::prost::alloc::string::String {
"/dfproto.BasicUnitInfoMask".into()
}
}
#[derive(serde::Serialize)]
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct BasicSquadInfo {
#[prost(int32, required, tag = "1")]
pub squad_id: i32,
#[prost(message, optional, tag = "2")]
pub name: ::core::option::Option<NameInfo>,
#[prost(string, optional, tag = "3")]
pub alias: ::core::option::Option<::prost::alloc::string::String>,
#[prost(sint32, repeated, packed = "false", tag = "4")]
pub members: ::prost::alloc::vec::Vec<i32>,
}
impl ::prost::Name for BasicSquadInfo {
const NAME: &'static str = "BasicSquadInfo";
const PACKAGE: &'static str = "dfproto";
fn full_name() -> ::prost::alloc::string::String {
"dfproto.BasicSquadInfo".into()
}
fn type_url() -> ::prost::alloc::string::String {
"/dfproto.BasicSquadInfo".into()
}
}
#[derive(serde::Serialize)]
#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
pub struct UnitLaborState {
#[prost(int32, required, tag = "1")]
pub unit_id: i32,
#[prost(int32, required, tag = "2")]
pub labor: i32,
#[prost(bool, required, tag = "3")]
pub value: bool,
}
impl ::prost::Name for UnitLaborState {
const NAME: &'static str = "UnitLaborState";
const PACKAGE: &'static str = "dfproto";
fn full_name() -> ::prost::alloc::string::String {
"dfproto.UnitLaborState".into()
}
fn type_url() -> ::prost::alloc::string::String {
"/dfproto.UnitLaborState".into()
}
}
#[derive(serde::Serialize)]
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct GetWorldInfoOut {
#[prost(enumeration = "get_world_info_out::Mode", required, tag = "1")]
pub mode: i32,
#[prost(string, required, tag = "2")]
pub save_dir: ::prost::alloc::string::String,
#[prost(message, optional, tag = "3")]
pub world_name: ::core::option::Option<NameInfo>,
#[prost(int32, optional, tag = "4")]
pub civ_id: ::core::option::Option<i32>,
#[prost(int32, optional, tag = "5")]
pub site_id: ::core::option::Option<i32>,
#[prost(int32, optional, tag = "6")]
pub group_id: ::core::option::Option<i32>,
#[prost(int32, optional, tag = "7")]
pub race_id: ::core::option::Option<i32>,
#[prost(int32, optional, tag = "8")]
pub player_unit_id: ::core::option::Option<i32>,
#[prost(int32, optional, tag = "9")]
pub player_histfig_id: ::core::option::Option<i32>,
#[prost(int32, repeated, packed = "false", tag = "10")]
pub companion_histfig_ids: ::prost::alloc::vec::Vec<i32>,
}
pub mod get_world_info_out {
#[derive(serde::Serialize)]
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum Mode {
Dwarf = 1,
Adventure = 2,
Legends = 3,
}
impl Mode {
pub fn as_str_name(&self) -> &'static str {
match self {
Self::Dwarf => "MODE_DWARF",
Self::Adventure => "MODE_ADVENTURE",
Self::Legends => "MODE_LEGENDS",
}
}
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"MODE_DWARF" => Some(Self::Dwarf),
"MODE_ADVENTURE" => Some(Self::Adventure),
"MODE_LEGENDS" => Some(Self::Legends),
_ => None,
}
}
}
}
impl ::prost::Name for GetWorldInfoOut {
const NAME: &'static str = "GetWorldInfoOut";
const PACKAGE: &'static str = "dfproto";
fn full_name() -> ::prost::alloc::string::String {
"dfproto.GetWorldInfoOut".into()
}
fn type_url() -> ::prost::alloc::string::String {
"/dfproto.GetWorldInfoOut".into()
}
}
#[derive(serde::Serialize)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListEnumsOut {
#[prost(message, repeated, tag = "1")]
pub material_flags: ::prost::alloc::vec::Vec<EnumItemName>,
#[prost(message, repeated, tag = "2")]
pub inorganic_flags: ::prost::alloc::vec::Vec<EnumItemName>,
#[prost(message, repeated, tag = "3")]
pub unit_flags1: ::prost::alloc::vec::Vec<EnumItemName>,
#[prost(message, repeated, tag = "4")]
pub unit_flags2: ::prost::alloc::vec::Vec<EnumItemName>,
#[prost(message, repeated, tag = "5")]
pub unit_flags3: ::prost::alloc::vec::Vec<EnumItemName>,
#[prost(message, repeated, tag = "6")]
pub unit_labor: ::prost::alloc::vec::Vec<EnumItemName>,
#[prost(message, repeated, tag = "7")]
pub job_skill: ::prost::alloc::vec::Vec<EnumItemName>,
#[prost(message, repeated, tag = "8")]
pub cie_add_tag_mask1: ::prost::alloc::vec::Vec<EnumItemName>,
#[prost(message, repeated, tag = "9")]
pub cie_add_tag_mask2: ::prost::alloc::vec::Vec<EnumItemName>,
#[prost(message, repeated, tag = "10")]
pub death_info_flags: ::prost::alloc::vec::Vec<EnumItemName>,
#[prost(message, repeated, tag = "11")]
pub profession: ::prost::alloc::vec::Vec<EnumItemName>,
}
impl ::prost::Name for ListEnumsOut {
const NAME: &'static str = "ListEnumsOut";
const PACKAGE: &'static str = "dfproto";
fn full_name() -> ::prost::alloc::string::String {
"dfproto.ListEnumsOut".into()
}
fn type_url() -> ::prost::alloc::string::String {
"/dfproto.ListEnumsOut".into()
}
}
#[derive(serde::Serialize)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListJobSkillsOut {
#[prost(message, repeated, tag = "1")]
pub skill: ::prost::alloc::vec::Vec<JobSkillAttr>,
#[prost(message, repeated, tag = "2")]
pub profession: ::prost::alloc::vec::Vec<ProfessionAttr>,
#[prost(message, repeated, tag = "3")]
pub labor: ::prost::alloc::vec::Vec<UnitLaborAttr>,
}
impl ::prost::Name for ListJobSkillsOut {
const NAME: &'static str = "ListJobSkillsOut";
const PACKAGE: &'static str = "dfproto";
fn full_name() -> ::prost::alloc::string::String {
"dfproto.ListJobSkillsOut".into()
}
fn type_url() -> ::prost::alloc::string::String {
"/dfproto.ListJobSkillsOut".into()
}
}
#[derive(serde::Serialize)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListMaterialsIn {
#[prost(message, optional, tag = "1")]
pub mask: ::core::option::Option<BasicMaterialInfoMask>,
#[prost(message, repeated, tag = "2")]
pub id_list: ::prost::alloc::vec::Vec<BasicMaterialId>,
#[prost(bool, optional, tag = "3")]
pub builtin: ::core::option::Option<bool>,
#[prost(bool, optional, tag = "4")]
pub inorganic: ::core::option::Option<bool>,
#[prost(bool, optional, tag = "5")]
pub creatures: ::core::option::Option<bool>,
#[prost(bool, optional, tag = "6")]
pub plants: ::core::option::Option<bool>,
}
impl ::prost::Name for ListMaterialsIn {
const NAME: &'static str = "ListMaterialsIn";
const PACKAGE: &'static str = "dfproto";
fn full_name() -> ::prost::alloc::string::String {
"dfproto.ListMaterialsIn".into()
}
fn type_url() -> ::prost::alloc::string::String {
"/dfproto.ListMaterialsIn".into()
}
}
#[derive(serde::Serialize)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListMaterialsOut {
#[prost(message, repeated, tag = "1")]
pub value: ::prost::alloc::vec::Vec<BasicMaterialInfo>,
}
impl ::prost::Name for ListMaterialsOut {
const NAME: &'static str = "ListMaterialsOut";
const PACKAGE: &'static str = "dfproto";
fn full_name() -> ::prost::alloc::string::String {
"dfproto.ListMaterialsOut".into()
}
fn type_url() -> ::prost::alloc::string::String {
"/dfproto.ListMaterialsOut".into()
}
}
#[derive(serde::Serialize)]
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct ListUnitsIn {
#[prost(message, optional, tag = "1")]
pub mask: ::core::option::Option<BasicUnitInfoMask>,
#[prost(int32, repeated, packed = "false", tag = "2")]
pub id_list: ::prost::alloc::vec::Vec<i32>,
#[prost(bool, optional, tag = "5")]
pub scan_all: ::core::option::Option<bool>,
#[prost(int32, optional, tag = "3")]
pub race: ::core::option::Option<i32>,
#[prost(int32, optional, tag = "4")]
pub civ_id: ::core::option::Option<i32>,
#[prost(bool, optional, tag = "6")]
pub dead: ::core::option::Option<bool>,
#[prost(bool, optional, tag = "7")]
pub alive: ::core::option::Option<bool>,
#[prost(bool, optional, tag = "8")]
pub sane: ::core::option::Option<bool>,
}
impl ::prost::Name for ListUnitsIn {
const NAME: &'static str = "ListUnitsIn";
const PACKAGE: &'static str = "dfproto";
fn full_name() -> ::prost::alloc::string::String {
"dfproto.ListUnitsIn".into()
}
fn type_url() -> ::prost::alloc::string::String {
"/dfproto.ListUnitsIn".into()
}
}
#[derive(serde::Serialize)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListUnitsOut {
#[prost(message, repeated, tag = "1")]
pub value: ::prost::alloc::vec::Vec<BasicUnitInfo>,
}
impl ::prost::Name for ListUnitsOut {
const NAME: &'static str = "ListUnitsOut";
const PACKAGE: &'static str = "dfproto";
fn full_name() -> ::prost::alloc::string::String {
"dfproto.ListUnitsOut".into()
}
fn type_url() -> ::prost::alloc::string::String {
"/dfproto.ListUnitsOut".into()
}
}
#[derive(serde::Serialize)]
#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
pub struct ListSquadsIn {}
impl ::prost::Name for ListSquadsIn {
const NAME: &'static str = "ListSquadsIn";
const PACKAGE: &'static str = "dfproto";
fn full_name() -> ::prost::alloc::string::String {
"dfproto.ListSquadsIn".into()
}
fn type_url() -> ::prost::alloc::string::String {
"/dfproto.ListSquadsIn".into()
}
}
#[derive(serde::Serialize)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListSquadsOut {
#[prost(message, repeated, tag = "1")]
pub value: ::prost::alloc::vec::Vec<BasicSquadInfo>,
}
impl ::prost::Name for ListSquadsOut {
const NAME: &'static str = "ListSquadsOut";
const PACKAGE: &'static str = "dfproto";
fn full_name() -> ::prost::alloc::string::String {
"dfproto.ListSquadsOut".into()
}
fn type_url() -> ::prost::alloc::string::String {
"/dfproto.ListSquadsOut".into()
}
}
#[derive(serde::Serialize)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SetUnitLaborsIn {
#[prost(message, repeated, tag = "1")]
pub change: ::prost::alloc::vec::Vec<UnitLaborState>,
}
impl ::prost::Name for SetUnitLaborsIn {
const NAME: &'static str = "SetUnitLaborsIn";
const PACKAGE: &'static str = "dfproto";
fn full_name() -> ::prost::alloc::string::String {
"dfproto.SetUnitLaborsIn".into()
}
fn type_url() -> ::prost::alloc::string::String {
"/dfproto.SetUnitLaborsIn".into()
}
}
#[derive(serde::Serialize)]
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct CoreTextFragment {
#[prost(string, required, tag = "1")]
pub text: ::prost::alloc::string::String,
#[prost(enumeration = "core_text_fragment::Color", optional, tag = "2")]
pub color: ::core::option::Option<i32>,
}
pub mod core_text_fragment {
#[derive(serde::Serialize)]
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum Color {
Black = 0,
Blue = 1,
Green = 2,
Cyan = 3,
Red = 4,
Magenta = 5,
Brown = 6,
Grey = 7,
Darkgrey = 8,
Lightblue = 9,
Lightgreen = 10,
Lightcyan = 11,
Lightred = 12,
Lightmagenta = 13,
Yellow = 14,
White = 15,
}
impl Color {
pub fn as_str_name(&self) -> &'static str {
match self {
Self::Black => "COLOR_BLACK",
Self::Blue => "COLOR_BLUE",
Self::Green => "COLOR_GREEN",
Self::Cyan => "COLOR_CYAN",
Self::Red => "COLOR_RED",
Self::Magenta => "COLOR_MAGENTA",
Self::Brown => "COLOR_BROWN",
Self::Grey => "COLOR_GREY",
Self::Darkgrey => "COLOR_DARKGREY",
Self::Lightblue => "COLOR_LIGHTBLUE",
Self::Lightgreen => "COLOR_LIGHTGREEN",
Self::Lightcyan => "COLOR_LIGHTCYAN",
Self::Lightred => "COLOR_LIGHTRED",
Self::Lightmagenta => "COLOR_LIGHTMAGENTA",
Self::Yellow => "COLOR_YELLOW",
Self::White => "COLOR_WHITE",
}
}
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"COLOR_BLACK" => Some(Self::Black),
"COLOR_BLUE" => Some(Self::Blue),
"COLOR_GREEN" => Some(Self::Green),
"COLOR_CYAN" => Some(Self::Cyan),
"COLOR_RED" => Some(Self::Red),
"COLOR_MAGENTA" => Some(Self::Magenta),
"COLOR_BROWN" => Some(Self::Brown),
"COLOR_GREY" => Some(Self::Grey),
"COLOR_DARKGREY" => Some(Self::Darkgrey),
"COLOR_LIGHTBLUE" => Some(Self::Lightblue),
"COLOR_LIGHTGREEN" => Some(Self::Lightgreen),
"COLOR_LIGHTCYAN" => Some(Self::Lightcyan),
"COLOR_LIGHTRED" => Some(Self::Lightred),
"COLOR_LIGHTMAGENTA" => Some(Self::Lightmagenta),
"COLOR_YELLOW" => Some(Self::Yellow),
"COLOR_WHITE" => Some(Self::White),
_ => None,
}
}
}
}
impl ::prost::Name for CoreTextFragment {
const NAME: &'static str = "CoreTextFragment";
const PACKAGE: &'static str = "dfproto";
fn full_name() -> ::prost::alloc::string::String {
"dfproto.CoreTextFragment".into()
}
fn type_url() -> ::prost::alloc::string::String {
"/dfproto.CoreTextFragment".into()
}
}
#[derive(serde::Serialize)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CoreTextNotification {
#[prost(message, repeated, tag = "1")]
pub fragments: ::prost::alloc::vec::Vec<CoreTextFragment>,
}
impl ::prost::Name for CoreTextNotification {
const NAME: &'static str = "CoreTextNotification";
const PACKAGE: &'static str = "dfproto";
fn full_name() -> ::prost::alloc::string::String {
"dfproto.CoreTextNotification".into()
}
fn type_url() -> ::prost::alloc::string::String {
"/dfproto.CoreTextNotification".into()
}
}
#[derive(serde::Serialize)]
#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
pub struct CoreErrorNotification {
#[prost(enumeration = "core_error_notification::ErrorCode", required, tag = "1")]
pub code: i32,
}
pub mod core_error_notification {
#[derive(serde::Serialize)]
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum ErrorCode {
CrLinkFailure = -3,
CrWouldBreak = -2,
CrNotImplemented = -1,
CrOk = 0,
CrFailure = 1,
CrWrongUsage = 2,
CrNotFound = 3,
}
impl ErrorCode {
pub fn as_str_name(&self) -> &'static str {
match self {
Self::CrLinkFailure => "CR_LINK_FAILURE",
Self::CrWouldBreak => "CR_WOULD_BREAK",
Self::CrNotImplemented => "CR_NOT_IMPLEMENTED",
Self::CrOk => "CR_OK",
Self::CrFailure => "CR_FAILURE",
Self::CrWrongUsage => "CR_WRONG_USAGE",
Self::CrNotFound => "CR_NOT_FOUND",
}
}
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"CR_LINK_FAILURE" => Some(Self::CrLinkFailure),
"CR_WOULD_BREAK" => Some(Self::CrWouldBreak),
"CR_NOT_IMPLEMENTED" => Some(Self::CrNotImplemented),
"CR_OK" => Some(Self::CrOk),
"CR_FAILURE" => Some(Self::CrFailure),
"CR_WRONG_USAGE" => Some(Self::CrWrongUsage),
"CR_NOT_FOUND" => Some(Self::CrNotFound),
_ => None,
}
}
}
}
impl ::prost::Name for CoreErrorNotification {
const NAME: &'static str = "CoreErrorNotification";
const PACKAGE: &'static str = "dfproto";
fn full_name() -> ::prost::alloc::string::String {
"dfproto.CoreErrorNotification".into()
}
fn type_url() -> ::prost::alloc::string::String {
"/dfproto.CoreErrorNotification".into()
}
}
#[derive(serde::Serialize)]
#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
pub struct EmptyMessage {}
impl ::prost::Name for EmptyMessage {
const NAME: &'static str = "EmptyMessage";
const PACKAGE: &'static str = "dfproto";
fn full_name() -> ::prost::alloc::string::String {
"dfproto.EmptyMessage".into()
}
fn type_url() -> ::prost::alloc::string::String {
"/dfproto.EmptyMessage".into()
}
}
#[derive(serde::Serialize)]
#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
pub struct IntMessage {
#[prost(int32, required, tag = "1")]
pub value: i32,
}
impl ::prost::Name for IntMessage {
const NAME: &'static str = "IntMessage";
const PACKAGE: &'static str = "dfproto";
fn full_name() -> ::prost::alloc::string::String {
"dfproto.IntMessage".into()
}
fn type_url() -> ::prost::alloc::string::String {
"/dfproto.IntMessage".into()
}
}
#[derive(serde::Serialize)]
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct IntListMessage {
#[prost(int32, repeated, packed = "false", tag = "1")]
pub value: ::prost::alloc::vec::Vec<i32>,
}
impl ::prost::Name for IntListMessage {
const NAME: &'static str = "IntListMessage";
const PACKAGE: &'static str = "dfproto";
fn full_name() -> ::prost::alloc::string::String {
"dfproto.IntListMessage".into()
}
fn type_url() -> ::prost::alloc::string::String {
"/dfproto.IntListMessage".into()
}
}
#[derive(serde::Serialize)]
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct StringMessage {
#[prost(string, required, tag = "1")]
pub value: ::prost::alloc::string::String,
}
impl ::prost::Name for StringMessage {
const NAME: &'static str = "StringMessage";
const PACKAGE: &'static str = "dfproto";
fn full_name() -> ::prost::alloc::string::String {
"dfproto.StringMessage".into()
}
fn type_url() -> ::prost::alloc::string::String {
"/dfproto.StringMessage".into()
}
}
#[derive(serde::Serialize)]
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct StringListMessage {
#[prost(string, repeated, tag = "1")]
pub value: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
}
impl ::prost::Name for StringListMessage {
const NAME: &'static str = "StringListMessage";
const PACKAGE: &'static str = "dfproto";
fn full_name() -> ::prost::alloc::string::String {
"dfproto.StringListMessage".into()
}
fn type_url() -> ::prost::alloc::string::String {
"/dfproto.StringListMessage".into()
}
}
#[derive(serde::Serialize)]
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct CoreBindRequest {
#[prost(string, required, tag = "1")]
pub method: ::prost::alloc::string::String,
#[prost(string, required, tag = "2")]
pub input_msg: ::prost::alloc::string::String,
#[prost(string, required, tag = "3")]
pub output_msg: ::prost::alloc::string::String,
#[prost(string, optional, tag = "4")]
pub plugin: ::core::option::Option<::prost::alloc::string::String>,
}
impl ::prost::Name for CoreBindRequest {
const NAME: &'static str = "CoreBindRequest";
const PACKAGE: &'static str = "dfproto";
fn full_name() -> ::prost::alloc::string::String {
"dfproto.CoreBindRequest".into()
}
fn type_url() -> ::prost::alloc::string::String {
"/dfproto.CoreBindRequest".into()
}
}
#[derive(serde::Serialize)]
#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
pub struct CoreBindReply {
#[prost(int32, required, tag = "1")]
pub assigned_id: i32,
}
impl ::prost::Name for CoreBindReply {
const NAME: &'static str = "CoreBindReply";
const PACKAGE: &'static str = "dfproto";
fn full_name() -> ::prost::alloc::string::String {
"dfproto.CoreBindReply".into()
}
fn type_url() -> ::prost::alloc::string::String {
"/dfproto.CoreBindReply".into()
}
}
#[derive(serde::Serialize)]
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct CoreRunCommandRequest {
#[prost(string, required, tag = "1")]
pub command: ::prost::alloc::string::String,
#[prost(string, repeated, tag = "2")]
pub arguments: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
}
impl ::prost::Name for CoreRunCommandRequest {
const NAME: &'static str = "CoreRunCommandRequest";
const PACKAGE: &'static str = "dfproto";
fn full_name() -> ::prost::alloc::string::String {
"dfproto.CoreRunCommandRequest".into()
}
fn type_url() -> ::prost::alloc::string::String {
"/dfproto.CoreRunCommandRequest".into()
}
}
#[derive(serde::Serialize)]
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct CoreRunLuaRequest {
#[prost(string, required, tag = "1")]
pub module: ::prost::alloc::string::String,
#[prost(string, required, tag = "2")]
pub function: ::prost::alloc::string::String,
#[prost(string, repeated, tag = "3")]
pub arguments: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
}
impl ::prost::Name for CoreRunLuaRequest {
const NAME: &'static str = "CoreRunLuaRequest";
const PACKAGE: &'static str = "dfproto";
fn full_name() -> ::prost::alloc::string::String {
"dfproto.CoreRunLuaRequest".into()
}
fn type_url() -> ::prost::alloc::string::String {
"/dfproto.CoreRunLuaRequest".into()
}
}
#[derive(serde::Serialize)]
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct RenameSquadIn {
#[prost(int32, required, tag = "1")]
pub squad_id: i32,
#[prost(string, optional, tag = "2")]
pub nickname: ::core::option::Option<::prost::alloc::string::String>,
#[prost(string, optional, tag = "3")]
pub alias: ::core::option::Option<::prost::alloc::string::String>,
}
impl ::prost::Name for RenameSquadIn {
const NAME: &'static str = "RenameSquadIn";
const PACKAGE: &'static str = "dfproto";
fn full_name() -> ::prost::alloc::string::String {
"dfproto.RenameSquadIn".into()
}
fn type_url() -> ::prost::alloc::string::String {
"/dfproto.RenameSquadIn".into()
}
}
#[derive(serde::Serialize)]
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct RenameUnitIn {
#[prost(int32, required, tag = "1")]
pub unit_id: i32,
#[prost(string, optional, tag = "2")]
pub nickname: ::core::option::Option<::prost::alloc::string::String>,
#[prost(string, optional, tag = "3")]
pub profession: ::core::option::Option<::prost::alloc::string::String>,
}
impl ::prost::Name for RenameUnitIn {
const NAME: &'static str = "RenameUnitIn";
const PACKAGE: &'static str = "dfproto";
fn full_name() -> ::prost::alloc::string::String {
"dfproto.RenameUnitIn".into()
}
fn type_url() -> ::prost::alloc::string::String {
"/dfproto.RenameUnitIn".into()
}
}
#[derive(serde::Serialize)]
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct RenameBuildingIn {
#[prost(int32, required, tag = "1")]
pub building_id: i32,
#[prost(string, optional, tag = "2")]
pub name: ::core::option::Option<::prost::alloc::string::String>,
}
impl ::prost::Name for RenameBuildingIn {
const NAME: &'static str = "RenameBuildingIn";
const PACKAGE: &'static str = "dfproto";
fn full_name() -> ::prost::alloc::string::String {
"dfproto.RenameBuildingIn".into()
}
fn type_url() -> ::prost::alloc::string::String {
"/dfproto.RenameBuildingIn".into()
}
}