engage/generated/app/
encountweaponcategorydata.rs1#[cfg(feature = "app-encountweaponcategorydata-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/encountweaponcategorydata/EncountWeaponCategoryData.md"))]
18 #[::unity::class(namespace = "App", name = "EncountWeaponCategoryData")]
19 #[parent(crate::app::structdataarray_1::StructDataArray_1<crate::app::encountweaponcategorydata::EncountWeaponCategoryData>)]
20 pub struct EncountWeaponCategoryData {}
21}
22
23#[cfg(feature = "app-encountweaponcategorydata-types")]
24pub use __types::*;
25
26#[cfg(feature = "app-encountweaponcategorydata")]
27impl EncountWeaponCategoryData {
28 #[doc = "`Load()` overload"]
29 pub fn load() -> () {
30 unsafe {
31 ::unity::il2cpp_call!((::unity::module_base()+0x22dacf0usize)as*mut u8,();
32 )
33 }
34 }
35}
36
37#[cfg(feature = "app-encountweaponcategorydata")]
38pub trait IEncountWeaponCategoryDataMethods: IEncountWeaponCategoryData {
39 #[doc = "`get_Iid()` overload"]
40 fn get_iid(self) -> ::unity::Il2CppString {
41 unsafe {
42 let __receiver =
43 <EncountWeaponCategoryData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
44 ::unity::il2cpp_call!((::unity::module_base()+0x22e35a0usize)as*mut u8, ::unity::Il2CppString;
45(EncountWeaponCategoryData)__receiver)
46 }
47 }
48 #[doc = "`set_Iid(::unity::Il2CppString)` overload"]
49 fn set_iid(self, value: impl ::core::convert::Into<::unity::Il2CppString>) -> () {
50 unsafe {
51 let __receiver =
52 <EncountWeaponCategoryData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
53 ::unity::il2cpp_call!((::unity::module_base()+0x22e35b0usize)as*mut u8,();
54(EncountWeaponCategoryData)__receiver,(::unity::Il2CppString)::core::convert::Into::into(value))
55 }
56 }
57 #[doc = "`get_RankConditionMore()` overload"]
58 fn get_rank_condition_more(self) -> u8 {
59 unsafe {
60 let __receiver =
61 <EncountWeaponCategoryData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
62 ::unity::il2cpp_call!((::unity::module_base()+0x22e35c0usize)as*mut u8,u8;
63(EncountWeaponCategoryData)__receiver)
64 }
65 }
66 #[doc = "`set_RankConditionMore(u8)` overload"]
67 fn set_rank_condition_more(self, value: impl ::core::convert::Into<u8>) -> () {
68 unsafe {
69 let __receiver =
70 <EncountWeaponCategoryData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
71 ::unity::il2cpp_call!((::unity::module_base()+0x22e35d0usize)as*mut u8,();
72(EncountWeaponCategoryData)__receiver,(u8)::core::convert::Into::into(value))
73 }
74 }
75 #[doc = "`get_RankConditionLess()` overload"]
76 fn get_rank_condition_less(self) -> u8 {
77 unsafe {
78 let __receiver =
79 <EncountWeaponCategoryData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
80 ::unity::il2cpp_call!((::unity::module_base()+0x22e35e0usize)as*mut u8,u8;
81(EncountWeaponCategoryData)__receiver)
82 }
83 }
84 #[doc = "`set_RankConditionLess(u8)` overload"]
85 fn set_rank_condition_less(self, value: impl ::core::convert::Into<u8>) -> () {
86 unsafe {
87 let __receiver =
88 <EncountWeaponCategoryData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
89 ::unity::il2cpp_call!((::unity::module_base()+0x22e35f0usize)as*mut u8,();
90(EncountWeaponCategoryData)__receiver,(u8)::core::convert::Into::into(value))
91 }
92 }
93 #[doc = "`get_Percentage()` overload"]
94 fn get_percentage(self) -> u8 {
95 unsafe {
96 let __receiver =
97 <EncountWeaponCategoryData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
98 ::unity::il2cpp_call!((::unity::module_base()+0x22e3600usize)as*mut u8,u8;
99(EncountWeaponCategoryData)__receiver)
100 }
101 }
102 #[doc = "`set_Percentage(u8)` overload"]
103 fn set_percentage(self, value: impl ::core::convert::Into<u8>) -> () {
104 unsafe {
105 let __receiver =
106 <EncountWeaponCategoryData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
107 ::unity::il2cpp_call!((::unity::module_base()+0x22e3610usize)as*mut u8,();
108(EncountWeaponCategoryData)__receiver,(u8)::core::convert::Into::into(value))
109 }
110 }
111 #[doc = "`GetDebugName()` overload"]
112 fn get_debug_name(self) -> ::unity::Il2CppString {
113 unsafe {
114 let __receiver =
115 <EncountWeaponCategoryData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
116 {
117 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
118 let __vi = *__vt.get(8usize).unwrap_or_else(|| {
119 panic!(
120 "unity: virtual slot {}
121 out of range (vtable len {}
122) on the runtime class behind {}
123 (method `{}
124`)",
125 8usize,
126 __vt.len(),
127 <EncountWeaponCategoryData as ::unity::ClassIdentity>::NAME,
128 "GetDebugName",
129 )
130 });
131 let __inner: extern "C" fn(EncountWeaponCategoryData, ::unity::OptionalMethod) -> ::unity::Il2CppString =
132 ::core::mem::transmute(__vi.method_ptr);
133 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
134 __inner(__receiver, __mi)
135 }
136 }
137 }
138 #[doc = "`.ctor()` overload"]
139 fn ctor(self) -> () {
140 unsafe {
141 let __receiver =
142 <EncountWeaponCategoryData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
143 ::unity::il2cpp_call!((::unity::module_base()+0x22e3630usize)as*mut u8,();
144(EncountWeaponCategoryData)__receiver)
145 }
146 }
147}
148
149#[cfg(feature = "app-encountweaponcategorydata")]
150impl<__T: IEncountWeaponCategoryData> IEncountWeaponCategoryDataMethods for __T {}
151
152#[cfg(feature = "app-encountweaponcategorydata")]
153impl EncountWeaponCategoryData {
154 pub fn load_method_info() -> &'static ::unity::il2cpp::MethodInfo {
155 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
156 }
157
158 pub fn get_iid_method_info() -> &'static ::unity::il2cpp::MethodInfo {
159 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
160 }
161
162 pub fn set_iid_method_info() -> &'static ::unity::il2cpp::MethodInfo {
163 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
164 }
165
166 pub fn get_rank_condition_more_method_info() -> &'static ::unity::il2cpp::MethodInfo {
167 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
168 }
169
170 pub fn set_rank_condition_more_method_info() -> &'static ::unity::il2cpp::MethodInfo {
171 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
172 }
173
174 pub fn get_rank_condition_less_method_info() -> &'static ::unity::il2cpp::MethodInfo {
175 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
176 }
177
178 pub fn set_rank_condition_less_method_info() -> &'static ::unity::il2cpp::MethodInfo {
179 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
180 }
181
182 pub fn get_percentage_method_info() -> &'static ::unity::il2cpp::MethodInfo {
183 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
184 }
185
186 pub fn set_percentage_method_info() -> &'static ::unity::il2cpp::MethodInfo {
187 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
188 }
189
190 pub fn get_debug_name_method_info() -> &'static ::unity::il2cpp::MethodInfo {
191 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
192 }
193
194 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
195 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
196 }
197}
198
199#[cfg(feature = "app-encountweaponcategorydata")]
200impl EncountWeaponCategoryData {
201 #[doc = "Direct (non-virtual) call to `EncountWeaponCategoryData`'s own `GetDebugName`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
202 pub unsafe fn get_debug_name(this: impl ::core::convert::Into<::unity::IlInstance>) -> ::unity::Il2CppString {
203 let __mi = Self::get_debug_name_method_info();
204 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> ::unity::Il2CppString = ::core::mem::transmute(__mi.method_ptr);
205 __inner(this.into(), ::core::option::Option::None)
206 }
207}
208
209#[cfg(feature = "app-encountweaponcategorydata")]
210impl EncountWeaponCategoryData {
211 #[doc = "`.ctor()` — no args"]
212 pub fn new() -> Self {
213 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
214 panic!(
215 "{}
216::{}
217 failed to instantiate",
218 ::core::stringify!(EncountWeaponCategoryData),
219 ::core::stringify!(new),
220 )
221 });
222 <Self as IEncountWeaponCategoryDataMethods>::ctor(this);
223 this
224 }
225}
226
227#[cfg(feature = "app-encountweaponcategorydata")]
228#[doc(hidden)]
229pub mod prelude {
230 pub use super::{EncountWeaponCategoryData, IEncountWeaponCategoryData, IEncountWeaponCategoryDataMethods};
231 #[cfg(feature = "app-structbase")]
232 pub use crate::app::structbase::IStructBaseMethods;
233 #[cfg(feature = "app-structdataarray_1")]
234 pub use crate::app::structdataarray_1::IStructDataArray_1Methods;
235 #[cfg(feature = "app-structtemplate_1")]
236 pub use crate::app::structtemplate_1::IStructTemplate_1Methods;
237 #[cfg(feature = "system-object")]
238 pub use crate::system::object::IObjectMethods;
239 pub use crate::{
240 app::{structbase::IStructBase, structdataarray_1::IStructDataArray_1, structtemplate_1::IStructTemplate_1},
241 system::object::IObject,
242 };
243}