engage/generated/root/
configsequence.rs1#[cfg(feature = "root-configsequence-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/root/configsequence/ConfigSequence_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 ConfigSequence_Label {
21 pub value: i32,
22 }
23 impl ::unity::ClassIdentity for ConfigSequence_Label {
24 const NAME: &'static str = "ConfigSequence.Label";
25 const NAMESPACE: &'static str = "";
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 ConfigSequence_Label {
33 fn il_type() -> &'static ::unity::il2cpp::Il2CppType {
34 &<Self as ::unity::ClassIdentity>::class().raw()._1.byval_arg
35 }
36 }
37 impl ConfigSequence_Label {
38 pub fn load() -> Self {
39 Self { value: 0 }
40 }
41
42 pub fn unload() -> 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/root/configsequence/ConfigSequence.md"))]
52 #[::unity::class(namespace = "", name = "ConfigSequence")]
53 #[parent(crate::app::procinst::ProcInst)]
54 pub struct ConfigSequence {
55 #[offset(112)]
56 #[rename(name = "m_ConfigObject")]
57 pub m_config_object: crate::unity_engine::gameobject::GameObject,
58 }
59}
60
61#[cfg(feature = "root-configsequence-types")]
62pub use __types::*;
63
64#[cfg(feature = "root-configsequence")]
65impl ConfigSequence {
66 #[doc = "`CreateBind(crate::app::procinst::ProcInst)` overload"]
67 pub fn create_bind(super_: impl ::core::convert::Into<crate::app::procinst::ProcInst>) -> () {
68 unsafe {
69 ::unity::il2cpp_call!((::unity::module_base()+0x253a650usize)as*mut u8,();
70(crate::app::procinst::ProcInst)::core::convert::Into::into(super_))
71 }
72 }
73}
74
75#[cfg(feature = "root-configsequence")]
76pub trait IConfigSequenceMethods: IConfigSequence {
77 #[doc = "`LoadResources()` overload"]
78 fn load_resources(self) -> () {
79 unsafe {
80 let __receiver = <ConfigSequence as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
81 ::unity::il2cpp_call!((::unity::module_base()+0x253a110usize)as*mut u8,();
82(ConfigSequence)__receiver)
83 }
84 }
85 #[doc = "`UnloadResources()` overload"]
86 fn unload_resources(self) -> () {
87 unsafe {
88 let __receiver = <ConfigSequence as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
89 ::unity::il2cpp_call!((::unity::module_base()+0x253a190usize)as*mut u8,();
90(ConfigSequence)__receiver)
91 }
92 }
93 #[doc = "`IsLoadingResources()` overload"]
94 fn is_loading_resources(self) -> bool {
95 unsafe {
96 let __receiver = <ConfigSequence as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
97 ::unity::il2cpp_call!((::unity::module_base()+0x253a210usize)as*mut u8,bool;
98(ConfigSequence)__receiver)
99 }
100 }
101 #[doc = "`StartSequence()` overload"]
102 fn start_sequence(self) -> () {
103 unsafe {
104 let __receiver = <ConfigSequence as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
105 ::unity::il2cpp_call!((::unity::module_base()+0x253a290usize)as*mut u8,();
106(ConfigSequence)__receiver)
107 }
108 }
109 #[doc = "`CreateConfigMenu()` overload"]
110 fn create_config_menu(self) -> () {
111 unsafe {
112 let __receiver = <ConfigSequence as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
113 ::unity::il2cpp_call!((::unity::module_base()+0x253a470usize)as*mut u8,();
114(ConfigSequence)__receiver)
115 }
116 }
117 #[doc = "`EndSequence()` overload"]
118 fn end_sequence(self) -> () {
119 unsafe {
120 let __receiver = <ConfigSequence as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
121 ::unity::il2cpp_call!((::unity::module_base()+0x253a4a0usize)as*mut u8,();
122(ConfigSequence)__receiver)
123 }
124 }
125 #[doc = "`DestroyConfigMenu()` overload"]
126 fn destroy_config_menu(self) -> () {
127 unsafe {
128 let __receiver = <ConfigSequence as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
129 ::unity::il2cpp_call!((::unity::module_base()+0x253a5e0usize)as*mut u8,();
130(ConfigSequence)__receiver)
131 }
132 }
133 #[doc = "`OnDispose()` overload"]
134 fn on_dispose(self) -> () {
135 unsafe {
136 let __receiver = <ConfigSequence as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
137 {
138 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
139 let __vi = *__vt.get(10usize).unwrap_or_else(|| {
140 panic!(
141 "unity: virtual slot {}
142 out of range (vtable len {}
143) on the runtime class behind {}
144 (method `{}
145`)",
146 10usize,
147 __vt.len(),
148 <ConfigSequence as ::unity::ClassIdentity>::NAME,
149 "OnDispose",
150 )
151 });
152 let __inner: extern "C" fn(ConfigSequence, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
153 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
154 __inner(__receiver, __mi)
155 }
156 }
157 }
158 #[doc = "`.ctor()` overload"]
159 fn ctor(self) -> () {
160 unsafe {
161 let __receiver = <ConfigSequence as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
162 ::unity::il2cpp_call!((::unity::module_base()+0x253abf0usize)as*mut u8,();
163(ConfigSequence)__receiver)
164 }
165 }
166}
167
168#[cfg(feature = "root-configsequence")]
169impl<__T: IConfigSequence> IConfigSequenceMethods for __T {}
170
171#[cfg(feature = "root-configsequence")]
172impl ConfigSequence {
173 pub fn load_resources_method_info() -> &'static ::unity::il2cpp::MethodInfo {
174 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
175 }
176
177 pub fn unload_resources_method_info() -> &'static ::unity::il2cpp::MethodInfo {
178 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
179 }
180
181 pub fn is_loading_resources_method_info() -> &'static ::unity::il2cpp::MethodInfo {
182 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
183 }
184
185 pub fn start_sequence_method_info() -> &'static ::unity::il2cpp::MethodInfo {
186 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
187 }
188
189 pub fn create_config_menu_method_info() -> &'static ::unity::il2cpp::MethodInfo {
190 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
191 }
192
193 pub fn end_sequence_method_info() -> &'static ::unity::il2cpp::MethodInfo {
194 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
195 }
196
197 pub fn destroy_config_menu_method_info() -> &'static ::unity::il2cpp::MethodInfo {
198 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
199 }
200
201 pub fn create_bind_method_info() -> &'static ::unity::il2cpp::MethodInfo {
202 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
203 }
204
205 pub fn on_dispose_method_info() -> &'static ::unity::il2cpp::MethodInfo {
206 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
207 }
208
209 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
210 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
211 }
212}
213
214#[cfg(feature = "root-configsequence")]
215impl ConfigSequence {
216 #[doc = "Direct (non-virtual) call to `ConfigSequence`'s own `OnDispose`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
217 pub unsafe fn on_dispose(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
218 let __mi = Self::on_dispose_method_info();
219 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
220 __inner(this.into(), ::core::option::Option::None)
221 }
222}
223
224#[cfg(feature = "root-configsequence")]
225impl ConfigSequence {
226 #[doc = "`.ctor()` — no args"]
227 pub fn new() -> Self {
228 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
229 panic!(
230 "{}
231::{}
232 failed to instantiate",
233 ::core::stringify!(ConfigSequence),
234 ::core::stringify!(new),
235 )
236 });
237 <Self as IConfigSequenceMethods>::ctor(this);
238 this
239 }
240}
241
242#[cfg(feature = "root-configsequence")]
243#[doc(hidden)]
244pub mod prelude {
245 pub use super::{ConfigSequence, ConfigSequence_Label, IConfigSequence, IConfigSequenceMethods};
246 #[cfg(feature = "app-procinst")]
247 pub use crate::app::procinst::IProcInstMethods;
248 #[cfg(feature = "system-object")]
249 pub use crate::system::object::IObjectMethods;
250 #[cfg(feature = "system-enum")]
251 pub use crate::system::r#enum::IEnumMethods;
252 #[cfg(feature = "system-valuetype")]
253 pub use crate::system::valuetype::IValueTypeMethods;
254 pub use crate::{
255 app::procinst::IProcInst,
256 system::{object::IObject, r#enum::IEnum, valuetype::IValueType},
257 };
258}