Skip to main content

engage/generated/combat/
actionsubspaceback.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "combat-actionsubspaceback-types")]
4mod __types {
5    #[allow(unused_imports)] use ::unity::prelude::*;
6
7    use super::*;
8    use crate::{
9        combat::state::{IState, State},
10        system::object::{IObject, Object},
11    };
12
13    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/combat/actionsubspaceback/ActionSubspaceBack.md"))]
14    #[::unity::class(namespace = "Combat", name = "ActionSubspaceBack")]
15    #[parent(crate::combat::state::State)]
16    pub struct ActionSubspaceBack {
17        #[offset(20)]
18        #[rename(name = "m_Side")]
19        pub m_side: i32,
20        #[offset(24)]
21        #[rename(name = "m_IsLastBossDead")]
22        pub m_is_last_boss_dead: bool,
23    }
24}
25
26#[cfg(feature = "combat-actionsubspaceback-types")]
27pub use __types::*;
28
29#[cfg(feature = "combat-actionsubspaceback")]
30pub trait IActionSubspaceBackMethods: IActionSubspaceBack {
31    #[doc = "`get_Name()` overload"]
32    fn get_name(self) -> ::unity::Il2CppString {
33        unsafe {
34            let __receiver = <ActionSubspaceBack as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
35            {
36                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
37                let __vi = *__vt.get(5usize).unwrap_or_else(|| {
38                    panic!(
39                        "unity: virtual slot {}
40 out of range (vtable len {}
41) on the runtime class behind {}
42 (method `{}
43`)",
44                        5usize,
45                        __vt.len(),
46                        <ActionSubspaceBack as ::unity::ClassIdentity>::NAME,
47                        "get_Name",
48                    )
49                });
50                let __inner: extern "C" fn(ActionSubspaceBack, ::unity::OptionalMethod) -> ::unity::Il2CppString =
51                    ::core::mem::transmute(__vi.method_ptr);
52                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
53                __inner(__receiver, __mi)
54            }
55        }
56    }
57    #[doc = "`.ctor(crate::combat::phase::Phase)` overload"]
58    fn ctor(self, phase: impl ::core::convert::Into<crate::combat::phase::Phase>) -> () {
59        unsafe {
60            let __receiver = <ActionSubspaceBack as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
61            ::unity::il2cpp_call!((::unity::module_base()+0x2bc85e0usize)as*mut u8,();
62(ActionSubspaceBack)__receiver,(crate::combat::phase::Phase)::core::convert::Into::into(phase))
63        }
64    }
65    #[doc = "`OnEnter()` overload"]
66    fn on_enter(self) -> () {
67        unsafe {
68            let __receiver = <ActionSubspaceBack as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
69            {
70                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
71                let __vi = *__vt.get(6usize).unwrap_or_else(|| {
72                    panic!(
73                        "unity: virtual slot {}
74 out of range (vtable len {}
75) on the runtime class behind {}
76 (method `{}
77`)",
78                        6usize,
79                        __vt.len(),
80                        <ActionSubspaceBack as ::unity::ClassIdentity>::NAME,
81                        "OnEnter",
82                    )
83                });
84                let __inner: extern "C" fn(ActionSubspaceBack, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
85                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
86                __inner(__receiver, __mi)
87            }
88        }
89    }
90    #[doc = "`OnUpdate()` overload"]
91    fn on_update(self) -> () {
92        unsafe {
93            let __receiver = <ActionSubspaceBack as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
94            {
95                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
96                let __vi = *__vt.get(7usize).unwrap_or_else(|| {
97                    panic!(
98                        "unity: virtual slot {}
99 out of range (vtable len {}
100) on the runtime class behind {}
101 (method `{}
102`)",
103                        7usize,
104                        __vt.len(),
105                        <ActionSubspaceBack as ::unity::ClassIdentity>::NAME,
106                        "OnUpdate",
107                    )
108                });
109                let __inner: extern "C" fn(ActionSubspaceBack, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
110                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
111                __inner(__receiver, __mi)
112            }
113        }
114    }
115}
116
117#[cfg(feature = "combat-actionsubspaceback")]
118impl<__T: IActionSubspaceBack> IActionSubspaceBackMethods for __T {}
119
120#[cfg(feature = "combat-actionsubspaceback")]
121impl ActionSubspaceBack {
122    pub fn get_name_method_info() -> &'static ::unity::il2cpp::MethodInfo {
123        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
124    }
125
126    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
127        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
128    }
129
130    pub fn on_enter_method_info() -> &'static ::unity::il2cpp::MethodInfo {
131        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
132    }
133
134    pub fn on_update_method_info() -> &'static ::unity::il2cpp::MethodInfo {
135        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
136    }
137}
138
139#[cfg(feature = "combat-actionsubspaceback")]
140impl ActionSubspaceBack {
141    #[doc = "Direct (non-virtual) call to `ActionSubspaceBack`'s own `get_Name`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
142    pub unsafe fn get_name(this: impl ::core::convert::Into<::unity::IlInstance>) -> ::unity::Il2CppString {
143        let __mi = Self::get_name_method_info();
144        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> ::unity::Il2CppString = ::core::mem::transmute(__mi.method_ptr);
145        __inner(this.into(), ::core::option::Option::None)
146    }
147
148    #[doc = "Direct (non-virtual) call to `ActionSubspaceBack`'s own `OnEnter`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
149    pub unsafe fn on_enter(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
150        let __mi = Self::on_enter_method_info();
151        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
152        __inner(this.into(), ::core::option::Option::None)
153    }
154
155    #[doc = "Direct (non-virtual) call to `ActionSubspaceBack`'s own `OnUpdate`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
156    pub unsafe fn on_update(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
157        let __mi = Self::on_update_method_info();
158        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
159        __inner(this.into(), ::core::option::Option::None)
160    }
161}
162
163#[cfg(feature = "combat-actionsubspaceback")]
164impl ActionSubspaceBack {
165    #[doc = "`.ctor(crate::combat::phase::Phase)` — overload selector"]
166    pub fn new(phase: crate::combat::phase::Phase) -> Self {
167        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
168            panic!(
169                "{}
170::{}
171 failed to instantiate",
172                ::core::stringify!(ActionSubspaceBack),
173                ::core::stringify!(new),
174            )
175        });
176        <Self as IActionSubspaceBackMethods>::ctor(this, phase);
177        this
178    }
179}
180
181#[cfg(feature = "combat-actionsubspaceback")]
182#[doc(hidden)]
183pub mod prelude {
184    pub use super::{ActionSubspaceBack, IActionSubspaceBack, IActionSubspaceBackMethods};
185    #[cfg(feature = "combat-state")]
186    pub use crate::combat::state::IStateMethods;
187    #[cfg(feature = "system-object")]
188    pub use crate::system::object::IObjectMethods;
189    pub use crate::{combat::state::IState, system::object::IObject};
190}