Skip to main content

dfhack_proto/generated/messages/
adventure_control.rs

1// This file is @generated by prost-build.
2#[derive(serde::Serialize)]
3#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
4pub struct MoveCommandParams {
5    #[prost(message, optional, tag = "1")]
6    pub direction: ::core::option::Option<super::remote_fortress_reader::Coord>,
7}
8impl ::prost::Name for MoveCommandParams {
9    const NAME: &'static str = "MoveCommandParams";
10    const PACKAGE: &'static str = "AdventureControl";
11    fn full_name() -> ::prost::alloc::string::String {
12        "AdventureControl.MoveCommandParams".into()
13    }
14    fn type_url() -> ::prost::alloc::string::String {
15        "/AdventureControl.MoveCommandParams".into()
16    }
17}
18#[derive(serde::Serialize)]
19#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
20pub struct MovementOption {
21    #[prost(message, optional, tag = "1")]
22    pub dest: ::core::option::Option<super::remote_fortress_reader::Coord>,
23    #[prost(message, optional, tag = "2")]
24    pub source: ::core::option::Option<super::remote_fortress_reader::Coord>,
25    #[prost(message, optional, tag = "3")]
26    pub grab: ::core::option::Option<super::remote_fortress_reader::Coord>,
27    #[prost(enumeration = "CarefulMovementType", optional, tag = "4")]
28    pub movement_type: ::core::option::Option<i32>,
29}
30impl ::prost::Name for MovementOption {
31    const NAME: &'static str = "MovementOption";
32    const PACKAGE: &'static str = "AdventureControl";
33    fn full_name() -> ::prost::alloc::string::String {
34        "AdventureControl.MovementOption".into()
35    }
36    fn type_url() -> ::prost::alloc::string::String {
37        "/AdventureControl.MovementOption".into()
38    }
39}
40#[derive(serde::Serialize)]
41#[derive(Clone, PartialEq, ::prost::Message)]
42pub struct MenuContents {
43    #[prost(enumeration = "AdvmodeMenu", optional, tag = "1")]
44    pub current_menu: ::core::option::Option<i32>,
45    #[prost(message, repeated, tag = "2")]
46    pub movements: ::prost::alloc::vec::Vec<MovementOption>,
47}
48impl ::prost::Name for MenuContents {
49    const NAME: &'static str = "MenuContents";
50    const PACKAGE: &'static str = "AdventureControl";
51    fn full_name() -> ::prost::alloc::string::String {
52        "AdventureControl.MenuContents".into()
53    }
54    fn type_url() -> ::prost::alloc::string::String {
55        "/AdventureControl.MenuContents".into()
56    }
57}
58#[derive(serde::Serialize)]
59#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
60pub struct MiscMoveParams {
61    #[prost(enumeration = "MiscMoveType", optional, tag = "1")]
62    pub r#type: ::core::option::Option<i32>,
63}
64impl ::prost::Name for MiscMoveParams {
65    const NAME: &'static str = "MiscMoveParams";
66    const PACKAGE: &'static str = "AdventureControl";
67    fn full_name() -> ::prost::alloc::string::String {
68        "AdventureControl.MiscMoveParams".into()
69    }
70    fn type_url() -> ::prost::alloc::string::String {
71        "/AdventureControl.MiscMoveParams".into()
72    }
73}
74#[derive(serde::Serialize)]
75#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
76#[repr(i32)]
77pub enum AdvmodeMenu {
78    Default = 0,
79    Look = 1,
80    ConversationAddress = 2,
81    ConversationSelect = 3,
82    ConversationSpeak = 4,
83    Inventory = 5,
84    Drop = 6,
85    ThrowItem = 7,
86    Wear = 8,
87    Remove = 9,
88    Interact = 10,
89    Put = 11,
90    PutContainer = 12,
91    Eat = 13,
92    ThrowAim = 14,
93    Fire = 15,
94    Get = 16,
95    Unk17 = 17,
96    CombatPrefs = 18,
97    Companions = 19,
98    MovementPrefs = 20,
99    SpeedPrefs = 21,
100    InteractAction = 22,
101    MoveCarefully = 23,
102    Announcements = 24,
103    UseBuilding = 25,
104    Travel = 26,
105    Unk27 = 27,
106    Unk28 = 28,
107    SleepConfirm = 29,
108    SelectInteractionTarget = 30,
109    Unk31 = 31,
110    Unk32 = 32,
111    FallAction = 33,
112    ViewTracks = 34,
113    Jump = 35,
114    Unk36 = 36,
115    AttackConfirm = 37,
116    AttackType = 38,
117    AttackBodypart = 39,
118    AttackStrike = 40,
119    Unk41 = 41,
120    Unk42 = 42,
121    DodgeDirection = 43,
122    Unk44 = 44,
123    Unk45 = 45,
124    Build = 46,
125}
126impl AdvmodeMenu {
127    /// String value of the enum field names used in the ProtoBuf definition.
128    ///
129    /// The values are not transformed in any way and thus are considered stable
130    /// (if the ProtoBuf definition does not change) and safe for programmatic use.
131    pub fn as_str_name(&self) -> &'static str {
132        match self {
133            Self::Default => "Default",
134            Self::Look => "Look",
135            Self::ConversationAddress => "ConversationAddress",
136            Self::ConversationSelect => "ConversationSelect",
137            Self::ConversationSpeak => "ConversationSpeak",
138            Self::Inventory => "Inventory",
139            Self::Drop => "Drop",
140            Self::ThrowItem => "ThrowItem",
141            Self::Wear => "Wear",
142            Self::Remove => "Remove",
143            Self::Interact => "Interact",
144            Self::Put => "Put",
145            Self::PutContainer => "PutContainer",
146            Self::Eat => "Eat",
147            Self::ThrowAim => "ThrowAim",
148            Self::Fire => "Fire",
149            Self::Get => "Get",
150            Self::Unk17 => "Unk17",
151            Self::CombatPrefs => "CombatPrefs",
152            Self::Companions => "Companions",
153            Self::MovementPrefs => "MovementPrefs",
154            Self::SpeedPrefs => "SpeedPrefs",
155            Self::InteractAction => "InteractAction",
156            Self::MoveCarefully => "MoveCarefully",
157            Self::Announcements => "Announcements",
158            Self::UseBuilding => "UseBuilding",
159            Self::Travel => "Travel",
160            Self::Unk27 => "Unk27",
161            Self::Unk28 => "Unk28",
162            Self::SleepConfirm => "SleepConfirm",
163            Self::SelectInteractionTarget => "SelectInteractionTarget",
164            Self::Unk31 => "Unk31",
165            Self::Unk32 => "Unk32",
166            Self::FallAction => "FallAction",
167            Self::ViewTracks => "ViewTracks",
168            Self::Jump => "Jump",
169            Self::Unk36 => "Unk36",
170            Self::AttackConfirm => "AttackConfirm",
171            Self::AttackType => "AttackType",
172            Self::AttackBodypart => "AttackBodypart",
173            Self::AttackStrike => "AttackStrike",
174            Self::Unk41 => "Unk41",
175            Self::Unk42 => "Unk42",
176            Self::DodgeDirection => "DodgeDirection",
177            Self::Unk44 => "Unk44",
178            Self::Unk45 => "Unk45",
179            Self::Build => "Build",
180        }
181    }
182    /// Creates an enum from field names used in the ProtoBuf definition.
183    pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
184        match value {
185            "Default" => Some(Self::Default),
186            "Look" => Some(Self::Look),
187            "ConversationAddress" => Some(Self::ConversationAddress),
188            "ConversationSelect" => Some(Self::ConversationSelect),
189            "ConversationSpeak" => Some(Self::ConversationSpeak),
190            "Inventory" => Some(Self::Inventory),
191            "Drop" => Some(Self::Drop),
192            "ThrowItem" => Some(Self::ThrowItem),
193            "Wear" => Some(Self::Wear),
194            "Remove" => Some(Self::Remove),
195            "Interact" => Some(Self::Interact),
196            "Put" => Some(Self::Put),
197            "PutContainer" => Some(Self::PutContainer),
198            "Eat" => Some(Self::Eat),
199            "ThrowAim" => Some(Self::ThrowAim),
200            "Fire" => Some(Self::Fire),
201            "Get" => Some(Self::Get),
202            "Unk17" => Some(Self::Unk17),
203            "CombatPrefs" => Some(Self::CombatPrefs),
204            "Companions" => Some(Self::Companions),
205            "MovementPrefs" => Some(Self::MovementPrefs),
206            "SpeedPrefs" => Some(Self::SpeedPrefs),
207            "InteractAction" => Some(Self::InteractAction),
208            "MoveCarefully" => Some(Self::MoveCarefully),
209            "Announcements" => Some(Self::Announcements),
210            "UseBuilding" => Some(Self::UseBuilding),
211            "Travel" => Some(Self::Travel),
212            "Unk27" => Some(Self::Unk27),
213            "Unk28" => Some(Self::Unk28),
214            "SleepConfirm" => Some(Self::SleepConfirm),
215            "SelectInteractionTarget" => Some(Self::SelectInteractionTarget),
216            "Unk31" => Some(Self::Unk31),
217            "Unk32" => Some(Self::Unk32),
218            "FallAction" => Some(Self::FallAction),
219            "ViewTracks" => Some(Self::ViewTracks),
220            "Jump" => Some(Self::Jump),
221            "Unk36" => Some(Self::Unk36),
222            "AttackConfirm" => Some(Self::AttackConfirm),
223            "AttackType" => Some(Self::AttackType),
224            "AttackBodypart" => Some(Self::AttackBodypart),
225            "AttackStrike" => Some(Self::AttackStrike),
226            "Unk41" => Some(Self::Unk41),
227            "Unk42" => Some(Self::Unk42),
228            "DodgeDirection" => Some(Self::DodgeDirection),
229            "Unk44" => Some(Self::Unk44),
230            "Unk45" => Some(Self::Unk45),
231            "Build" => Some(Self::Build),
232            _ => None,
233        }
234    }
235}
236#[derive(serde::Serialize)]
237#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
238#[repr(i32)]
239pub enum CarefulMovementType {
240    DefaultMovement = 0,
241    ReleaseItemHold = 1,
242    ReleaseTileHold = 2,
243    AttackCreature = 3,
244    HoldTile = 4,
245    Move = 5,
246    Climb = 6,
247    HoldItem = 7,
248    BuildingInteract = 8,
249    ItemInteract = 9,
250    ItemInteractGuide = 10,
251    ItemInteractRide = 11,
252    ItemInteractPush = 12,
253}
254impl CarefulMovementType {
255    /// String value of the enum field names used in the ProtoBuf definition.
256    ///
257    /// The values are not transformed in any way and thus are considered stable
258    /// (if the ProtoBuf definition does not change) and safe for programmatic use.
259    pub fn as_str_name(&self) -> &'static str {
260        match self {
261            Self::DefaultMovement => "DEFAULT_MOVEMENT",
262            Self::ReleaseItemHold => "RELEASE_ITEM_HOLD",
263            Self::ReleaseTileHold => "RELEASE_TILE_HOLD",
264            Self::AttackCreature => "ATTACK_CREATURE",
265            Self::HoldTile => "HOLD_TILE",
266            Self::Move => "MOVE",
267            Self::Climb => "CLIMB",
268            Self::HoldItem => "HOLD_ITEM",
269            Self::BuildingInteract => "BUILDING_INTERACT",
270            Self::ItemInteract => "ITEM_INTERACT",
271            Self::ItemInteractGuide => "ITEM_INTERACT_GUIDE",
272            Self::ItemInteractRide => "ITEM_INTERACT_RIDE",
273            Self::ItemInteractPush => "ITEM_INTERACT_PUSH",
274        }
275    }
276    /// Creates an enum from field names used in the ProtoBuf definition.
277    pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
278        match value {
279            "DEFAULT_MOVEMENT" => Some(Self::DefaultMovement),
280            "RELEASE_ITEM_HOLD" => Some(Self::ReleaseItemHold),
281            "RELEASE_TILE_HOLD" => Some(Self::ReleaseTileHold),
282            "ATTACK_CREATURE" => Some(Self::AttackCreature),
283            "HOLD_TILE" => Some(Self::HoldTile),
284            "MOVE" => Some(Self::Move),
285            "CLIMB" => Some(Self::Climb),
286            "HOLD_ITEM" => Some(Self::HoldItem),
287            "BUILDING_INTERACT" => Some(Self::BuildingInteract),
288            "ITEM_INTERACT" => Some(Self::ItemInteract),
289            "ITEM_INTERACT_GUIDE" => Some(Self::ItemInteractGuide),
290            "ITEM_INTERACT_RIDE" => Some(Self::ItemInteractRide),
291            "ITEM_INTERACT_PUSH" => Some(Self::ItemInteractPush),
292            _ => None,
293        }
294    }
295}
296#[derive(serde::Serialize)]
297#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
298#[repr(i32)]
299pub enum MiscMoveType {
300    SetClimb = 0,
301    SetStand = 1,
302    SetCancel = 2,
303}
304impl MiscMoveType {
305    /// String value of the enum field names used in the ProtoBuf definition.
306    ///
307    /// The values are not transformed in any way and thus are considered stable
308    /// (if the ProtoBuf definition does not change) and safe for programmatic use.
309    pub fn as_str_name(&self) -> &'static str {
310        match self {
311            Self::SetClimb => "SET_CLIMB",
312            Self::SetStand => "SET_STAND",
313            Self::SetCancel => "SET_CANCEL",
314        }
315    }
316    /// Creates an enum from field names used in the ProtoBuf definition.
317    pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
318        match value {
319            "SET_CLIMB" => Some(Self::SetClimb),
320            "SET_STAND" => Some(Self::SetStand),
321            "SET_CANCEL" => Some(Self::SetCancel),
322            _ => None,
323        }
324    }
325}