Skip to main content

engage/generated/combat/
engagesequence.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "combat-engagesequence-types")]
4mod __types {
5    #[allow(unused_imports)] use ::unity::prelude::*;
6
7    use super::*;
8    use crate::{
9        app::procinst::{IProcInst, ProcInst},
10        system::{
11            object::{IObject, Object},
12            r#enum::{Enum, IEnum},
13            valuetype::{IValueType, ValueType},
14        },
15    };
16
17    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/combat/engagesequence/EngageSequence.md"))]
18    #[::unity::class(namespace = "Combat", name = "EngageSequence")]
19    #[parent(crate::app::procinst::ProcInst)]
20    pub struct EngageSequence {
21        #[offset(112)]
22        #[rename(name = "m_Master")]
23        pub m_master: crate::combat::engagesequence::EngageSequence_Cast,
24        #[offset(120)]
25        #[rename(name = "m_Grandew")]
26        pub m_grandew: crate::combat::engagesequence::EngageSequence_Cast,
27        #[offset(144)]
28        #[rename(name = "m_CamGO")]
29        pub m_cam_go: crate::unity_engine::gameobject::GameObject,
30        #[offset(152)]
31        #[rename(name = "m_bSetupDone")]
32        pub m_b_setup_done: bool,
33        #[offset(153)]
34        #[rename(name = "m_bSkipped")]
35        pub m_b_skipped: bool,
36    }
37
38    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/combat/engagesequence/EngageSequence_Cast.md"))]
39    #[::unity::class(namespace = "Combat", name = "EngageSequence.Cast")]
40    #[parent(crate::system::object::Object)]
41    pub struct EngageSequence_Cast {
42        #[offset(16)]
43        #[rename(name = "Unit")]
44        pub unit: crate::app::unit::Unit,
45        #[offset(24)]
46        #[rename(name = "God")]
47        pub god: crate::app::godunit::GodUnit,
48        #[offset(32)]
49        #[rename(name = "GameStatus")]
50        pub game_status: crate::combat::charactergamestatus::CharacterGameStatus,
51        #[offset(40)]
52        #[rename(name = "Character")]
53        pub character: crate::combat::character::Character,
54    }
55
56    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/combat/engagesequence/EngageSequence_Mode.md"))]
57    #[repr(C)]
58    #[derive(::core::clone::Clone, ::core::marker::Copy, ::core::fmt::Debug, ::core::cmp::PartialEq, ::core::cmp::Eq)]
59    pub struct EngageSequence_Mode {
60        pub value: i32,
61    }
62    impl ::unity::ClassIdentity for EngageSequence_Mode {
63        const NAME: &'static str = "EngageSequence.Mode";
64        const NAMESPACE: &'static str = "Combat";
65
66        fn class() -> ::unity::Class {
67            static CACHE: ::std::sync::OnceLock<::unity::Class> = ::std::sync::OnceLock::new();
68            *CACHE.get_or_init(|| ::unity::Class::lookup(Self::NAMESPACE, Self::NAME))
69        }
70    }
71    impl ::unity::IlType for EngageSequence_Mode {
72        fn il_type() -> &'static ::unity::il2cpp::Il2CppType {
73            &<Self as ::unity::ClassIdentity>::class().raw()._1.byval_arg
74        }
75    }
76    impl EngageSequence_Mode {
77        pub fn not_work() -> Self {
78            Self { value: 0 }
79        }
80
81        pub fn engage() -> Self {
82            Self { value: 1 }
83        }
84
85        pub fn engage_plus() -> Self {
86            Self { value: 2 }
87        }
88    }
89}
90
91#[cfg(feature = "combat-engagesequence-types")]
92pub use __types::*;
93
94#[cfg(feature = "combat-engagesequence")]
95impl EngageSequence {
96    #[doc = "`GetMode()` overload"]
97    pub fn get_mode() -> crate::combat::engagesequence::EngageSequence_Mode {
98        unsafe {
99            ::unity::il2cpp_call!((::unity::module_base()+0x22e9ae0usize)as*mut u8,crate::combat::engagesequence::EngageSequence_Mode;
100            )
101        }
102    }
103
104    #[doc = "`IsExist()` overload"]
105    pub fn is_exist() -> bool {
106        unsafe {
107            ::unity::il2cpp_call!((::unity::module_base()+0x22e9b80usize)as*mut u8,bool;
108            )
109        }
110    }
111
112    #[doc = "`CreateBind(crate::app::procinst::ProcInst, crate::app::unit::Unit, crate::app::unit::Unit)` overload"]
113    pub fn create_bind(
114        super_: impl ::core::convert::Into<crate::app::procinst::ProcInst>,
115        unit1: impl ::core::convert::Into<crate::app::unit::Unit>,
116        unit2: impl ::core::convert::Into<crate::app::unit::Unit>,
117    ) -> () {
118        unsafe {
119            ::unity::il2cpp_call!((::unity::module_base()+0x22e9c00usize)as*mut u8,();
120(crate::app::procinst::ProcInst)::core::convert::Into::into(super_),(crate::app::unit::Unit)::core::convert::Into::into(unit1),(crate::app::unit::Unit)::core::convert::Into::into(unit2))
121        }
122    }
123}
124
125#[cfg(feature = "combat-engagesequence")]
126pub trait IEngageSequenceMethods: IEngageSequence {
127    #[doc = "`CreteaCombatBorders()` overload"]
128    fn cretea_combat_borders(self) -> () {
129        unsafe {
130            let __receiver = <EngageSequence as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
131            ::unity::il2cpp_call!((::unity::module_base()+0x22ea4e0usize)as*mut u8,();
132(EngageSequence)__receiver)
133        }
134    }
135    #[doc = "`DeleteCombatBorders()` overload"]
136    fn delete_combat_borders(self) -> () {
137        unsafe {
138            let __receiver = <EngageSequence as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
139            ::unity::il2cpp_call!((::unity::module_base()+0x22ea580usize)as*mut u8,();
140(EngageSequence)__receiver)
141        }
142    }
143    #[doc = "`IsSetupDone()` overload"]
144    fn is_setup_done(self) -> bool {
145        unsafe {
146            let __receiver = <EngageSequence as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
147            ::unity::il2cpp_call!((::unity::module_base()+0x22ea620usize)as*mut u8,bool;
148(EngageSequence)__receiver)
149        }
150    }
151    #[doc = "`WaitFinish()` overload"]
152    fn wait_finish(self) -> crate::system::collections::ienumerator::IEnumerator {
153        unsafe {
154            let __receiver = <EngageSequence as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
155            ::unity::il2cpp_call!((::unity::module_base()+0x22ea630usize)as*mut u8,crate::system::collections::ienumerator::IEnumerator;
156(EngageSequence)__receiver)
157        }
158    }
159    #[doc = "`.ctor(crate::app::unit::Unit, crate::app::unit::Unit)` overload"]
160    fn ctor(self, unit1: impl ::core::convert::Into<crate::app::unit::Unit>, unit2: impl ::core::convert::Into<crate::app::unit::Unit>) -> () {
161        unsafe {
162            let __receiver = <EngageSequence as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
163            ::unity::il2cpp_call!((::unity::module_base()+0x22ea2c0usize)as*mut u8,();
164(EngageSequence)__receiver,(crate::app::unit::Unit)::core::convert::Into::into(unit1),(crate::app::unit::Unit)::core::convert::Into::into(unit2))
165        }
166    }
167    #[doc = "`LoadAndSetupAndRun()` overload"]
168    fn load_and_setup_and_run(self) -> crate::system::collections::ienumerator::IEnumerator {
169        unsafe {
170            let __receiver = <EngageSequence as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
171            ::unity::il2cpp_call!((::unity::module_base()+0x22ea6b0usize)as*mut u8,crate::system::collections::ienumerator::IEnumerator;
172(EngageSequence)__receiver)
173        }
174    }
175    #[doc = "`CalcHeightOffset(crate::combat::character::Character, crate::combat::character::Character)` overload"]
176    fn calc_height_offset(
177        self,
178        c: impl ::core::convert::Into<crate::combat::character::Character>,
179        g: impl ::core::convert::Into<crate::combat::character::Character>,
180    ) -> f32 {
181        unsafe {
182            let __receiver = <EngageSequence as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
183            ::unity::il2cpp_call!((::unity::module_base()+0x22ea730usize)as*mut u8,f32;
184(EngageSequence)__receiver,(crate::combat::character::Character)::core::convert::Into::into(c),(crate::combat::character::Character)::core::convert::Into::into(g))
185        }
186    }
187    #[doc = "`Exit()` overload"]
188    fn exit(self) -> crate::system::collections::ienumerator::IEnumerator {
189        unsafe {
190            let __receiver = <EngageSequence as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
191            ::unity::il2cpp_call!((::unity::module_base()+0x22ea860usize)as*mut u8,crate::system::collections::ienumerator::IEnumerator;
192(EngageSequence)__receiver)
193        }
194    }
195}
196
197#[cfg(feature = "combat-engagesequence")]
198impl<__T: IEngageSequence> IEngageSequenceMethods for __T {}
199
200#[cfg(feature = "combat-engagesequence")]
201impl EngageSequence {
202    pub fn get_mode_method_info() -> &'static ::unity::il2cpp::MethodInfo {
203        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
204    }
205
206    pub fn is_exist_method_info() -> &'static ::unity::il2cpp::MethodInfo {
207        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
208    }
209
210    pub fn create_bind_method_info() -> &'static ::unity::il2cpp::MethodInfo {
211        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
212    }
213
214    pub fn cretea_combat_borders_method_info() -> &'static ::unity::il2cpp::MethodInfo {
215        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
216    }
217
218    pub fn delete_combat_borders_method_info() -> &'static ::unity::il2cpp::MethodInfo {
219        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
220    }
221
222    pub fn is_setup_done_method_info() -> &'static ::unity::il2cpp::MethodInfo {
223        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
224    }
225
226    pub fn wait_finish_method_info() -> &'static ::unity::il2cpp::MethodInfo {
227        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
228    }
229
230    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
231        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
232    }
233
234    pub fn load_and_setup_and_run_method_info() -> &'static ::unity::il2cpp::MethodInfo {
235        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
236    }
237
238    pub fn calc_height_offset_method_info() -> &'static ::unity::il2cpp::MethodInfo {
239        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
240    }
241
242    pub fn exit_method_info() -> &'static ::unity::il2cpp::MethodInfo {
243        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
244    }
245}
246
247#[cfg(feature = "combat-engagesequence")]
248impl EngageSequence {
249    #[doc = "`.ctor(crate::app::unit::Unit, crate::app::unit::Unit)` — overload selector"]
250    pub fn new(unit1: crate::app::unit::Unit, unit2: crate::app::unit::Unit) -> Self {
251        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
252            panic!(
253                "{}
254::{}
255 failed to instantiate",
256                ::core::stringify!(EngageSequence),
257                ::core::stringify!(new),
258            )
259        });
260        <Self as IEngageSequenceMethods>::ctor(this, unit1, unit2);
261        this
262    }
263}
264
265#[cfg(feature = "combat-engagesequence")]
266pub trait IEngageSequence_CastMethods: IEngageSequence_Cast {
267    #[doc = "`.ctor(crate::app::unit::Unit)` overload"]
268    fn ctor(self, unit: impl ::core::convert::Into<crate::app::unit::Unit>) -> () {
269        unsafe {
270            let __receiver = <EngageSequence_Cast as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
271            ::unity::il2cpp_call!((::unity::module_base()+0x1bd8840usize)as*mut u8,();
272(EngageSequence_Cast)__receiver,(crate::app::unit::Unit)::core::convert::Into::into(unit))
273        }
274    }
275    #[doc = "`.ctor(crate::app::godunit::GodUnit)` overload"]
276    fn ctor_2(self, god: impl ::core::convert::Into<crate::app::godunit::GodUnit>) -> () {
277        unsafe {
278            let __receiver = <EngageSequence_Cast as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
279            ::unity::il2cpp_call!((::unity::module_base()+0x1bd88d0usize)as*mut u8,();
280(EngageSequence_Cast)__receiver,(crate::app::godunit::GodUnit)::core::convert::Into::into(god))
281        }
282    }
283    #[doc = "`Import(::unity::Array<::unity::Il2CppString>)` overload"]
284    fn import(self, conditions: impl ::core::convert::Into<::unity::Array<::unity::Il2CppString>>) -> () {
285        unsafe {
286            let __receiver = <EngageSequence_Cast as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
287            ::unity::il2cpp_call!((::unity::module_base()+0x1bd8390usize)as*mut u8,();
288(EngageSequence_Cast)__receiver,(::unity::Array< ::unity::Il2CppString>)::core::convert::Into::into(conditions))
289        }
290    }
291    #[doc = "`Dispose()` overload"]
292    fn dispose(self) -> () {
293        unsafe {
294            let __receiver = <EngageSequence_Cast as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
295            {
296                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
297                let __vi = *__vt.get(4usize).unwrap_or_else(|| {
298                    panic!(
299                        "unity: virtual slot {}
300 out of range (vtable len {}
301) on the runtime class behind {}
302 (method `{}
303`)",
304                        4usize,
305                        __vt.len(),
306                        <EngageSequence_Cast as ::unity::ClassIdentity>::NAME,
307                        "Dispose",
308                    )
309                });
310                let __inner: extern "C" fn(EngageSequence_Cast, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
311                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
312                __inner(__receiver, __mi)
313            }
314        }
315    }
316}
317
318#[cfg(feature = "combat-engagesequence")]
319impl<__T: IEngageSequence_Cast> IEngageSequence_CastMethods for __T {}
320
321#[cfg(feature = "combat-engagesequence")]
322impl EngageSequence_Cast {
323    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
324        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
325    }
326
327    pub fn ctor_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
328        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
329    }
330
331    pub fn import_method_info() -> &'static ::unity::il2cpp::MethodInfo {
332        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
333    }
334
335    pub fn dispose_method_info() -> &'static ::unity::il2cpp::MethodInfo {
336        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
337    }
338}
339
340#[cfg(feature = "combat-engagesequence")]
341impl EngageSequence_Cast {
342    #[doc = "Direct (non-virtual) call to `EngageSequence_Cast`'s own `Dispose`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
343    pub unsafe fn dispose(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
344        let __mi = Self::dispose_method_info();
345        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
346        __inner(this.into(), ::core::option::Option::None)
347    }
348}
349
350#[cfg(feature = "combat-engagesequence")]
351impl EngageSequence_Cast {
352    #[doc = "`.ctor(crate::app::unit::Unit)` — overload selector"]
353    pub fn new(unit: crate::app::unit::Unit) -> Self {
354        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
355            panic!(
356                "{}
357::{}
358 failed to instantiate",
359                ::core::stringify!(EngageSequence_Cast),
360                ::core::stringify!(new),
361            )
362        });
363        <Self as IEngageSequence_CastMethods>::ctor(this, unit);
364        this
365    }
366
367    #[doc = "`.ctor(crate::app::godunit::GodUnit)` — overload selector"]
368    pub fn new_2(god: crate::app::godunit::GodUnit) -> Self {
369        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
370            panic!(
371                "{}
372::{}
373 failed to instantiate",
374                ::core::stringify!(EngageSequence_Cast),
375                ::core::stringify!(new_2),
376            )
377        });
378        <Self as IEngageSequence_CastMethods>::ctor_2(this, god);
379        this
380    }
381}
382
383#[cfg(feature = "combat-engagesequence")]
384#[doc(hidden)]
385pub mod prelude {
386    pub use super::{
387        EngageSequence, EngageSequence_Cast, EngageSequence_Mode, IEngageSequence, IEngageSequenceMethods, IEngageSequence_Cast,
388        IEngageSequence_CastMethods,
389    };
390    #[cfg(feature = "app-procinst")]
391    pub use crate::app::procinst::IProcInstMethods;
392    #[cfg(feature = "system-object")]
393    pub use crate::system::object::IObjectMethods;
394    #[cfg(feature = "system-enum")]
395    pub use crate::system::r#enum::IEnumMethods;
396    #[cfg(feature = "system-valuetype")]
397    pub use crate::system::valuetype::IValueTypeMethods;
398    pub use crate::{
399        app::procinst::IProcInst,
400        system::{object::IObject, r#enum::IEnum, valuetype::IValueType},
401    };
402}