engage/generated/app/
supportdata.rs1#[cfg(feature = "app-supportdata-types")]
4mod __types {
5 #[allow(unused_imports)] use ::unity::prelude::*;
6
7 use super::*;
8 use crate::{
9 app::{
10 structbase::{IStructBase, StructBase},
11 structdataarray_1::{IStructDataArray_1, StructDataArray_1},
12 structtemplate_1::{IStructTemplate_1, StructTemplate_1},
13 },
14 system::object::{IObject, Object},
15 };
16
17 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/supportdata/SupportData.md"))]
18 #[::unity::class(namespace = "App", name = "SupportData")]
19 #[parent(crate::app::structdataarray_1::StructDataArray_1<crate::app::supportdata::SupportData>)]
20 pub struct SupportData {}
21}
22
23#[cfg(feature = "app-supportdata-types")]
24pub use __types::*;
25
26#[cfg(feature = "app-supportdata")]
27impl SupportData {
28 #[doc = "`Load()` overload"]
29 pub fn load() -> () {
30 unsafe {
31 ::unity::il2cpp_call!((::unity::module_base()+0x20ae9e0usize)as*mut u8,();
32 )
33 }
34 }
35}
36
37#[cfg(feature = "app-supportdata")]
38pub trait ISupportDataMethods: ISupportData {
39 #[doc = "`get_Level()` overload"]
40 fn get_level(self) -> i8 {
41 unsafe {
42 let __receiver = <SupportData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
43 ::unity::il2cpp_call!((::unity::module_base()+0x20aea90usize)as*mut u8,i8;
44(SupportData)__receiver)
45 }
46 }
47 #[doc = "`set_Level(i8)` overload"]
48 fn set_level(self, value: impl ::core::convert::Into<i8>) -> () {
49 unsafe {
50 let __receiver = <SupportData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
51 ::unity::il2cpp_call!((::unity::module_base()+0x20aeaa0usize)as*mut u8,();
52(SupportData)__receiver,(i8)::core::convert::Into::into(value))
53 }
54 }
55 #[doc = "`get_Hit()` overload"]
56 fn get_hit(self) -> i8 {
57 unsafe {
58 let __receiver = <SupportData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
59 ::unity::il2cpp_call!((::unity::module_base()+0x20aeab0usize)as*mut u8,i8;
60(SupportData)__receiver)
61 }
62 }
63 #[doc = "`set_Hit(i8)` overload"]
64 fn set_hit(self, value: impl ::core::convert::Into<i8>) -> () {
65 unsafe {
66 let __receiver = <SupportData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
67 ::unity::il2cpp_call!((::unity::module_base()+0x20aeac0usize)as*mut u8,();
68(SupportData)__receiver,(i8)::core::convert::Into::into(value))
69 }
70 }
71 #[doc = "`get_Critical()` overload"]
72 fn get_critical(self) -> i8 {
73 unsafe {
74 let __receiver = <SupportData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
75 ::unity::il2cpp_call!((::unity::module_base()+0x20aead0usize)as*mut u8,i8;
76(SupportData)__receiver)
77 }
78 }
79 #[doc = "`set_Critical(i8)` overload"]
80 fn set_critical(self, value: impl ::core::convert::Into<i8>) -> () {
81 unsafe {
82 let __receiver = <SupportData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
83 ::unity::il2cpp_call!((::unity::module_base()+0x20aeae0usize)as*mut u8,();
84(SupportData)__receiver,(i8)::core::convert::Into::into(value))
85 }
86 }
87 #[doc = "`get_Avoid()` overload"]
88 fn get_avoid(self) -> i8 {
89 unsafe {
90 let __receiver = <SupportData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
91 ::unity::il2cpp_call!((::unity::module_base()+0x20aeaf0usize)as*mut u8,i8;
92(SupportData)__receiver)
93 }
94 }
95 #[doc = "`set_Avoid(i8)` overload"]
96 fn set_avoid(self, value: impl ::core::convert::Into<i8>) -> () {
97 unsafe {
98 let __receiver = <SupportData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
99 ::unity::il2cpp_call!((::unity::module_base()+0x20aeb00usize)as*mut u8,();
100(SupportData)__receiver,(i8)::core::convert::Into::into(value))
101 }
102 }
103 #[doc = "`get_Secure()` overload"]
104 fn get_secure(self) -> i8 {
105 unsafe {
106 let __receiver = <SupportData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
107 ::unity::il2cpp_call!((::unity::module_base()+0x20aeb10usize)as*mut u8,i8;
108(SupportData)__receiver)
109 }
110 }
111 #[doc = "`set_Secure(i8)` overload"]
112 fn set_secure(self, value: impl ::core::convert::Into<i8>) -> () {
113 unsafe {
114 let __receiver = <SupportData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
115 ::unity::il2cpp_call!((::unity::module_base()+0x20aeb20usize)as*mut u8,();
116(SupportData)__receiver,(i8)::core::convert::Into::into(value))
117 }
118 }
119 #[doc = "`GetDebugName()` overload"]
120 fn get_debug_name(self) -> ::unity::Il2CppString {
121 unsafe {
122 let __receiver = <SupportData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
123 {
124 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
125 let __vi = *__vt.get(8usize).unwrap_or_else(|| {
126 panic!(
127 "unity: virtual slot {}
128 out of range (vtable len {}
129) on the runtime class behind {}
130 (method `{}
131`)",
132 8usize,
133 __vt.len(),
134 <SupportData as ::unity::ClassIdentity>::NAME,
135 "GetDebugName",
136 )
137 });
138 let __inner: extern "C" fn(SupportData, ::unity::OptionalMethod) -> ::unity::Il2CppString = ::core::mem::transmute(__vi.method_ptr);
139 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
140 __inner(__receiver, __mi)
141 }
142 }
143 }
144 #[doc = "`.ctor()` overload"]
145 fn ctor(self) -> () {
146 unsafe {
147 let __receiver = <SupportData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
148 ::unity::il2cpp_call!((::unity::module_base()+0x20aeba0usize)as*mut u8,();
149(SupportData)__receiver)
150 }
151 }
152}
153
154#[cfg(feature = "app-supportdata")]
155impl<__T: ISupportData> ISupportDataMethods for __T {}
156
157#[cfg(feature = "app-supportdata")]
158impl SupportData {
159 pub fn load_method_info() -> &'static ::unity::il2cpp::MethodInfo {
160 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
161 }
162
163 pub fn get_level_method_info() -> &'static ::unity::il2cpp::MethodInfo {
164 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
165 }
166
167 pub fn set_level_method_info() -> &'static ::unity::il2cpp::MethodInfo {
168 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
169 }
170
171 pub fn get_hit_method_info() -> &'static ::unity::il2cpp::MethodInfo {
172 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
173 }
174
175 pub fn set_hit_method_info() -> &'static ::unity::il2cpp::MethodInfo {
176 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
177 }
178
179 pub fn get_critical_method_info() -> &'static ::unity::il2cpp::MethodInfo {
180 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
181 }
182
183 pub fn set_critical_method_info() -> &'static ::unity::il2cpp::MethodInfo {
184 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
185 }
186
187 pub fn get_avoid_method_info() -> &'static ::unity::il2cpp::MethodInfo {
188 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
189 }
190
191 pub fn set_avoid_method_info() -> &'static ::unity::il2cpp::MethodInfo {
192 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
193 }
194
195 pub fn get_secure_method_info() -> &'static ::unity::il2cpp::MethodInfo {
196 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
197 }
198
199 pub fn set_secure_method_info() -> &'static ::unity::il2cpp::MethodInfo {
200 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
201 }
202
203 pub fn get_debug_name_method_info() -> &'static ::unity::il2cpp::MethodInfo {
204 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[11]
205 }
206
207 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
208 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[12]
209 }
210}
211
212#[cfg(feature = "app-supportdata")]
213impl SupportData {
214 #[doc = "Direct (non-virtual) call to `SupportData`'s own `GetDebugName`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
215 pub unsafe fn get_debug_name(this: impl ::core::convert::Into<::unity::IlInstance>) -> ::unity::Il2CppString {
216 let __mi = Self::get_debug_name_method_info();
217 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> ::unity::Il2CppString = ::core::mem::transmute(__mi.method_ptr);
218 __inner(this.into(), ::core::option::Option::None)
219 }
220}
221
222#[cfg(feature = "app-supportdata")]
223impl SupportData {
224 #[doc = "`.ctor()` — no args"]
225 pub fn new() -> Self {
226 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
227 panic!(
228 "{}
229::{}
230 failed to instantiate",
231 ::core::stringify!(SupportData),
232 ::core::stringify!(new),
233 )
234 });
235 <Self as ISupportDataMethods>::ctor(this);
236 this
237 }
238}
239
240#[cfg(feature = "app-supportdata")]
241#[doc(hidden)]
242pub mod prelude {
243 pub use super::{ISupportData, ISupportDataMethods, SupportData};
244 #[cfg(feature = "app-structbase")]
245 pub use crate::app::structbase::IStructBaseMethods;
246 #[cfg(feature = "app-structdataarray_1")]
247 pub use crate::app::structdataarray_1::IStructDataArray_1Methods;
248 #[cfg(feature = "app-structtemplate_1")]
249 pub use crate::app::structtemplate_1::IStructTemplate_1Methods;
250 #[cfg(feature = "system-object")]
251 pub use crate::system::object::IObjectMethods;
252 pub use crate::{
253 app::{structbase::IStructBase, structdataarray_1::IStructDataArray_1, structtemplate_1::IStructTemplate_1},
254 system::object::IObject,
255 };
256}