Skip to main content

engage/generated/combat/
locationparams.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "combat-locationparams-types")]
4mod __types {
5    #[allow(unused_imports)] use ::unity::prelude::*;
6
7    use super::*;
8    use crate::{
9        system::{
10            object::{IObject, Object},
11            r#enum::{Enum, IEnum},
12            valuetype::{IValueType, ValueType},
13        },
14        unity_engine::{
15            behaviour::{Behaviour, IBehaviour},
16            component::{Component, IComponent},
17            monobehaviour::{IMonoBehaviour, MonoBehaviour},
18            object_2::{IObject_2, Object_2},
19        },
20    };
21
22    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/combat/locationparams/LocationParams_DataType.md"))]
23    #[repr(C)]
24    #[derive(::core::clone::Clone, ::core::marker::Copy, ::core::fmt::Debug, ::core::cmp::PartialEq, ::core::cmp::Eq)]
25    pub struct LocationParams_DataType {
26        pub value: i32,
27    }
28    impl ::unity::ClassIdentity for LocationParams_DataType {
29        const NAME: &'static str = "LocationParams.DataType";
30        const NAMESPACE: &'static str = "Combat";
31
32        fn class() -> ::unity::Class {
33            static CACHE: ::std::sync::OnceLock<::unity::Class> = ::std::sync::OnceLock::new();
34            *CACHE.get_or_init(|| ::unity::Class::lookup(Self::NAMESPACE, Self::NAME))
35        }
36    }
37    impl ::unity::IlType for LocationParams_DataType {
38        fn il_type() -> &'static ::unity::il2cpp::Il2CppType {
39            &<Self as ::unity::ClassIdentity>::class().raw()._1.byval_arg
40        }
41    }
42    impl LocationParams_DataType {
43        pub fn distance() -> Self {
44            Self { value: 0 }
45        }
46
47        pub fn degree1() -> Self {
48            Self { value: 1 }
49        }
50
51        pub fn degree2() -> Self {
52            Self { value: 2 }
53        }
54
55        pub fn height() -> Self {
56            Self { value: 3 }
57        }
58
59        pub fn num() -> Self {
60            Self { value: 4 }
61        }
62    }
63
64    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/combat/locationparams/LocationParams_LocateStyle.md"))]
65    #[repr(C)]
66    #[derive(::core::clone::Clone, ::core::marker::Copy, ::core::fmt::Debug, ::core::cmp::PartialEq, ::core::cmp::Eq)]
67    pub struct LocationParams_LocateStyle {
68        pub value: i32,
69    }
70    impl ::unity::ClassIdentity for LocationParams_LocateStyle {
71        const NAME: &'static str = "LocationParams.LocateStyle";
72        const NAMESPACE: &'static str = "Combat";
73
74        fn class() -> ::unity::Class {
75            static CACHE: ::std::sync::OnceLock<::unity::Class> = ::std::sync::OnceLock::new();
76            *CACHE.get_or_init(|| ::unity::Class::lookup(Self::NAMESPACE, Self::NAME))
77        }
78    }
79    impl ::unity::IlType for LocationParams_LocateStyle {
80        fn il_type() -> &'static ::unity::il2cpp::Il2CppType {
81            &<Self as ::unity::ClassIdentity>::class().raw()._1.byval_arg
82        }
83    }
84    impl LocationParams_LocateStyle {
85        pub fn combat() -> Self {
86            Self { value: 0 }
87        }
88
89        pub fn combat_win() -> Self {
90            Self { value: 1 }
91        }
92
93        pub fn cannon() -> Self {
94            Self { value: 2 }
95        }
96
97        pub fn engage_atk() -> Self {
98            Self { value: 3 }
99        }
100
101        pub fn detail() -> Self {
102            Self { value: 4 }
103        }
104
105        pub fn later_talk() -> Self {
106            Self { value: 5 }
107        }
108
109        pub fn num() -> Self {
110            Self { value: 6 }
111        }
112
113        pub fn none() -> Self {
114            Self { value: -1 }
115        }
116
117        pub fn engage() -> Self {
118            Self { value: -2 }
119        }
120    }
121
122    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/combat/locationparams/LocationParams_EmblemType.md"))]
123    #[repr(C)]
124    #[derive(::core::clone::Clone, ::core::marker::Copy, ::core::fmt::Debug, ::core::cmp::PartialEq, ::core::cmp::Eq)]
125    pub struct LocationParams_EmblemType {
126        pub value: i32,
127    }
128    impl ::unity::ClassIdentity for LocationParams_EmblemType {
129        const NAME: &'static str = "LocationParams.EmblemType";
130        const NAMESPACE: &'static str = "Combat";
131
132        fn class() -> ::unity::Class {
133            static CACHE: ::std::sync::OnceLock<::unity::Class> = ::std::sync::OnceLock::new();
134            *CACHE.get_or_init(|| ::unity::Class::lookup(Self::NAMESPACE, Self::NAME))
135        }
136    }
137    impl ::unity::IlType for LocationParams_EmblemType {
138        fn il_type() -> &'static ::unity::il2cpp::Il2CppType {
139            &<Self as ::unity::ClassIdentity>::class().raw()._1.byval_arg
140        }
141    }
142    impl LocationParams_EmblemType {
143        pub fn normal() -> Self {
144            Self { value: 0 }
145        }
146
147        pub fn sigurd() -> Self {
148            Self { value: 1 }
149        }
150
151        pub fn flying() -> Self {
152            Self { value: 2 }
153        }
154
155        pub fn num() -> Self {
156            Self { value: 3 }
157        }
158    }
159
160    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/combat/locationparams/LocationParams.md"))]
161    #[::unity::class(namespace = "Combat", name = "LocationParams")]
162    #[parent(crate::unity_engine::monobehaviour::MonoBehaviour)]
163    pub struct LocationParams {
164        #[static_field]
165        #[rename(name = "Instance")]
166        pub instance: crate::combat::locationparams::LocationParams,
167        #[offset(24)]
168        #[rename(name = "EmblemPos")]
169        pub emblem_pos: ::unity::Array<f32>,
170        #[offset(32)]
171        #[rename(name = "FlyWinThreshold")]
172        pub fly_win_threshold: f32,
173        #[offset(36)]
174        #[rename(name = "LookCenter")]
175        pub look_center: bool,
176        #[static_field]
177        #[rename(name = "s_RefletDegree")]
178        pub s_reflet_degree: crate::app::gameparam::GameParam_Holder,
179    }
180
181    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/combat/locationparams/LocationParams_UnitType.md"))]
182    #[repr(C)]
183    #[derive(::core::clone::Clone, ::core::marker::Copy, ::core::fmt::Debug, ::core::cmp::PartialEq, ::core::cmp::Eq)]
184    pub struct LocationParams_UnitType {
185        pub value: i32,
186    }
187    impl ::unity::ClassIdentity for LocationParams_UnitType {
188        const NAME: &'static str = "LocationParams.UnitType";
189        const NAMESPACE: &'static str = "Combat";
190
191        fn class() -> ::unity::Class {
192            static CACHE: ::std::sync::OnceLock<::unity::Class> = ::std::sync::OnceLock::new();
193            *CACHE.get_or_init(|| ::unity::Class::lookup(Self::NAMESPACE, Self::NAME))
194        }
195    }
196    impl ::unity::IlType for LocationParams_UnitType {
197        fn il_type() -> &'static ::unity::il2cpp::Il2CppType {
198            &<Self as ::unity::ClassIdentity>::class().raw()._1.byval_arg
199        }
200    }
201    impl LocationParams_UnitType {
202        pub fn walk() -> Self {
203            Self { value: 0 }
204        }
205
206        pub fn horce() -> Self {
207            Self { value: 1 }
208        }
209
210        pub fn pegasus() -> Self {
211            Self { value: 2 }
212        }
213
214        pub fn dragon() -> Self {
215            Self { value: 3 }
216        }
217
218        pub fn num() -> Self {
219            Self { value: 4 }
220        }
221    }
222}
223
224#[cfg(feature = "combat-locationparams-types")]
225pub use __types::*;
226
227#[cfg(feature = "combat-locationparams")]
228impl LocationParams {
229    #[doc = "`GetIndex(crate::combat::locationparams::LocationParams_LocateStyle, crate::combat::locationparams::LocationParams_UnitType, crate::combat::locationparams::LocationParams_EmblemType, crate::combat::locationparams::LocationParams_DataType)` overload"]
230    pub fn get_index(
231        l: impl ::core::convert::Into<crate::combat::locationparams::LocationParams_LocateStyle>,
232        u: impl ::core::convert::Into<crate::combat::locationparams::LocationParams_UnitType>,
233        e: impl ::core::convert::Into<crate::combat::locationparams::LocationParams_EmblemType>,
234        d: impl ::core::convert::Into<crate::combat::locationparams::LocationParams_DataType>,
235    ) -> i32 {
236        unsafe {
237            ::unity::il2cpp_call!((::unity::module_base()+0x1beebc0usize)as*mut u8,i32;
238(crate::combat::locationparams::LocationParams_LocateStyle)::core::convert::Into::into(l),(crate::combat::locationparams::LocationParams_UnitType)::core::convert::Into::into(u),(crate::combat::locationparams::LocationParams_EmblemType)::core::convert::Into::into(e),(crate::combat::locationparams::LocationParams_DataType)::core::convert::Into::into(d))
239        }
240    }
241
242    #[doc = "`GetEmblemGroundLevel(crate::combat::character::Character, crate::combat::character::Character)` overload"]
243    pub fn get_emblem_ground_level(
244        master: impl ::core::convert::Into<crate::combat::character::Character>,
245        emblem: impl ::core::convert::Into<crate::combat::character::Character>,
246    ) -> f32 {
247        unsafe {
248            ::unity::il2cpp_call!((::unity::module_base()+0x1beebf0usize)as*mut u8,f32;
249(crate::combat::character::Character)::core::convert::Into::into(master),(crate::combat::character::Character)::core::convert::Into::into(emblem))
250        }
251    }
252
253    #[doc = "`LocateEmblem(crate::combat::character::Character, crate::combat::character::Character, crate::unity_engine::vector3::Vector3, crate::unity_engine::vector3::Vector3, crate::combat::locationparams::LocationParams_LocateStyle)` overload"]
254    pub fn locate_emblem(
255        master: impl ::core::convert::Into<crate::combat::character::Character>,
256        emblem: impl ::core::convert::Into<crate::combat::character::Character>,
257        master_pos: impl ::core::convert::Into<crate::unity_engine::vector3::Vector3>,
258        master_dir: impl ::core::convert::Into<crate::unity_engine::vector3::Vector3>,
259        style: impl ::core::convert::Into<crate::combat::locationparams::LocationParams_LocateStyle>,
260    ) -> () {
261        unsafe {
262            ::unity::il2cpp_call!((::unity::module_base()+0x1bef0a0usize)as*mut u8,();
263(crate::combat::character::Character)::core::convert::Into::into(master),(crate::combat::character::Character)::core::convert::Into::into(emblem),(crate::unity_engine::vector3::Vector3)::core::convert::Into::into(master_pos),(crate::unity_engine::vector3::Vector3)::core::convert::Into::into(master_dir),(crate::combat::locationparams::LocationParams_LocateStyle)::core::convert::Into::into(style))
264        }
265    }
266
267    #[doc = "`.cctor()` overload"]
268    pub fn cctor() -> () {
269        unsafe {
270            ::unity::il2cpp_call!((::unity::module_base()+0x1bef6d0usize)as*mut u8,();
271            )
272        }
273    }
274}
275
276#[cfg(feature = "combat-locationparams")]
277pub trait ILocationParamsMethods: ILocationParams {
278    #[doc = "`Awake()` overload"]
279    fn awake(self) -> () {
280        unsafe {
281            let __receiver = <LocationParams as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
282            ::unity::il2cpp_call!((::unity::module_base()+0x1beeb40usize)as*mut u8,();
283(LocationParams)__receiver)
284        }
285    }
286    #[doc = "`.ctor()` overload"]
287    fn ctor(self) -> () {
288        unsafe {
289            let __receiver = <LocationParams as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
290            ::unity::il2cpp_call!((::unity::module_base()+0x1bef6c0usize)as*mut u8,();
291(LocationParams)__receiver)
292        }
293    }
294}
295
296#[cfg(feature = "combat-locationparams")]
297impl<__T: ILocationParams> ILocationParamsMethods for __T {}
298
299#[cfg(feature = "combat-locationparams")]
300impl LocationParams {
301    pub fn awake_method_info() -> &'static ::unity::il2cpp::MethodInfo {
302        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
303    }
304
305    pub fn get_index_method_info() -> &'static ::unity::il2cpp::MethodInfo {
306        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
307    }
308
309    pub fn get_emblem_ground_level_method_info() -> &'static ::unity::il2cpp::MethodInfo {
310        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
311    }
312
313    pub fn locate_emblem_method_info() -> &'static ::unity::il2cpp::MethodInfo {
314        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
315    }
316
317    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
318        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
319    }
320
321    pub fn cctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
322        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
323    }
324}
325
326#[cfg(feature = "combat-locationparams")]
327impl LocationParams {
328    #[doc = "`.ctor()` — no args"]
329    pub fn new() -> Self {
330        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
331            panic!(
332                "{}
333::{}
334 failed to instantiate",
335                ::core::stringify!(LocationParams),
336                ::core::stringify!(new),
337            )
338        });
339        <Self as ILocationParamsMethods>::ctor(this);
340        this
341    }
342}
343
344#[cfg(feature = "combat-locationparams")]
345#[doc(hidden)]
346pub mod prelude {
347    pub use super::{
348        ILocationParams, ILocationParamsMethods, LocationParams, LocationParams_DataType, LocationParams_EmblemType, LocationParams_LocateStyle,
349        LocationParams_UnitType,
350    };
351    #[cfg(feature = "system-object")]
352    pub use crate::system::object::IObjectMethods;
353    #[cfg(feature = "system-enum")]
354    pub use crate::system::r#enum::IEnumMethods;
355    #[cfg(feature = "system-valuetype")]
356    pub use crate::system::valuetype::IValueTypeMethods;
357    #[cfg(feature = "unity_engine-behaviour")]
358    pub use crate::unity_engine::behaviour::IBehaviourMethods;
359    #[cfg(feature = "unity_engine-component")]
360    pub use crate::unity_engine::component::IComponentMethods;
361    #[cfg(feature = "unity_engine-monobehaviour")]
362    pub use crate::unity_engine::monobehaviour::IMonoBehaviourMethods;
363    #[cfg(feature = "unity_engine-object_2")]
364    pub use crate::unity_engine::object_2::IObject_2Methods;
365    pub use crate::{
366        system::{object::IObject, r#enum::IEnum, valuetype::IValueType},
367        unity_engine::{behaviour::IBehaviour, component::IComponent, monobehaviour::IMonoBehaviour, object_2::IObject_2},
368    };
369}