Skip to main content

engage/generated/app/
turneffect.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "app-turneffect-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/app/turneffect/TurnEffect_Label.md"))]
18    #[repr(C)]
19    #[derive(::core::clone::Clone, ::core::marker::Copy, ::core::fmt::Debug, ::core::cmp::PartialEq, ::core::cmp::Eq)]
20    pub struct TurnEffect_Label {
21        pub value: i32,
22    }
23    impl ::unity::ClassIdentity for TurnEffect_Label {
24        const NAME: &'static str = "TurnEffect.Label";
25        const NAMESPACE: &'static str = "App";
26
27        fn class() -> ::unity::Class {
28            static CACHE: ::std::sync::OnceLock<::unity::Class> = ::std::sync::OnceLock::new();
29            *CACHE.get_or_init(|| ::unity::Class::lookup(Self::NAMESPACE, Self::NAME))
30        }
31    }
32    impl ::unity::IlType for TurnEffect_Label {
33        fn il_type() -> &'static ::unity::il2cpp::Il2CppType {
34            &<Self as ::unity::ClassIdentity>::class().raw()._1.byval_arg
35        }
36    }
37    impl TurnEffect_Label {
38        pub fn search() -> Self {
39            Self { value: 0 }
40        }
41
42        pub fn next() -> Self {
43            Self { value: 1 }
44        }
45
46        pub fn end() -> Self {
47            Self { value: 2 }
48        }
49    }
50
51    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/turneffect/TurnEffect.md"))]
52    #[::unity::class(namespace = "App", name = "TurnEffect")]
53    #[parent(crate::app::procinst::ProcInst)]
54    pub struct TurnEffect {
55        #[offset(112)]
56        #[rename(name = "m_Unit")]
57        pub m_unit: crate::app::unit::Unit,
58    }
59}
60
61#[cfg(feature = "app-turneffect-types")]
62pub use __types::*;
63
64#[cfg(feature = "app-turneffect")]
65impl TurnEffect {
66    pub fn create_bind<M0: ::unity::IlType + ::core::marker::Copy + ::unity::ClassIdentity>(
67        super_: impl ::core::convert::Into<crate::app::procinst::ProcInst>,
68    ) -> () {
69        static OPEN: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> =
70            ::std::sync::LazyLock::new(|| ::unity::lookup::method_info_on_class(<TurnEffect as ::unity::ClassIdentity>::class(), "CreateBind", 1));
71        #[allow(clippy::type_complexity)]
72        static CACHE: ::std::sync::OnceLock<::std::sync::Mutex<::std::collections::HashMap<usize, &'static ::unity::il2cpp::MethodInfo>>> =
73            ::std::sync::OnceLock::new();
74        let _ = true;
75        let __open: &'static ::unity::il2cpp::MethodInfo = match &*OPEN {
76            ::core::result::Result::Ok(mi) => *mi,
77            ::core::result::Result::Err(e) => {
78                panic!(
79                    "method lookup failed: {}
80::{}
81: {}
82",
83                    <TurnEffect as ::unity::ClassIdentity>::NAME,
84                    "CreateBind",
85                    e
86                )
87            },
88        };
89        let __cache = CACHE.get_or_init(|| ::std::sync::Mutex::new(::std::collections::HashMap::new()));
90        let __key: usize = <M0 as ::unity::IlType>::il_type() as *const _ as usize;
91        let __inflated: &'static ::unity::il2cpp::MethodInfo = {
92            let mut __guard = __cache.lock().unwrap();
93            *__guard
94                .entry(__key)
95                .or_insert_with(|| ::unity::il2cpp::generic::create_generic_method_info(__open, &[<M0 as ::unity::IlType>::il_type()]))
96        };
97        unsafe {
98            let __f: extern "C" fn(crate::app::procinst::ProcInst, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__inflated.method_ptr);
99            let __mi_opaque: &'static () = &*(__inflated as *const _ as *const ());
100            __f(::core::convert::Into::into(super_), ::core::option::Option::Some(__mi_opaque))
101        }
102    }
103}
104
105#[cfg(feature = "app-turneffect")]
106pub trait ITurnEffectMethods: ITurnEffect {
107    #[doc = "`.ctor()` overload"]
108    fn ctor(self) -> () {
109        unsafe {
110            let __receiver = <TurnEffect as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
111            ::unity::il2cpp_call!((::unity::module_base()+0x22acdc0usize)as*mut u8,();
112(TurnEffect)__receiver)
113        }
114    }
115    #[doc = "`get_CanWaitSkip()` overload"]
116    fn get_can_wait_skip(self) -> bool {
117        unsafe {
118            let __receiver = <TurnEffect as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
119            {
120                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
121                let __vi = *__vt.get(4usize).unwrap_or_else(|| {
122                    panic!(
123                        "unity: virtual slot {}
124 out of range (vtable len {}
125) on the runtime class behind {}
126 (method `{}
127`)",
128                        4usize,
129                        __vt.len(),
130                        <TurnEffect as ::unity::ClassIdentity>::NAME,
131                        "get_CanWaitSkip",
132                    )
133                });
134                let __inner: extern "C" fn(TurnEffect, ::unity::OptionalMethod) -> bool = ::core::mem::transmute(__vi.method_ptr);
135                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
136                __inner(__receiver, __mi)
137            }
138        }
139    }
140    #[doc = "`Search()` overload"]
141    fn search(self) -> () {
142        unsafe {
143            let __receiver = <TurnEffect as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
144            ::unity::il2cpp_call!((::unity::module_base()+0x22ace80usize)as*mut u8,();
145(TurnEffect)__receiver)
146        }
147    }
148    #[doc = "`NextUnit()` overload"]
149    fn next_unit(self) -> () {
150        unsafe {
151            let __receiver = <TurnEffect as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
152            ::unity::il2cpp_call!((::unity::module_base()+0x22acf40usize)as*mut u8,();
153(TurnEffect)__receiver)
154        }
155    }
156    #[doc = "`Damage(i32)` overload"]
157    fn damage(self, damage: impl ::core::convert::Into<i32>) -> () {
158        unsafe {
159            let __receiver = <TurnEffect as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
160            ::unity::il2cpp_call!((::unity::module_base()+0x22acfd0usize)as*mut u8,();
161(TurnEffect)__receiver,(i32)::core::convert::Into::into(damage))
162        }
163    }
164    #[doc = "`Heal(i32)` overload"]
165    fn heal(self, heal: impl ::core::convert::Into<i32>) -> () {
166        unsafe {
167            let __receiver = <TurnEffect as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
168            ::unity::il2cpp_call!((::unity::module_base()+0x22ad0d0usize)as*mut u8,();
169(TurnEffect)__receiver,(i32)::core::convert::Into::into(heal))
170        }
171    }
172    #[doc = "`Execute()` overload"]
173    fn execute(self) -> crate::system::collections::ienumerator::IEnumerator {
174        unsafe {
175            let __receiver = <TurnEffect as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
176            {
177                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
178                let __vi = *__vt.get(18usize).unwrap_or_else(|| {
179                    panic!(
180                        "unity: virtual slot {}
181 out of range (vtable len {}
182) on the runtime class behind {}
183 (method `{}
184`)",
185                        18usize,
186                        __vt.len(),
187                        <TurnEffect as ::unity::ClassIdentity>::NAME,
188                        "Execute",
189                    )
190                });
191                let __inner: extern "C" fn(TurnEffect, ::unity::OptionalMethod) -> crate::system::collections::ienumerator::IEnumerator =
192                    ::core::mem::transmute(__vi.method_ptr);
193                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
194                __inner(__receiver, __mi)
195            }
196        }
197    }
198    #[doc = "`TryWaitTime(f32)` overload"]
199    fn try_wait_time(self, time: impl ::core::convert::Into<f32>) -> () {
200        unsafe {
201            let __receiver = <TurnEffect as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
202            ::unity::il2cpp_call!((::unity::module_base()+0x22ad170usize)as*mut u8,();
203(TurnEffect)__receiver,(f32)::core::convert::Into::into(time))
204        }
205    }
206}
207
208#[cfg(feature = "app-turneffect")]
209impl<__T: ITurnEffect> ITurnEffectMethods for __T {}
210
211#[cfg(feature = "app-turneffect")]
212impl TurnEffect {
213    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
214        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
215    }
216
217    pub fn get_can_wait_skip_method_info() -> &'static ::unity::il2cpp::MethodInfo {
218        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
219    }
220
221    pub fn search_method_info() -> &'static ::unity::il2cpp::MethodInfo {
222        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
223    }
224
225    pub fn next_unit_method_info() -> &'static ::unity::il2cpp::MethodInfo {
226        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
227    }
228
229    pub fn damage_method_info() -> &'static ::unity::il2cpp::MethodInfo {
230        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
231    }
232
233    pub fn heal_method_info() -> &'static ::unity::il2cpp::MethodInfo {
234        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
235    }
236
237    pub fn execute_method_info() -> &'static ::unity::il2cpp::MethodInfo {
238        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
239    }
240
241    pub fn try_wait_time_method_info() -> &'static ::unity::il2cpp::MethodInfo {
242        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
243    }
244}
245
246#[cfg(feature = "app-turneffect")]
247impl TurnEffect {
248    #[doc = "Direct (non-virtual) call to `TurnEffect`'s own `get_CanWaitSkip`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
249    pub unsafe fn get_can_wait_skip(this: impl ::core::convert::Into<::unity::IlInstance>) -> bool {
250        let __mi = Self::get_can_wait_skip_method_info();
251        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> bool = ::core::mem::transmute(__mi.method_ptr);
252        __inner(this.into(), ::core::option::Option::None)
253    }
254
255    #[doc = "Direct (non-virtual) call to `TurnEffect`'s own `Execute`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
256    pub unsafe fn execute(this: impl ::core::convert::Into<::unity::IlInstance>) -> crate::system::collections::ienumerator::IEnumerator {
257        let __mi = Self::execute_method_info();
258        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> crate::system::collections::ienumerator::IEnumerator =
259            ::core::mem::transmute(__mi.method_ptr);
260        __inner(this.into(), ::core::option::Option::None)
261    }
262}
263
264#[cfg(feature = "app-turneffect")]
265impl TurnEffect {
266    #[doc = "`.ctor()` — no args"]
267    pub fn new() -> Self {
268        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
269            panic!(
270                "{}
271::{}
272 failed to instantiate",
273                ::core::stringify!(TurnEffect),
274                ::core::stringify!(new),
275            )
276        });
277        <Self as ITurnEffectMethods>::ctor(this);
278        this
279    }
280}
281
282#[cfg(feature = "app-turneffect")]
283#[doc(hidden)]
284pub mod prelude {
285    pub use super::{ITurnEffect, ITurnEffectMethods, TurnEffect, TurnEffect_Label};
286    #[cfg(feature = "app-procinst")]
287    pub use crate::app::procinst::IProcInstMethods;
288    #[cfg(feature = "system-object")]
289    pub use crate::system::object::IObjectMethods;
290    #[cfg(feature = "system-enum")]
291    pub use crate::system::r#enum::IEnumMethods;
292    #[cfg(feature = "system-valuetype")]
293    pub use crate::system::valuetype::IValueTypeMethods;
294    pub use crate::{
295        app::procinst::IProcInst,
296        system::{object::IObject, r#enum::IEnum, valuetype::IValueType},
297    };
298}