dfhack-proto 0.12.0

Generated code from the DFHack API
Documentation
// This file is @generated by prost-build.
#[derive(serde::Serialize)]
#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
pub struct MoveCommandParams {
    #[prost(message, optional, tag = "1")]
    pub direction: ::core::option::Option<super::remote_fortress_reader::Coord>,
}
impl ::prost::Name for MoveCommandParams {
    const NAME: &'static str = "MoveCommandParams";
    const PACKAGE: &'static str = "AdventureControl";
    fn full_name() -> ::prost::alloc::string::String {
        "AdventureControl.MoveCommandParams".into()
    }
    fn type_url() -> ::prost::alloc::string::String {
        "/AdventureControl.MoveCommandParams".into()
    }
}
#[derive(serde::Serialize)]
#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
pub struct MovementOption {
    #[prost(message, optional, tag = "1")]
    pub dest: ::core::option::Option<super::remote_fortress_reader::Coord>,
    #[prost(message, optional, tag = "2")]
    pub source: ::core::option::Option<super::remote_fortress_reader::Coord>,
    #[prost(message, optional, tag = "3")]
    pub grab: ::core::option::Option<super::remote_fortress_reader::Coord>,
    #[prost(enumeration = "CarefulMovementType", optional, tag = "4")]
    pub movement_type: ::core::option::Option<i32>,
}
impl ::prost::Name for MovementOption {
    const NAME: &'static str = "MovementOption";
    const PACKAGE: &'static str = "AdventureControl";
    fn full_name() -> ::prost::alloc::string::String {
        "AdventureControl.MovementOption".into()
    }
    fn type_url() -> ::prost::alloc::string::String {
        "/AdventureControl.MovementOption".into()
    }
}
#[derive(serde::Serialize)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct MenuContents {
    #[prost(enumeration = "AdvmodeMenu", optional, tag = "1")]
    pub current_menu: ::core::option::Option<i32>,
    #[prost(message, repeated, tag = "2")]
    pub movements: ::prost::alloc::vec::Vec<MovementOption>,
}
impl ::prost::Name for MenuContents {
    const NAME: &'static str = "MenuContents";
    const PACKAGE: &'static str = "AdventureControl";
    fn full_name() -> ::prost::alloc::string::String {
        "AdventureControl.MenuContents".into()
    }
    fn type_url() -> ::prost::alloc::string::String {
        "/AdventureControl.MenuContents".into()
    }
}
#[derive(serde::Serialize)]
#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
pub struct MiscMoveParams {
    #[prost(enumeration = "MiscMoveType", optional, tag = "1")]
    pub r#type: ::core::option::Option<i32>,
}
impl ::prost::Name for MiscMoveParams {
    const NAME: &'static str = "MiscMoveParams";
    const PACKAGE: &'static str = "AdventureControl";
    fn full_name() -> ::prost::alloc::string::String {
        "AdventureControl.MiscMoveParams".into()
    }
    fn type_url() -> ::prost::alloc::string::String {
        "/AdventureControl.MiscMoveParams".into()
    }
}
#[derive(serde::Serialize)]
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum AdvmodeMenu {
    Default = 0,
    Look = 1,
    ConversationAddress = 2,
    ConversationSelect = 3,
    ConversationSpeak = 4,
    Inventory = 5,
    Drop = 6,
    ThrowItem = 7,
    Wear = 8,
    Remove = 9,
    Interact = 10,
    Put = 11,
    PutContainer = 12,
    Eat = 13,
    ThrowAim = 14,
    Fire = 15,
    Get = 16,
    Unk17 = 17,
    CombatPrefs = 18,
    Companions = 19,
    MovementPrefs = 20,
    SpeedPrefs = 21,
    InteractAction = 22,
    MoveCarefully = 23,
    Announcements = 24,
    UseBuilding = 25,
    Travel = 26,
    Unk27 = 27,
    Unk28 = 28,
    SleepConfirm = 29,
    SelectInteractionTarget = 30,
    Unk31 = 31,
    Unk32 = 32,
    FallAction = 33,
    ViewTracks = 34,
    Jump = 35,
    Unk36 = 36,
    AttackConfirm = 37,
    AttackType = 38,
    AttackBodypart = 39,
    AttackStrike = 40,
    Unk41 = 41,
    Unk42 = 42,
    DodgeDirection = 43,
    Unk44 = 44,
    Unk45 = 45,
    Build = 46,
}
impl AdvmodeMenu {
    /// String value of the enum field names used in the ProtoBuf definition.
    ///
    /// The values are not transformed in any way and thus are considered stable
    /// (if the ProtoBuf definition does not change) and safe for programmatic use.
    pub fn as_str_name(&self) -> &'static str {
        match self {
            Self::Default => "Default",
            Self::Look => "Look",
            Self::ConversationAddress => "ConversationAddress",
            Self::ConversationSelect => "ConversationSelect",
            Self::ConversationSpeak => "ConversationSpeak",
            Self::Inventory => "Inventory",
            Self::Drop => "Drop",
            Self::ThrowItem => "ThrowItem",
            Self::Wear => "Wear",
            Self::Remove => "Remove",
            Self::Interact => "Interact",
            Self::Put => "Put",
            Self::PutContainer => "PutContainer",
            Self::Eat => "Eat",
            Self::ThrowAim => "ThrowAim",
            Self::Fire => "Fire",
            Self::Get => "Get",
            Self::Unk17 => "Unk17",
            Self::CombatPrefs => "CombatPrefs",
            Self::Companions => "Companions",
            Self::MovementPrefs => "MovementPrefs",
            Self::SpeedPrefs => "SpeedPrefs",
            Self::InteractAction => "InteractAction",
            Self::MoveCarefully => "MoveCarefully",
            Self::Announcements => "Announcements",
            Self::UseBuilding => "UseBuilding",
            Self::Travel => "Travel",
            Self::Unk27 => "Unk27",
            Self::Unk28 => "Unk28",
            Self::SleepConfirm => "SleepConfirm",
            Self::SelectInteractionTarget => "SelectInteractionTarget",
            Self::Unk31 => "Unk31",
            Self::Unk32 => "Unk32",
            Self::FallAction => "FallAction",
            Self::ViewTracks => "ViewTracks",
            Self::Jump => "Jump",
            Self::Unk36 => "Unk36",
            Self::AttackConfirm => "AttackConfirm",
            Self::AttackType => "AttackType",
            Self::AttackBodypart => "AttackBodypart",
            Self::AttackStrike => "AttackStrike",
            Self::Unk41 => "Unk41",
            Self::Unk42 => "Unk42",
            Self::DodgeDirection => "DodgeDirection",
            Self::Unk44 => "Unk44",
            Self::Unk45 => "Unk45",
            Self::Build => "Build",
        }
    }
    /// Creates an enum from field names used in the ProtoBuf definition.
    pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
        match value {
            "Default" => Some(Self::Default),
            "Look" => Some(Self::Look),
            "ConversationAddress" => Some(Self::ConversationAddress),
            "ConversationSelect" => Some(Self::ConversationSelect),
            "ConversationSpeak" => Some(Self::ConversationSpeak),
            "Inventory" => Some(Self::Inventory),
            "Drop" => Some(Self::Drop),
            "ThrowItem" => Some(Self::ThrowItem),
            "Wear" => Some(Self::Wear),
            "Remove" => Some(Self::Remove),
            "Interact" => Some(Self::Interact),
            "Put" => Some(Self::Put),
            "PutContainer" => Some(Self::PutContainer),
            "Eat" => Some(Self::Eat),
            "ThrowAim" => Some(Self::ThrowAim),
            "Fire" => Some(Self::Fire),
            "Get" => Some(Self::Get),
            "Unk17" => Some(Self::Unk17),
            "CombatPrefs" => Some(Self::CombatPrefs),
            "Companions" => Some(Self::Companions),
            "MovementPrefs" => Some(Self::MovementPrefs),
            "SpeedPrefs" => Some(Self::SpeedPrefs),
            "InteractAction" => Some(Self::InteractAction),
            "MoveCarefully" => Some(Self::MoveCarefully),
            "Announcements" => Some(Self::Announcements),
            "UseBuilding" => Some(Self::UseBuilding),
            "Travel" => Some(Self::Travel),
            "Unk27" => Some(Self::Unk27),
            "Unk28" => Some(Self::Unk28),
            "SleepConfirm" => Some(Self::SleepConfirm),
            "SelectInteractionTarget" => Some(Self::SelectInteractionTarget),
            "Unk31" => Some(Self::Unk31),
            "Unk32" => Some(Self::Unk32),
            "FallAction" => Some(Self::FallAction),
            "ViewTracks" => Some(Self::ViewTracks),
            "Jump" => Some(Self::Jump),
            "Unk36" => Some(Self::Unk36),
            "AttackConfirm" => Some(Self::AttackConfirm),
            "AttackType" => Some(Self::AttackType),
            "AttackBodypart" => Some(Self::AttackBodypart),
            "AttackStrike" => Some(Self::AttackStrike),
            "Unk41" => Some(Self::Unk41),
            "Unk42" => Some(Self::Unk42),
            "DodgeDirection" => Some(Self::DodgeDirection),
            "Unk44" => Some(Self::Unk44),
            "Unk45" => Some(Self::Unk45),
            "Build" => Some(Self::Build),
            _ => None,
        }
    }
}
#[derive(serde::Serialize)]
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum CarefulMovementType {
    DefaultMovement = 0,
    ReleaseItemHold = 1,
    ReleaseTileHold = 2,
    AttackCreature = 3,
    HoldTile = 4,
    Move = 5,
    Climb = 6,
    HoldItem = 7,
    BuildingInteract = 8,
    ItemInteract = 9,
    ItemInteractGuide = 10,
    ItemInteractRide = 11,
    ItemInteractPush = 12,
}
impl CarefulMovementType {
    /// String value of the enum field names used in the ProtoBuf definition.
    ///
    /// The values are not transformed in any way and thus are considered stable
    /// (if the ProtoBuf definition does not change) and safe for programmatic use.
    pub fn as_str_name(&self) -> &'static str {
        match self {
            Self::DefaultMovement => "DEFAULT_MOVEMENT",
            Self::ReleaseItemHold => "RELEASE_ITEM_HOLD",
            Self::ReleaseTileHold => "RELEASE_TILE_HOLD",
            Self::AttackCreature => "ATTACK_CREATURE",
            Self::HoldTile => "HOLD_TILE",
            Self::Move => "MOVE",
            Self::Climb => "CLIMB",
            Self::HoldItem => "HOLD_ITEM",
            Self::BuildingInteract => "BUILDING_INTERACT",
            Self::ItemInteract => "ITEM_INTERACT",
            Self::ItemInteractGuide => "ITEM_INTERACT_GUIDE",
            Self::ItemInteractRide => "ITEM_INTERACT_RIDE",
            Self::ItemInteractPush => "ITEM_INTERACT_PUSH",
        }
    }
    /// Creates an enum from field names used in the ProtoBuf definition.
    pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
        match value {
            "DEFAULT_MOVEMENT" => Some(Self::DefaultMovement),
            "RELEASE_ITEM_HOLD" => Some(Self::ReleaseItemHold),
            "RELEASE_TILE_HOLD" => Some(Self::ReleaseTileHold),
            "ATTACK_CREATURE" => Some(Self::AttackCreature),
            "HOLD_TILE" => Some(Self::HoldTile),
            "MOVE" => Some(Self::Move),
            "CLIMB" => Some(Self::Climb),
            "HOLD_ITEM" => Some(Self::HoldItem),
            "BUILDING_INTERACT" => Some(Self::BuildingInteract),
            "ITEM_INTERACT" => Some(Self::ItemInteract),
            "ITEM_INTERACT_GUIDE" => Some(Self::ItemInteractGuide),
            "ITEM_INTERACT_RIDE" => Some(Self::ItemInteractRide),
            "ITEM_INTERACT_PUSH" => Some(Self::ItemInteractPush),
            _ => None,
        }
    }
}
#[derive(serde::Serialize)]
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum MiscMoveType {
    SetClimb = 0,
    SetStand = 1,
    SetCancel = 2,
}
impl MiscMoveType {
    /// String value of the enum field names used in the ProtoBuf definition.
    ///
    /// The values are not transformed in any way and thus are considered stable
    /// (if the ProtoBuf definition does not change) and safe for programmatic use.
    pub fn as_str_name(&self) -> &'static str {
        match self {
            Self::SetClimb => "SET_CLIMB",
            Self::SetStand => "SET_STAND",
            Self::SetCancel => "SET_CANCEL",
        }
    }
    /// Creates an enum from field names used in the ProtoBuf definition.
    pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
        match value {
            "SET_CLIMB" => Some(Self::SetClimb),
            "SET_STAND" => Some(Self::SetStand),
            "SET_CANCEL" => Some(Self::SetCancel),
            _ => None,
        }
    }
}