engage/generated/app/
expsequence.rs1#[cfg(feature = "app-expsequence-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/expsequence/ExpSequence.md"))]
14 #[::unity::class(namespace = "App", name = "ExpSequence")]
15 #[parent(crate::app::procinst::ProcInst)]
16 pub struct ExpSequence {
17 #[static_field]
18 #[rename(name = "resNameC")]
19 pub res_name_c: ::unity::Il2CppString,
20 #[offset(112)]
21 #[rename(name = "m_Unit")]
22 pub m_unit: crate::app::unit::Unit,
23 #[offset(120)]
24 #[rename(name = "m_Exp")]
25 pub m_exp: i32,
26 #[offset(124)]
27 #[rename(name = "m_SkillPoint")]
28 pub m_skill_point: i32,
29 #[offset(128)]
30 #[rename(name = "m_isExpSe")]
31 pub m_is_exp_se: bool,
32 #[offset(136)]
33 #[rename(name = "m_Window")]
34 pub m_window: crate::app::expsetter::ExpSetter,
35 }
36}
37
38#[cfg(feature = "app-expsequence-types")]
39pub use __types::*;
40
41#[cfg(feature = "app-expsequence")]
42impl ExpSequence {
43 #[doc = "`CreateBind(crate::app::procinst::ProcInst, crate::app::unit::Unit, i32, i32)` overload"]
44 pub fn create_bind(
45 super_: impl ::core::convert::Into<crate::app::procinst::ProcInst>,
46 unit: impl ::core::convert::Into<crate::app::unit::Unit>,
47 exp: impl ::core::convert::Into<i32>,
48 skill_point: impl ::core::convert::Into<i32>,
49 ) -> () {
50 unsafe {
51 ::unity::il2cpp_call!((::unity::module_base()+0x24e8c20usize)as*mut u8,();
52(crate::app::procinst::ProcInst)::core::convert::Into::into(super_),(crate::app::unit::Unit)::core::convert::Into::into(unit),(i32)::core::convert::Into::into(exp),(i32)::core::convert::Into::into(skill_point))
53 }
54 }
55}
56
57#[cfg(feature = "app-expsequence")]
58pub trait IExpSequenceMethods: IExpSequence {
59 #[doc = "`.ctor(crate::app::unit::Unit, i32, i32)` overload"]
60 fn ctor(
61 self,
62 unit: impl ::core::convert::Into<crate::app::unit::Unit>,
63 exp: impl ::core::convert::Into<i32>,
64 skill_point: impl ::core::convert::Into<i32>,
65 ) -> () {
66 unsafe {
67 let __receiver = <ExpSequence as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
68 ::unity::il2cpp_call!((::unity::module_base()+0x24e8150usize)as*mut u8,();
69(ExpSequence)__receiver,(crate::app::unit::Unit)::core::convert::Into::into(unit),(i32)::core::convert::Into::into(exp),(i32)::core::convert::Into::into(skill_point))
70 }
71 }
72 #[doc = "`SoundStart()` overload"]
73 fn sound_start(self) -> () {
74 unsafe {
75 let __receiver = <ExpSequence as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
76 ::unity::il2cpp_call!((::unity::module_base()+0x24e8250usize)as*mut u8,();
77(ExpSequence)__receiver)
78 }
79 }
80 #[doc = "`SoundStop()` overload"]
81 fn sound_stop(self) -> () {
82 unsafe {
83 let __receiver = <ExpSequence as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
84 ::unity::il2cpp_call!((::unity::module_base()+0x24e82e0usize)as*mut u8,();
85(ExpSequence)__receiver)
86 }
87 }
88 #[doc = "`Tick()` overload"]
89 fn tick(self) -> () {
90 unsafe {
91 let __receiver = <ExpSequence as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
92 ::unity::il2cpp_call!((::unity::module_base()+0x24e8370usize)as*mut u8,();
93(ExpSequence)__receiver)
94 }
95 }
96 #[doc = "`WaitLoad()` overload"]
97 fn wait_load(self) -> () {
98 unsafe {
99 let __receiver = <ExpSequence as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
100 ::unity::il2cpp_call!((::unity::module_base()+0x24e87c0usize)as*mut u8,();
101(ExpSequence)__receiver)
102 }
103 }
104 #[doc = "`Open()` overload"]
105 fn open(self) -> () {
106 unsafe {
107 let __receiver = <ExpSequence as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
108 ::unity::il2cpp_call!((::unity::module_base()+0x24e8870usize)as*mut u8,();
109(ExpSequence)__receiver)
110 }
111 }
112 #[doc = "`WaitAnime()` overload"]
113 fn wait_anime(self) -> () {
114 unsafe {
115 let __receiver = <ExpSequence as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
116 ::unity::il2cpp_call!((::unity::module_base()+0x24e8a30usize)as*mut u8,();
117(ExpSequence)__receiver)
118 }
119 }
120 #[doc = "`Release()` overload"]
121 fn release(self) -> () {
122 unsafe {
123 let __receiver = <ExpSequence as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
124 ::unity::il2cpp_call!((::unity::module_base()+0x24e8b40usize)as*mut u8,();
125(ExpSequence)__receiver)
126 }
127 }
128 #[doc = "`UpdateAddExp()` overload"]
129 fn update_add_exp(self) -> () {
130 unsafe {
131 let __receiver = <ExpSequence as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
132 ::unity::il2cpp_call!((::unity::module_base()+0x24e8720usize)as*mut u8,();
133(ExpSequence)__receiver)
134 }
135 }
136}
137
138#[cfg(feature = "app-expsequence")]
139impl<__T: IExpSequence> IExpSequenceMethods for __T {}
140
141#[cfg(feature = "app-expsequence")]
142impl ExpSequence {
143 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
144 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
145 }
146
147 pub fn sound_start_method_info() -> &'static ::unity::il2cpp::MethodInfo {
148 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
149 }
150
151 pub fn sound_stop_method_info() -> &'static ::unity::il2cpp::MethodInfo {
152 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
153 }
154
155 pub fn tick_method_info() -> &'static ::unity::il2cpp::MethodInfo {
156 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
157 }
158
159 pub fn wait_load_method_info() -> &'static ::unity::il2cpp::MethodInfo {
160 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
161 }
162
163 pub fn open_method_info() -> &'static ::unity::il2cpp::MethodInfo {
164 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
165 }
166
167 pub fn wait_anime_method_info() -> &'static ::unity::il2cpp::MethodInfo {
168 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
169 }
170
171 pub fn release_method_info() -> &'static ::unity::il2cpp::MethodInfo {
172 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
173 }
174
175 pub fn update_add_exp_method_info() -> &'static ::unity::il2cpp::MethodInfo {
176 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
177 }
178
179 pub fn create_bind_method_info() -> &'static ::unity::il2cpp::MethodInfo {
180 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
181 }
182}
183
184#[cfg(feature = "app-expsequence")]
185impl ExpSequence {
186 #[doc = "`.ctor(crate::app::unit::Unit, i32, i32)` — overload selector"]
187 pub fn new(unit: crate::app::unit::Unit, exp: i32, skill_point: i32) -> Self {
188 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
189 panic!(
190 "{}
191::{}
192 failed to instantiate",
193 ::core::stringify!(ExpSequence),
194 ::core::stringify!(new),
195 )
196 });
197 <Self as IExpSequenceMethods>::ctor(this, unit, exp, skill_point);
198 this
199 }
200}
201
202#[cfg(feature = "app-expsequence")]
203#[doc(hidden)]
204pub mod prelude {
205 pub use super::{ExpSequence, IExpSequence, IExpSequenceMethods};
206 #[cfg(feature = "app-procinst")]
207 pub use crate::app::procinst::IProcInstMethods;
208 #[cfg(feature = "system-object")]
209 pub use crate::system::object::IObjectMethods;
210 pub use crate::{app::procinst::IProcInst, system::object::IObject};
211}