engage/generated/app/
relayleavingunitdata.rs1#[cfg(feature = "app-relayleavingunitdata-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/relayleavingunitdata/RelayLeavingUnitData.md"))]
11 #[::unity::class(namespace = "App", name = "RelayLeavingUnitData")]
12 #[parent(crate::system::object::Object)]
13 pub struct RelayLeavingUnitData {
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_Record")]
31 pub m_record: crate::app::unitrecord::UnitRecord,
32 #[offset(56)]
33 #[rename(name = "m_RelayPlayerIndex")]
34 pub m_relay_player_index: u8,
35 #[offset(57)]
36 #[rename(name = "m_IsMorph")]
37 pub m_is_morph: bool,
38 }
39}
40
41#[cfg(feature = "app-relayleavingunitdata-types")]
42pub use __types::*;
43
44#[cfg(feature = "app-relayleavingunitdata")]
45pub trait IRelayLeavingUnitDataMethods: IRelayLeavingUnitData {
46 #[doc = "`.ctor()` overload"]
47 fn ctor(self) -> () {
48 unsafe {
49 let __receiver = <RelayLeavingUnitData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
50 ::unity::il2cpp_call!((::unity::module_base()+0x1ffd250usize)as*mut u8,();
51(RelayLeavingUnitData)__receiver)
52 }
53 }
54 #[doc = "`Register(crate::app::unit::Unit)` overload"]
55 fn register(self, unit: impl ::core::convert::Into<crate::app::unit::Unit>) -> () {
56 unsafe {
57 let __receiver = <RelayLeavingUnitData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
58 ::unity::il2cpp_call!((::unity::module_base()+0x1ffd3d0usize)as*mut u8,();
59(RelayLeavingUnitData)__receiver,(crate::app::unit::Unit)::core::convert::Into::into(unit))
60 }
61 }
62 #[doc = "`Clear()` overload"]
63 fn clear(self) -> () {
64 unsafe {
65 let __receiver = <RelayLeavingUnitData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
66 ::unity::il2cpp_call!((::unity::module_base()+0x1ffd360usize)as*mut u8,();
67(RelayLeavingUnitData)__receiver)
68 }
69 }
70 #[doc = "`GetName()` overload"]
71 fn get_name(self) -> ::unity::Il2CppString {
72 unsafe {
73 let __receiver = <RelayLeavingUnitData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
74 ::unity::il2cpp_call!((::unity::module_base()+0x1ffd5f0usize)as*mut u8, ::unity::Il2CppString;
75(RelayLeavingUnitData)__receiver)
76 }
77 }
78 #[doc = "`IsFemale()` overload"]
79 fn is_female(self) -> bool {
80 unsafe {
81 let __receiver = <RelayLeavingUnitData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
82 ::unity::il2cpp_call!((::unity::module_base()+0x1ffd690usize)as*mut u8,bool;
83(RelayLeavingUnitData)__receiver)
84 }
85 }
86 #[doc = "`GetGodName()` overload"]
87 fn get_god_name(self) -> ::unity::Il2CppString {
88 unsafe {
89 let __receiver = <RelayLeavingUnitData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
90 ::unity::il2cpp_call!((::unity::module_base()+0x1ffd720usize)as*mut u8, ::unity::Il2CppString;
91(RelayLeavingUnitData)__receiver)
92 }
93 }
94 #[doc = "`Serialize(crate::app::stream_2::Stream_2)` overload"]
95 fn serialize(self, stream: impl ::core::convert::Into<crate::app::stream_2::Stream_2>) -> () {
96 unsafe {
97 let __receiver = <RelayLeavingUnitData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
98 ::unity::il2cpp_call!((::unity::module_base()+0x1ffd7a0usize)as*mut u8,();
99(RelayLeavingUnitData)__receiver,(crate::app::stream_2::Stream_2)::core::convert::Into::into(stream))
100 }
101 }
102 #[doc = "`Deserialize(crate::app::stream_2::Stream_2)` overload"]
103 fn deserialize(self, stream: impl ::core::convert::Into<crate::app::stream_2::Stream_2>) -> () {
104 unsafe {
105 let __receiver = <RelayLeavingUnitData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
106 ::unity::il2cpp_call!((::unity::module_base()+0x1ffd8a0usize)as*mut u8,();
107(RelayLeavingUnitData)__receiver,(crate::app::stream_2::Stream_2)::core::convert::Into::into(stream))
108 }
109 }
110 #[doc = "`get_Edit()` overload"]
111 fn get_edit(self) -> crate::app::unitedit::UnitEdit {
112 unsafe {
113 let __receiver = <RelayLeavingUnitData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
114 ::unity::il2cpp_call!((::unity::module_base()+0x1ffddb0usize)as*mut u8,crate::app::unitedit::UnitEdit;
115(RelayLeavingUnitData)__receiver)
116 }
117 }
118 #[doc = "`get_Person()` overload"]
119 fn get_person(self) -> crate::app::persondata::PersonData {
120 unsafe {
121 let __receiver = <RelayLeavingUnitData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
122 ::unity::il2cpp_call!((::unity::module_base()+0x1ffddc0usize)as*mut u8,crate::app::persondata::PersonData;
123(RelayLeavingUnitData)__receiver)
124 }
125 }
126 #[doc = "`get_Job()` overload"]
127 fn get_job(self) -> crate::app::jobdata::JobData {
128 unsafe {
129 let __receiver = <RelayLeavingUnitData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
130 ::unity::il2cpp_call!((::unity::module_base()+0x1ffddd0usize)as*mut u8,crate::app::jobdata::JobData;
131(RelayLeavingUnitData)__receiver)
132 }
133 }
134 #[doc = "`get_God()` overload"]
135 fn get_god(self) -> crate::app::goddata::GodData {
136 unsafe {
137 let __receiver = <RelayLeavingUnitData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
138 ::unity::il2cpp_call!((::unity::module_base()+0x1ffdde0usize)as*mut u8,crate::app::goddata::GodData;
139(RelayLeavingUnitData)__receiver)
140 }
141 }
142 #[doc = "`get_Record()` overload"]
143 fn get_record(self) -> crate::app::unitrecord::UnitRecord {
144 unsafe {
145 let __receiver = <RelayLeavingUnitData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
146 ::unity::il2cpp_call!((::unity::module_base()+0x1ffddf0usize)as*mut u8,crate::app::unitrecord::UnitRecord;
147(RelayLeavingUnitData)__receiver)
148 }
149 }
150 #[doc = "`get_RelayPlayerIndex()` overload"]
151 fn get_relay_player_index(self) -> u8 {
152 unsafe {
153 let __receiver = <RelayLeavingUnitData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
154 ::unity::il2cpp_call!((::unity::module_base()+0x1ffde00usize)as*mut u8,u8;
155(RelayLeavingUnitData)__receiver)
156 }
157 }
158 #[doc = "`get_IsMorph()` overload"]
159 fn get_is_morph(self) -> bool {
160 unsafe {
161 let __receiver = <RelayLeavingUnitData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
162 ::unity::il2cpp_call!((::unity::module_base()+0x1ffde10usize)as*mut u8,bool;
163(RelayLeavingUnitData)__receiver)
164 }
165 }
166}
167
168#[cfg(feature = "app-relayleavingunitdata")]
169impl<__T: IRelayLeavingUnitData> IRelayLeavingUnitDataMethods for __T {}
170
171#[cfg(feature = "app-relayleavingunitdata")]
172impl RelayLeavingUnitData {
173 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
174 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
175 }
176
177 pub fn register_method_info() -> &'static ::unity::il2cpp::MethodInfo {
178 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
179 }
180
181 pub fn clear_method_info() -> &'static ::unity::il2cpp::MethodInfo {
182 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
183 }
184
185 pub fn get_name_method_info() -> &'static ::unity::il2cpp::MethodInfo {
186 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
187 }
188
189 pub fn is_female_method_info() -> &'static ::unity::il2cpp::MethodInfo {
190 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
191 }
192
193 pub fn get_god_name_method_info() -> &'static ::unity::il2cpp::MethodInfo {
194 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
195 }
196
197 pub fn serialize_method_info() -> &'static ::unity::il2cpp::MethodInfo {
198 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
199 }
200
201 pub fn deserialize_method_info() -> &'static ::unity::il2cpp::MethodInfo {
202 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
203 }
204
205 pub fn get_edit_method_info() -> &'static ::unity::il2cpp::MethodInfo {
206 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
207 }
208
209 pub fn get_person_method_info() -> &'static ::unity::il2cpp::MethodInfo {
210 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
211 }
212
213 pub fn get_job_method_info() -> &'static ::unity::il2cpp::MethodInfo {
214 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
215 }
216
217 pub fn get_god_method_info() -> &'static ::unity::il2cpp::MethodInfo {
218 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[11]
219 }
220
221 pub fn get_record_method_info() -> &'static ::unity::il2cpp::MethodInfo {
222 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[12]
223 }
224
225 pub fn get_relay_player_index_method_info() -> &'static ::unity::il2cpp::MethodInfo {
226 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[13]
227 }
228
229 pub fn get_is_morph_method_info() -> &'static ::unity::il2cpp::MethodInfo {
230 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[14]
231 }
232}
233
234#[cfg(feature = "app-relayleavingunitdata")]
235impl RelayLeavingUnitData {
236 #[doc = "`.ctor()` — no args"]
237 pub fn new() -> Self {
238 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
239 panic!(
240 "{}
241::{}
242 failed to instantiate",
243 ::core::stringify!(RelayLeavingUnitData),
244 ::core::stringify!(new),
245 )
246 });
247 <Self as IRelayLeavingUnitDataMethods>::ctor(this);
248 this
249 }
250}
251
252#[cfg(feature = "app-relayleavingunitdata")]
253#[doc(hidden)]
254pub mod prelude {
255 pub use super::{IRelayLeavingUnitData, IRelayLeavingUnitDataMethods, RelayLeavingUnitData};
256 pub use crate::system::object::IObject;
257 #[cfg(feature = "system-object")]
258 pub use crate::system::object::IObjectMethods;
259}