Skip to main content

engage/generated/combat/
combatlocationbrawl.rs

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