Skip to main content

engage/generated/combat/
combatlocationfortress.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "combat-combatlocationfortress-types")]
4mod __types {
5    #[allow(unused_imports)] use ::unity::prelude::*;
6
7    use super::*;
8    use crate::{
9        combat::basecombatlocation::{BaseCombatLocation, IBaseCombatLocation},
10        system::object::{IObject, Object},
11    };
12
13    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/combat/combatlocationfortress/CombatLocationFortress.md"))]
14    #[::unity::class(namespace = "Combat", name = "CombatLocationFortress")]
15    #[parent(crate::combat::basecombatlocation::BaseCombatLocation)]
16    pub struct CombatLocationFortress {}
17}
18
19#[cfg(feature = "combat-combatlocationfortress-types")]
20pub use __types::*;
21
22#[cfg(feature = "combat-combatlocationfortress")]
23pub trait ICombatLocationFortressMethods: ICombatLocationFortress {
24    #[doc = "`.ctor(crate::combat::combatrecord::CombatRecord)` overload"]
25    fn ctor(self, record: impl ::core::convert::Into<crate::combat::combatrecord::CombatRecord>) -> () {
26        unsafe {
27            let __receiver =
28                <CombatLocationFortress as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
29            ::unity::il2cpp_call!((::unity::module_base()+0x1eb0890usize)as*mut u8,();
30(CombatLocationFortress)__receiver,(crate::combat::combatrecord::CombatRecord)::core::convert::Into::into(record))
31        }
32    }
33    #[doc = "`get_HighSide()` overload"]
34    fn get_high_side(self) -> i32 {
35        unsafe {
36            let __receiver =
37                <CombatLocationFortress as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
38            ::unity::il2cpp_call!((::unity::module_base()+0x1eb0910usize)as*mut u8,i32;
39(CombatLocationFortress)__receiver)
40        }
41    }
42    #[doc = "`set_HighSide(i32)` overload"]
43    fn set_high_side(self, value: impl ::core::convert::Into<i32>) -> () {
44        unsafe {
45            let __receiver =
46                <CombatLocationFortress as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
47            ::unity::il2cpp_call!((::unity::module_base()+0x1eb0920usize)as*mut u8,();
48(CombatLocationFortress)__receiver,(i32)::core::convert::Into::into(value))
49        }
50    }
51    #[doc = "`get_LowSide()` overload"]
52    fn get_low_side(self) -> i32 {
53        unsafe {
54            let __receiver =
55                <CombatLocationFortress as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
56            ::unity::il2cpp_call!((::unity::module_base()+0x1eb0930usize)as*mut u8,i32;
57(CombatLocationFortress)__receiver)
58        }
59    }
60    #[doc = "`set_LowSide(i32)` overload"]
61    fn set_low_side(self, value: impl ::core::convert::Into<i32>) -> () {
62        unsafe {
63            let __receiver =
64                <CombatLocationFortress as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
65            ::unity::il2cpp_call!((::unity::module_base()+0x1eb0940usize)as*mut u8,();
66(CombatLocationFortress)__receiver,(i32)::core::convert::Into::into(value))
67        }
68    }
69    #[doc = "`get_RoughPosCount()` overload"]
70    fn get_rough_pos_count(self) -> i32 {
71        unsafe {
72            let __receiver =
73                <CombatLocationFortress as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
74            {
75                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
76                let __vi = *__vt.get(6usize).unwrap_or_else(|| {
77                    panic!(
78                        "unity: virtual slot {}
79 out of range (vtable len {}
80) on the runtime class behind {}
81 (method `{}
82`)",
83                        6usize,
84                        __vt.len(),
85                        <CombatLocationFortress as ::unity::ClassIdentity>::NAME,
86                        "get_RoughPosCount",
87                    )
88                });
89                let __inner: extern "C" fn(CombatLocationFortress, ::unity::OptionalMethod) -> i32 = ::core::mem::transmute(__vi.method_ptr);
90                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
91                __inner(__receiver, __mi)
92            }
93        }
94    }
95    #[doc = "`SetRoughPos(i32)` overload"]
96    fn set_rough_pos(self, try_count: impl ::core::convert::Into<i32>) -> () {
97        unsafe {
98            let __receiver =
99                <CombatLocationFortress as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
100            {
101                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
102                let __vi = *__vt.get(7usize).unwrap_or_else(|| {
103                    panic!(
104                        "unity: virtual slot {}
105 out of range (vtable len {}
106) on the runtime class behind {}
107 (method `{}
108`)",
109                        7usize,
110                        __vt.len(),
111                        <CombatLocationFortress as ::unity::ClassIdentity>::NAME,
112                        "SetRoughPos",
113                    )
114                });
115                let __inner: extern "C" fn(CombatLocationFortress, i32, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
116                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
117                __inner(__receiver, ::core::convert::Into::into(try_count), __mi)
118            }
119        }
120    }
121    #[doc = "`get_PatternCount()` overload"]
122    fn get_pattern_count(self) -> i32 {
123        unsafe {
124            let __receiver =
125                <CombatLocationFortress as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
126            {
127                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
128                let __vi = *__vt.get(8usize).unwrap_or_else(|| {
129                    panic!(
130                        "unity: virtual slot {}
131 out of range (vtable len {}
132) on the runtime class behind {}
133 (method `{}
134`)",
135                        8usize,
136                        __vt.len(),
137                        <CombatLocationFortress as ::unity::ClassIdentity>::NAME,
138                        "get_PatternCount",
139                    )
140                });
141                let __inner: extern "C" fn(CombatLocationFortress, ::unity::OptionalMethod) -> i32 = ::core::mem::transmute(__vi.method_ptr);
142                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
143                __inner(__receiver, __mi)
144            }
145        }
146    }
147    #[doc = "`SetBattlePatern(i32)` overload"]
148    fn set_battle_patern(self, pattern: impl ::core::convert::Into<i32>) -> () {
149        unsafe {
150            let __receiver =
151                <CombatLocationFortress as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
152            {
153                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
154                let __vi = *__vt.get(9usize).unwrap_or_else(|| {
155                    panic!(
156                        "unity: virtual slot {}
157 out of range (vtable len {}
158) on the runtime class behind {}
159 (method `{}
160`)",
161                        9usize,
162                        __vt.len(),
163                        <CombatLocationFortress as ::unity::ClassIdentity>::NAME,
164                        "SetBattlePatern",
165                    )
166                });
167                let __inner: extern "C" fn(CombatLocationFortress, i32, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
168                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
169                __inner(__receiver, ::core::convert::Into::into(pattern), __mi)
170            }
171        }
172    }
173    #[doc = "`CalcLocation()` overload"]
174    fn calc_location(self) -> () {
175        unsafe {
176            let __receiver =
177                <CombatLocationFortress as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
178            {
179                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
180                let __vi = *__vt.get(10usize).unwrap_or_else(|| {
181                    panic!(
182                        "unity: virtual slot {}
183 out of range (vtable len {}
184) on the runtime class behind {}
185 (method `{}
186`)",
187                        10usize,
188                        __vt.len(),
189                        <CombatLocationFortress as ::unity::ClassIdentity>::NAME,
190                        "CalcLocation",
191                    )
192                });
193                let __inner: extern "C" fn(CombatLocationFortress, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
194                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
195                __inner(__receiver, __mi)
196            }
197        }
198    }
199}
200
201#[cfg(feature = "combat-combatlocationfortress")]
202impl<__T: ICombatLocationFortress> ICombatLocationFortressMethods for __T {}
203
204#[cfg(feature = "combat-combatlocationfortress")]
205impl CombatLocationFortress {
206    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
207        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
208    }
209
210    pub fn get_high_side_method_info() -> &'static ::unity::il2cpp::MethodInfo {
211        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
212    }
213
214    pub fn set_high_side_method_info() -> &'static ::unity::il2cpp::MethodInfo {
215        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
216    }
217
218    pub fn get_low_side_method_info() -> &'static ::unity::il2cpp::MethodInfo {
219        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
220    }
221
222    pub fn set_low_side_method_info() -> &'static ::unity::il2cpp::MethodInfo {
223        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
224    }
225
226    pub fn get_rough_pos_count_method_info() -> &'static ::unity::il2cpp::MethodInfo {
227        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
228    }
229
230    pub fn set_rough_pos_method_info() -> &'static ::unity::il2cpp::MethodInfo {
231        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
232    }
233
234    pub fn get_pattern_count_method_info() -> &'static ::unity::il2cpp::MethodInfo {
235        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
236    }
237
238    pub fn set_battle_patern_method_info() -> &'static ::unity::il2cpp::MethodInfo {
239        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
240    }
241
242    pub fn calc_location_method_info() -> &'static ::unity::il2cpp::MethodInfo {
243        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
244    }
245}
246
247#[cfg(feature = "combat-combatlocationfortress")]
248impl CombatLocationFortress {
249    #[doc = "Direct (non-virtual) call to `CombatLocationFortress`'s own `get_RoughPosCount`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
250    pub unsafe fn get_rough_pos_count(this: impl ::core::convert::Into<::unity::IlInstance>) -> i32 {
251        let __mi = Self::get_rough_pos_count_method_info();
252        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> i32 = ::core::mem::transmute(__mi.method_ptr);
253        __inner(this.into(), ::core::option::Option::None)
254    }
255
256    #[doc = "Direct (non-virtual) call to `CombatLocationFortress`'s own `SetRoughPos`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
257    pub unsafe fn set_rough_pos(this: impl ::core::convert::Into<::unity::IlInstance>, try_count: i32) -> () {
258        let __mi = Self::set_rough_pos_method_info();
259        let __inner: extern "C" fn(::unity::IlInstance, i32, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
260        __inner(this.into(), try_count, ::core::option::Option::None)
261    }
262
263    #[doc = "Direct (non-virtual) call to `CombatLocationFortress`'s own `get_PatternCount`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
264    pub unsafe fn get_pattern_count(this: impl ::core::convert::Into<::unity::IlInstance>) -> i32 {
265        let __mi = Self::get_pattern_count_method_info();
266        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> i32 = ::core::mem::transmute(__mi.method_ptr);
267        __inner(this.into(), ::core::option::Option::None)
268    }
269
270    #[doc = "Direct (non-virtual) call to `CombatLocationFortress`'s own `SetBattlePatern`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
271    pub unsafe fn set_battle_patern(this: impl ::core::convert::Into<::unity::IlInstance>, pattern: i32) -> () {
272        let __mi = Self::set_battle_patern_method_info();
273        let __inner: extern "C" fn(::unity::IlInstance, i32, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
274        __inner(this.into(), pattern, ::core::option::Option::None)
275    }
276
277    #[doc = "Direct (non-virtual) call to `CombatLocationFortress`'s own `CalcLocation`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
278    pub unsafe fn calc_location(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
279        let __mi = Self::calc_location_method_info();
280        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
281        __inner(this.into(), ::core::option::Option::None)
282    }
283}
284
285#[cfg(feature = "combat-combatlocationfortress")]
286impl CombatLocationFortress {
287    #[doc = "`.ctor(crate::combat::combatrecord::CombatRecord)` — overload selector"]
288    pub fn new(record: crate::combat::combatrecord::CombatRecord) -> Self {
289        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
290            panic!(
291                "{}
292::{}
293 failed to instantiate",
294                ::core::stringify!(CombatLocationFortress),
295                ::core::stringify!(new),
296            )
297        });
298        <Self as ICombatLocationFortressMethods>::ctor(this, record);
299        this
300    }
301}
302
303#[cfg(feature = "combat-combatlocationfortress")]
304#[doc(hidden)]
305pub mod prelude {
306    pub use super::{CombatLocationFortress, ICombatLocationFortress, ICombatLocationFortressMethods};
307    #[cfg(feature = "combat-basecombatlocation")]
308    pub use crate::combat::basecombatlocation::IBaseCombatLocationMethods;
309    #[cfg(feature = "system-object")]
310    pub use crate::system::object::IObjectMethods;
311    pub use crate::{combat::basecombatlocation::IBaseCombatLocation, system::object::IObject};
312}