1#[cfg(feature = "app-godgrowsequence-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/godgrowsequence/GodGrowSequence_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 GodGrowSequence_Label {
21 pub value: i32,
22 }
23 impl ::unity::ClassIdentity for GodGrowSequence_Label {
24 const NAME: &'static str = "GodGrowSequence.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 GodGrowSequence_Label {
33 fn il_type() -> &'static ::unity::il2cpp::Il2CppType {
34 &<Self as ::unity::ClassIdentity>::class().raw()._1.byval_arg
35 }
36 }
37 impl GodGrowSequence_Label {
38 pub fn level_up() -> Self {
39 Self { value: 0 }
40 }
41
42 pub fn end() -> Self {
43 Self { value: 1 }
44 }
45 }
46
47 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/godgrowsequence/GodGrowSequence.md"))]
48 #[::unity::class(namespace = "App", name = "GodGrowSequence")]
49 #[parent(crate::app::procinst::ProcInst)]
50 pub struct GodGrowSequence {
51 #[offset(112)]
52 #[rename(name = "m_GodUnit")]
53 pub m_god_unit: crate::app::godunit::GodUnit,
54 #[offset(120)]
55 #[rename(name = "m_Unit")]
56 pub m_unit: crate::app::unit::Unit,
57 #[offset(128)]
58 #[rename(name = "m_Exp")]
59 pub m_exp: i32,
60 #[offset(132)]
61 #[rename(name = "m_Dirty")]
62 pub m_dirty: i32,
63 #[offset(136)]
64 #[rename(name = "m_OldLevel")]
65 pub m_old_level: i32,
66 }
67}
68
69#[cfg(feature = "app-godgrowsequence-types")]
70pub use __types::*;
71
72#[cfg(feature = "app-godgrowsequence")]
73impl GodGrowSequence {
74 #[doc = "`CreateBind(crate::app::procinst::ProcInst, crate::app::godunit::GodUnit, i32)` overload"]
75 pub fn create_bind(
76 super_: impl ::core::convert::Into<crate::app::procinst::ProcInst>,
77 god_unit: impl ::core::convert::Into<crate::app::godunit::GodUnit>,
78 exp: impl ::core::convert::Into<i32>,
79 ) -> () {
80 unsafe {
81 ::unity::il2cpp_call!((::unity::module_base()+0x232fc80usize)as*mut u8,();
82(crate::app::procinst::ProcInst)::core::convert::Into::into(super_),(crate::app::godunit::GodUnit)::core::convert::Into::into(god_unit),(i32)::core::convert::Into::into(exp))
83 }
84 }
85
86 #[doc = "`CreateBind(crate::app::procinst::ProcInst, crate::app::godunit::GodUnit, crate::app::unit::Unit, i32)` overload"]
87 pub fn create_bind_2(
88 super_: impl ::core::convert::Into<crate::app::procinst::ProcInst>,
89 god_unit: impl ::core::convert::Into<crate::app::godunit::GodUnit>,
90 unit: impl ::core::convert::Into<crate::app::unit::Unit>,
91 exp: impl ::core::convert::Into<i32>,
92 ) -> () {
93 unsafe {
94 ::unity::il2cpp_call!((::unity::module_base()+0x2330200usize)as*mut u8,();
95(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),(i32)::core::convert::Into::into(exp))
96 }
97 }
98
99 #[doc = "`CreateBind(crate::app::procinst::ProcInst, crate::app::godunit::GodUnit, crate::app::unit::Unit, i32, i32)` overload"]
100 pub fn create_bind_3(
101 super_: impl ::core::convert::Into<crate::app::procinst::ProcInst>,
102 god_unit: impl ::core::convert::Into<crate::app::godunit::GodUnit>,
103 unit: impl ::core::convert::Into<crate::app::unit::Unit>,
104 exp: impl ::core::convert::Into<i32>,
105 dirty: impl ::core::convert::Into<i32>,
106 ) -> () {
107 unsafe {
108 ::unity::il2cpp_call!((::unity::module_base()+0x2330210usize)as*mut u8,();
109(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),(i32)::core::convert::Into::into(exp),(i32)::core::convert::Into::into(dirty))
110 }
111 }
112
113 #[doc = "`CreateBindImpl(crate::app::procinst::ProcInst, crate::app::godunit::GodUnit, crate::app::unit::Unit, i32, i32)` overload"]
114 pub fn create_bind_impl(
115 super_: impl ::core::convert::Into<crate::app::procinst::ProcInst>,
116 god_unit: impl ::core::convert::Into<crate::app::godunit::GodUnit>,
117 unit: impl ::core::convert::Into<crate::app::unit::Unit>,
118 exp: impl ::core::convert::Into<i32>,
119 dirty: impl ::core::convert::Into<i32>,
120 ) -> () {
121 unsafe {
122 ::unity::il2cpp_call!((::unity::module_base()+0x232fc90usize)as*mut u8,();
123(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),(i32)::core::convert::Into::into(exp),(i32)::core::convert::Into::into(dirty))
124 }
125 }
126}
127
128#[cfg(feature = "app-godgrowsequence")]
129pub trait IGodGrowSequenceMethods: IGodGrowSequence {
130 #[doc = "`.ctor(crate::app::godunit::GodUnit, crate::app::unit::Unit, i32, i32)` overload"]
131 fn ctor(
132 self,
133 god_unit: impl ::core::convert::Into<crate::app::godunit::GodUnit>,
134 unit: impl ::core::convert::Into<crate::app::unit::Unit>,
135 exp: impl ::core::convert::Into<i32>,
136 dirty: impl ::core::convert::Into<i32>,
137 ) -> () {
138 unsafe {
139 let __receiver = <GodGrowSequence as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
140 ::unity::il2cpp_call!((::unity::module_base()+0x2330220usize)as*mut u8,();
141(GodGrowSequence)__receiver,(crate::app::godunit::GodUnit)::core::convert::Into::into(god_unit),(crate::app::unit::Unit)::core::convert::Into::into(unit),(i32)::core::convert::Into::into(exp),(i32)::core::convert::Into::into(dirty))
142 }
143 }
144 #[doc = "`GainExp()` overload"]
145 fn gain_exp(self) -> () {
146 unsafe {
147 let __receiver = <GodGrowSequence as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
148 ::unity::il2cpp_call!((::unity::module_base()+0x23302f0usize)as*mut u8,();
149(GodGrowSequence)__receiver)
150 }
151 }
152 #[doc = "`GainDirty()` overload"]
153 fn gain_dirty(self) -> () {
154 unsafe {
155 let __receiver = <GodGrowSequence as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
156 ::unity::il2cpp_call!((::unity::module_base()+0x23303a0usize)as*mut u8,();
157(GodGrowSequence)__receiver)
158 }
159 }
160 #[doc = "`CheckNotifyLevelCapTalk()` overload"]
161 fn check_notify_level_cap_talk(self) -> () {
162 unsafe {
163 let __receiver = <GodGrowSequence as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
164 ::unity::il2cpp_call!((::unity::module_base()+0x23304a0usize)as*mut u8,();
165(GodGrowSequence)__receiver)
166 }
167 }
168 #[doc = "`NotifyLevelCapTalk()` overload"]
169 fn notify_level_cap_talk(self) -> () {
170 unsafe {
171 let __receiver = <GodGrowSequence as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
172 ::unity::il2cpp_call!((::unity::module_base()+0x2330600usize)as*mut u8,();
173(GodGrowSequence)__receiver)
174 }
175 }
176 #[doc = "`CheckLevelUp()` overload"]
177 fn check_level_up(self) -> () {
178 unsafe {
179 let __receiver = <GodGrowSequence as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
180 ::unity::il2cpp_call!((::unity::module_base()+0x2330840usize)as*mut u8,();
181(GodGrowSequence)__receiver)
182 }
183 }
184 #[doc = "`LevelUp()` overload"]
185 fn level_up(self) -> () {
186 unsafe {
187 let __receiver = <GodGrowSequence as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
188 ::unity::il2cpp_call!((::unity::module_base()+0x2330920usize)as*mut u8,();
189(GodGrowSequence)__receiver)
190 }
191 }
192}
193
194#[cfg(feature = "app-godgrowsequence")]
195impl<__T: IGodGrowSequence> IGodGrowSequenceMethods for __T {}
196
197#[cfg(feature = "app-godgrowsequence")]
198impl GodGrowSequence {
199 pub fn create_bind_method_info() -> &'static ::unity::il2cpp::MethodInfo {
200 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
201 }
202
203 pub fn create_bind_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
204 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
205 }
206
207 pub fn create_bind_3_method_info() -> &'static ::unity::il2cpp::MethodInfo {
208 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
209 }
210
211 pub fn create_bind_impl_method_info() -> &'static ::unity::il2cpp::MethodInfo {
212 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
213 }
214
215 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
216 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
217 }
218
219 pub fn gain_exp_method_info() -> &'static ::unity::il2cpp::MethodInfo {
220 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
221 }
222
223 pub fn gain_dirty_method_info() -> &'static ::unity::il2cpp::MethodInfo {
224 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
225 }
226
227 pub fn check_notify_level_cap_talk_method_info() -> &'static ::unity::il2cpp::MethodInfo {
228 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
229 }
230
231 pub fn notify_level_cap_talk_method_info() -> &'static ::unity::il2cpp::MethodInfo {
232 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
233 }
234
235 pub fn check_level_up_method_info() -> &'static ::unity::il2cpp::MethodInfo {
236 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
237 }
238
239 pub fn level_up_method_info() -> &'static ::unity::il2cpp::MethodInfo {
240 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
241 }
242}
243
244#[cfg(feature = "app-godgrowsequence")]
245impl GodGrowSequence {
246 #[doc = "`.ctor(crate::app::godunit::GodUnit, crate::app::unit::Unit, i32, i32)` — overload selector"]
247 pub fn new(god_unit: crate::app::godunit::GodUnit, unit: crate::app::unit::Unit, exp: i32, dirty: i32) -> Self {
248 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
249 panic!(
250 "{}
251::{}
252 failed to instantiate",
253 ::core::stringify!(GodGrowSequence),
254 ::core::stringify!(new),
255 )
256 });
257 <Self as IGodGrowSequenceMethods>::ctor(this, god_unit, unit, exp, dirty);
258 this
259 }
260}
261
262#[cfg(feature = "app-godgrowsequence")]
263#[doc(hidden)]
264pub mod prelude {
265 pub use super::{GodGrowSequence, GodGrowSequence_Label, IGodGrowSequence, IGodGrowSequenceMethods};
266 #[cfg(feature = "app-procinst")]
267 pub use crate::app::procinst::IProcInstMethods;
268 #[cfg(feature = "system-object")]
269 pub use crate::system::object::IObjectMethods;
270 #[cfg(feature = "system-enum")]
271 pub use crate::system::r#enum::IEnumMethods;
272 #[cfg(feature = "system-valuetype")]
273 pub use crate::system::valuetype::IValueTypeMethods;
274 pub use crate::{
275 app::procinst::IProcInst,
276 system::{object::IObject, r#enum::IEnum, valuetype::IValueType},
277 };
278}