engage/generated/app/
relayawardeedata.rs1#[cfg(feature = "app-relayawardeedata-types")]
4mod __types {
5 #[allow(unused_imports)] use ::unity::prelude::*;
6
7 use super::*;
8 use crate::system::object::{IObject, Object};
9
10 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/relayawardeedata/RelayAwardeeData.md"))]
11 #[::unity::class(namespace = "App", name = "RelayAwardeeData")]
12 #[parent(crate::system::object::Object)]
13 pub struct RelayAwardeeData {
14 #[static_field]
15 #[rename(name = "Version")]
16 pub version: u16,
17 #[offset(16)]
18 #[rename(name = "m_Edit")]
19 pub m_edit: crate::app::unitedit::UnitEdit,
20 #[offset(24)]
21 #[rename(name = "m_Person")]
22 pub m_person: crate::app::persondata::PersonData,
23 #[offset(32)]
24 #[rename(name = "m_Job")]
25 pub m_job: crate::app::jobdata::JobData,
26 #[offset(40)]
27 #[rename(name = "m_God")]
28 pub m_god: crate::app::goddata::GodData,
29 #[offset(48)]
30 #[rename(name = "m_RecordValue")]
31 pub m_record_value: i32,
32 #[offset(52)]
33 #[rename(name = "m_RelayPlayerIndex")]
34 pub m_relay_player_index: u8,
35 #[offset(53)]
36 #[rename(name = "m_IsMorph")]
37 pub m_is_morph: bool,
38 #[offset(56)]
39 #[rename(name = "m_Item")]
40 pub m_item: crate::app::itemdata::ItemData,
41 }
42}
43
44#[cfg(feature = "app-relayawardeedata-types")]
45pub use __types::*;
46
47#[cfg(feature = "app-relayawardeedata")]
48pub trait IRelayAwardeeDataMethods: IRelayAwardeeData {
49 #[doc = "`.ctor()` overload"]
50 fn ctor(self) -> () {
51 unsafe {
52 let __receiver = <RelayAwardeeData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
53 ::unity::il2cpp_call!((::unity::module_base()+0x22cc740usize)as*mut u8,();
54(RelayAwardeeData)__receiver)
55 }
56 }
57 #[doc = "`Register(crate::app::unit::Unit, i32, crate::app::itemdata::ItemData)` overload"]
58 fn register(
59 self,
60 unit: impl ::core::convert::Into<crate::app::unit::Unit>,
61 record_value: impl ::core::convert::Into<i32>,
62 item: impl ::core::convert::Into<crate::app::itemdata::ItemData>,
63 ) -> () {
64 unsafe {
65 let __receiver = <RelayAwardeeData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
66 ::unity::il2cpp_call!((::unity::module_base()+0x22cc820usize)as*mut u8,();
67(RelayAwardeeData)__receiver,(crate::app::unit::Unit)::core::convert::Into::into(unit),(i32)::core::convert::Into::into(record_value),(crate::app::itemdata::ItemData)::core::convert::Into::into(item))
68 }
69 }
70 #[doc = "`Register(crate::app::relayleavingunitdata::RelayLeavingUnitData, i32, crate::app::itemdata::ItemData)` overload"]
71 fn register_2(
72 self,
73 leaving_unit_data: impl ::core::convert::Into<crate::app::relayleavingunitdata::RelayLeavingUnitData>,
74 record_value: impl ::core::convert::Into<i32>,
75 item: impl ::core::convert::Into<crate::app::itemdata::ItemData>,
76 ) -> () {
77 unsafe {
78 let __receiver = <RelayAwardeeData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
79 ::unity::il2cpp_call!((::unity::module_base()+0x22cca30usize)as*mut u8,();
80(RelayAwardeeData)__receiver,(crate::app::relayleavingunitdata::RelayLeavingUnitData)::core::convert::Into::into(leaving_unit_data),(i32)::core::convert::Into::into(record_value),(crate::app::itemdata::ItemData)::core::convert::Into::into(item))
81 }
82 }
83 #[doc = "`Clear()` overload"]
84 fn clear(self) -> () {
85 unsafe {
86 let __receiver = <RelayAwardeeData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
87 ::unity::il2cpp_call!((::unity::module_base()+0x22d0210usize)as*mut u8,();
88(RelayAwardeeData)__receiver)
89 }
90 }
91 #[doc = "`GetName()` overload"]
92 fn get_name(self) -> ::unity::Il2CppString {
93 unsafe {
94 let __receiver = <RelayAwardeeData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
95 ::unity::il2cpp_call!((::unity::module_base()+0x22d0280usize)as*mut u8, ::unity::Il2CppString;
96(RelayAwardeeData)__receiver)
97 }
98 }
99 #[doc = "`IsFemale()` overload"]
100 fn is_female(self) -> bool {
101 unsafe {
102 let __receiver = <RelayAwardeeData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
103 ::unity::il2cpp_call!((::unity::module_base()+0x22d0320usize)as*mut u8,bool;
104(RelayAwardeeData)__receiver)
105 }
106 }
107 #[doc = "`GetGodName()` overload"]
108 fn get_god_name(self) -> ::unity::Il2CppString {
109 unsafe {
110 let __receiver = <RelayAwardeeData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
111 ::unity::il2cpp_call!((::unity::module_base()+0x22d03b0usize)as*mut u8, ::unity::Il2CppString;
112(RelayAwardeeData)__receiver)
113 }
114 }
115 #[doc = "`Serialize(crate::app::stream_2::Stream_2)` overload"]
116 fn serialize(self, stream: impl ::core::convert::Into<crate::app::stream_2::Stream_2>) -> () {
117 unsafe {
118 let __receiver = <RelayAwardeeData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
119 ::unity::il2cpp_call!((::unity::module_base()+0x22d0430usize)as*mut u8,();
120(RelayAwardeeData)__receiver,(crate::app::stream_2::Stream_2)::core::convert::Into::into(stream))
121 }
122 }
123 #[doc = "`Deserialize(crate::app::stream_2::Stream_2)` overload"]
124 fn deserialize(self, stream: impl ::core::convert::Into<crate::app::stream_2::Stream_2>) -> () {
125 unsafe {
126 let __receiver = <RelayAwardeeData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
127 ::unity::il2cpp_call!((::unity::module_base()+0x22d0540usize)as*mut u8,();
128(RelayAwardeeData)__receiver,(crate::app::stream_2::Stream_2)::core::convert::Into::into(stream))
129 }
130 }
131 #[doc = "`get_Edit()` overload"]
132 fn get_edit(self) -> crate::app::unitedit::UnitEdit {
133 unsafe {
134 let __receiver = <RelayAwardeeData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
135 ::unity::il2cpp_call!((::unity::module_base()+0x22d0af0usize)as*mut u8,crate::app::unitedit::UnitEdit;
136(RelayAwardeeData)__receiver)
137 }
138 }
139 #[doc = "`get_Person()` overload"]
140 fn get_person(self) -> crate::app::persondata::PersonData {
141 unsafe {
142 let __receiver = <RelayAwardeeData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
143 ::unity::il2cpp_call!((::unity::module_base()+0x22d0b00usize)as*mut u8,crate::app::persondata::PersonData;
144(RelayAwardeeData)__receiver)
145 }
146 }
147 #[doc = "`get_Job()` overload"]
148 fn get_job(self) -> crate::app::jobdata::JobData {
149 unsafe {
150 let __receiver = <RelayAwardeeData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
151 ::unity::il2cpp_call!((::unity::module_base()+0x22d0b10usize)as*mut u8,crate::app::jobdata::JobData;
152(RelayAwardeeData)__receiver)
153 }
154 }
155 #[doc = "`get_God()` overload"]
156 fn get_god(self) -> crate::app::goddata::GodData {
157 unsafe {
158 let __receiver = <RelayAwardeeData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
159 ::unity::il2cpp_call!((::unity::module_base()+0x22d0b20usize)as*mut u8,crate::app::goddata::GodData;
160(RelayAwardeeData)__receiver)
161 }
162 }
163 #[doc = "`get_RecordValue()` overload"]
164 fn get_record_value(self) -> i32 {
165 unsafe {
166 let __receiver = <RelayAwardeeData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
167 ::unity::il2cpp_call!((::unity::module_base()+0x22d0b30usize)as*mut u8,i32;
168(RelayAwardeeData)__receiver)
169 }
170 }
171 #[doc = "`get_RelayPlayerIndex()` overload"]
172 fn get_relay_player_index(self) -> u8 {
173 unsafe {
174 let __receiver = <RelayAwardeeData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
175 ::unity::il2cpp_call!((::unity::module_base()+0x22d0b40usize)as*mut u8,u8;
176(RelayAwardeeData)__receiver)
177 }
178 }
179 #[doc = "`get_IsMorth()` overload"]
180 fn get_is_morth(self) -> bool {
181 unsafe {
182 let __receiver = <RelayAwardeeData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
183 ::unity::il2cpp_call!((::unity::module_base()+0x22d0b50usize)as*mut u8,bool;
184(RelayAwardeeData)__receiver)
185 }
186 }
187 #[doc = "`get_Item()` overload"]
188 fn get_item(self) -> crate::app::itemdata::ItemData {
189 unsafe {
190 let __receiver = <RelayAwardeeData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
191 ::unity::il2cpp_call!((::unity::module_base()+0x22d0b60usize)as*mut u8,crate::app::itemdata::ItemData;
192(RelayAwardeeData)__receiver)
193 }
194 }
195}
196
197#[cfg(feature = "app-relayawardeedata")]
198impl<__T: IRelayAwardeeData> IRelayAwardeeDataMethods for __T {}
199
200#[cfg(feature = "app-relayawardeedata")]
201impl RelayAwardeeData {
202 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
203 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
204 }
205
206 pub fn register_method_info() -> &'static ::unity::il2cpp::MethodInfo {
207 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
208 }
209
210 pub fn register_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
211 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
212 }
213
214 pub fn clear_method_info() -> &'static ::unity::il2cpp::MethodInfo {
215 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
216 }
217
218 pub fn get_name_method_info() -> &'static ::unity::il2cpp::MethodInfo {
219 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
220 }
221
222 pub fn is_female_method_info() -> &'static ::unity::il2cpp::MethodInfo {
223 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
224 }
225
226 pub fn get_god_name_method_info() -> &'static ::unity::il2cpp::MethodInfo {
227 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
228 }
229
230 pub fn serialize_method_info() -> &'static ::unity::il2cpp::MethodInfo {
231 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
232 }
233
234 pub fn deserialize_method_info() -> &'static ::unity::il2cpp::MethodInfo {
235 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
236 }
237
238 pub fn get_edit_method_info() -> &'static ::unity::il2cpp::MethodInfo {
239 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
240 }
241
242 pub fn get_person_method_info() -> &'static ::unity::il2cpp::MethodInfo {
243 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
244 }
245
246 pub fn get_job_method_info() -> &'static ::unity::il2cpp::MethodInfo {
247 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[11]
248 }
249
250 pub fn get_god_method_info() -> &'static ::unity::il2cpp::MethodInfo {
251 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[12]
252 }
253
254 pub fn get_record_value_method_info() -> &'static ::unity::il2cpp::MethodInfo {
255 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[13]
256 }
257
258 pub fn get_relay_player_index_method_info() -> &'static ::unity::il2cpp::MethodInfo {
259 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[14]
260 }
261
262 pub fn get_is_morth_method_info() -> &'static ::unity::il2cpp::MethodInfo {
263 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[15]
264 }
265
266 pub fn get_item_method_info() -> &'static ::unity::il2cpp::MethodInfo {
267 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[16]
268 }
269}
270
271#[cfg(feature = "app-relayawardeedata")]
272impl RelayAwardeeData {
273 #[doc = "`.ctor()` — no args"]
274 pub fn new() -> Self {
275 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
276 panic!(
277 "{}
278::{}
279 failed to instantiate",
280 ::core::stringify!(RelayAwardeeData),
281 ::core::stringify!(new),
282 )
283 });
284 <Self as IRelayAwardeeDataMethods>::ctor(this);
285 this
286 }
287}
288
289#[cfg(feature = "app-relayawardeedata")]
290#[doc(hidden)]
291pub mod prelude {
292 pub use super::{IRelayAwardeeData, IRelayAwardeeDataMethods, RelayAwardeeData};
293 pub use crate::system::object::IObject;
294 #[cfg(feature = "system-object")]
295 pub use crate::system::object::IObjectMethods;
296}