engage/generated/app/
godlevelupsequence.rs1#[cfg(feature = "app-godlevelupsequence-types")]
4mod __types {
5 #[allow(unused_imports)] use ::unity::prelude::*;
6
7 use super::*;
8 use crate::{
9 app::procinst::{IProcInst, ProcInst},
10 system::object::{IObject, Object},
11 };
12
13 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/godlevelupsequence/GodLevelUpSequence.md"))]
14 #[::unity::class(namespace = "App", name = "GodLevelUpSequence")]
15 #[parent(crate::app::procinst::ProcInst)]
16 pub struct GodLevelUpSequence {
17 #[offset(112)]
18 #[rename(name = "m_Unit")]
19 pub m_unit: crate::app::unit::Unit,
20 #[offset(120)]
21 #[rename(name = "m_GodUnit")]
22 pub m_god_unit: crate::app::godunit::GodUnit,
23 #[offset(128)]
24 #[rename(name = "m_GodData")]
25 pub m_god_data: crate::app::goddata::GodData,
26 #[offset(136)]
27 #[rename(name = "m_PrevAptitude")]
28 pub m_prev_aptitude: crate::app::weaponmask::WeaponMask,
29 }
30}
31
32#[cfg(feature = "app-godlevelupsequence-types")]
33pub use __types::*;
34
35#[cfg(feature = "app-godlevelupsequence")]
36impl GodLevelUpSequence {
37 #[doc = "`CreateBind(crate::app::procinst::ProcInst, crate::app::godunit::GodUnit, crate::app::unit::Unit, crate::app::goddata::GodData)` overload"]
38 pub fn create_bind(
39 super_: impl ::core::convert::Into<crate::app::procinst::ProcInst>,
40 god_unit: impl ::core::convert::Into<crate::app::godunit::GodUnit>,
41 unit: impl ::core::convert::Into<crate::app::unit::Unit>,
42 god_data: impl ::core::convert::Into<crate::app::goddata::GodData>,
43 ) -> () {
44 unsafe {
45 ::unity::il2cpp_call!((::unity::module_base()+0x2330930usize)as*mut u8,();
46(crate::app::procinst::ProcInst)::core::convert::Into::into(super_),(crate::app::godunit::GodUnit)::core::convert::Into::into(god_unit),(crate::app::unit::Unit)::core::convert::Into::into(unit),(crate::app::goddata::GodData)::core::convert::Into::into(god_data))
47 }
48 }
49}
50
51#[cfg(feature = "app-godlevelupsequence")]
52pub trait IGodLevelUpSequenceMethods: IGodLevelUpSequence {
53 #[doc = "`.ctor(crate::app::godunit::GodUnit, crate::app::unit::Unit, crate::app::goddata::GodData)` overload"]
54 fn ctor(
55 self,
56 god_unit: impl ::core::convert::Into<crate::app::godunit::GodUnit>,
57 unit: impl ::core::convert::Into<crate::app::unit::Unit>,
58 god_data: impl ::core::convert::Into<crate::app::goddata::GodData>,
59 ) -> () {
60 unsafe {
61 let __receiver = <GodLevelUpSequence as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
62 ::unity::il2cpp_call!((::unity::module_base()+0x23340d0usize)as*mut u8,();
63(GodLevelUpSequence)__receiver,(crate::app::godunit::GodUnit)::core::convert::Into::into(god_unit),(crate::app::unit::Unit)::core::convert::Into::into(unit),(crate::app::goddata::GodData)::core::convert::Into::into(god_data))
64 }
65 }
66 #[doc = "`LeveUp()` overload"]
67 fn leve_up(self) -> () {
68 unsafe {
69 let __receiver = <GodLevelUpSequence as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
70 ::unity::il2cpp_call!((::unity::module_base()+0x23341a0usize)as*mut u8,();
71(GodLevelUpSequence)__receiver)
72 }
73 }
74 #[doc = "`OnCreate()` overload"]
75 fn on_create(self) -> () {
76 unsafe {
77 let __receiver = <GodLevelUpSequence as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
78 {
79 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
80 let __vi = *__vt.get(9usize).unwrap_or_else(|| {
81 panic!(
82 "unity: virtual slot {}
83 out of range (vtable len {}
84) on the runtime class behind {}
85 (method `{}
86`)",
87 9usize,
88 __vt.len(),
89 <GodLevelUpSequence as ::unity::ClassIdentity>::NAME,
90 "OnCreate",
91 )
92 });
93 let __inner: extern "C" fn(GodLevelUpSequence, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
94 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
95 __inner(__receiver, __mi)
96 }
97 }
98 }
99 #[doc = "`OnDispose()` overload"]
100 fn on_dispose(self) -> () {
101 unsafe {
102 let __receiver = <GodLevelUpSequence as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
103 {
104 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
105 let __vi = *__vt.get(10usize).unwrap_or_else(|| {
106 panic!(
107 "unity: virtual slot {}
108 out of range (vtable len {}
109) on the runtime class behind {}
110 (method `{}
111`)",
112 10usize,
113 __vt.len(),
114 <GodLevelUpSequence as ::unity::ClassIdentity>::NAME,
115 "OnDispose",
116 )
117 });
118 let __inner: extern "C" fn(GodLevelUpSequence, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
119 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
120 __inner(__receiver, __mi)
121 }
122 }
123 }
124}
125
126#[cfg(feature = "app-godlevelupsequence")]
127impl<__T: IGodLevelUpSequence> IGodLevelUpSequenceMethods for __T {}
128
129#[cfg(feature = "app-godlevelupsequence")]
130impl GodLevelUpSequence {
131 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
132 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
133 }
134
135 pub fn leve_up_method_info() -> &'static ::unity::il2cpp::MethodInfo {
136 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
137 }
138
139 pub fn on_create_method_info() -> &'static ::unity::il2cpp::MethodInfo {
140 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
141 }
142
143 pub fn on_dispose_method_info() -> &'static ::unity::il2cpp::MethodInfo {
144 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
145 }
146
147 pub fn create_bind_method_info() -> &'static ::unity::il2cpp::MethodInfo {
148 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
149 }
150}
151
152#[cfg(feature = "app-godlevelupsequence")]
153impl GodLevelUpSequence {
154 #[doc = "Direct (non-virtual) call to `GodLevelUpSequence`'s own `OnCreate`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
155 pub unsafe fn on_create(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
156 let __mi = Self::on_create_method_info();
157 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
158 __inner(this.into(), ::core::option::Option::None)
159 }
160
161 #[doc = "Direct (non-virtual) call to `GodLevelUpSequence`'s own `OnDispose`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
162 pub unsafe fn on_dispose(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
163 let __mi = Self::on_dispose_method_info();
164 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
165 __inner(this.into(), ::core::option::Option::None)
166 }
167}
168
169#[cfg(feature = "app-godlevelupsequence")]
170impl GodLevelUpSequence {
171 #[doc = "`.ctor(crate::app::godunit::GodUnit, crate::app::unit::Unit, crate::app::goddata::GodData)` — overload selector"]
172 pub fn new(god_unit: crate::app::godunit::GodUnit, unit: crate::app::unit::Unit, god_data: crate::app::goddata::GodData) -> Self {
173 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
174 panic!(
175 "{}
176::{}
177 failed to instantiate",
178 ::core::stringify!(GodLevelUpSequence),
179 ::core::stringify!(new),
180 )
181 });
182 <Self as IGodLevelUpSequenceMethods>::ctor(this, god_unit, unit, god_data);
183 this
184 }
185}
186
187#[cfg(feature = "app-godlevelupsequence")]
188#[doc(hidden)]
189pub mod prelude {
190 pub use super::{GodLevelUpSequence, IGodLevelUpSequence, IGodLevelUpSequenceMethods};
191 #[cfg(feature = "app-procinst")]
192 pub use crate::app::procinst::IProcInstMethods;
193 #[cfg(feature = "system-object")]
194 pub use crate::system::object::IObjectMethods;
195 pub use crate::{app::procinst::IProcInst, system::object::IObject};
196}