engage/generated/app/
characteridset.rs1#[cfg(feature = "app-characteridset-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/characteridset/CharacterIdSet.md"))]
11 #[::unity::class(namespace = "App", name = "CharacterIdSet")]
12 #[parent(crate::system::object::Object)]
13 pub struct CharacterIdSet {
14 #[offset(16)]
15 #[rename(name = "Pid")]
16 pub pid: ::unity::Il2CppString,
17 #[offset(24)]
18 #[rename(name = "Jid")]
19 pub jid: ::unity::Il2CppString,
20 #[offset(32)]
21 #[rename(name = "Sid")]
22 pub sid: ::unity::Il2CppString,
23 #[offset(40)]
24 #[rename(name = "Iid")]
25 pub iid: ::unity::Il2CppString,
26 #[offset(48)]
27 #[rename(name = "Position")]
28 pub position: ::unity::Array<i32>,
29 #[offset(56)]
30 #[rename(name = "Lv")]
31 pub lv: i32,
32 #[offset(60)]
33 #[rename(name = "Hp")]
34 pub hp: f32,
35 #[offset(64)]
36 #[rename(name = "Exp")]
37 pub exp: i32,
38 #[offset(68)]
39 #[rename(name = "IsEngage")]
40 pub is_engage: bool,
41 #[offset(69)]
42 #[rename(name = "IsMale")]
43 pub is_male: bool,
44 }
45}
46
47#[cfg(feature = "app-characteridset-types")]
48pub use __types::*;
49
50#[cfg(feature = "app-characteridset")]
51pub trait ICharacterIdSetMethods: ICharacterIdSet {
52 #[doc = "`get_JobNameList()` overload"]
53 fn get_job_name_list(self) -> ::unity::Array<::unity::Il2CppString> {
54 unsafe {
55 let __receiver = <CharacterIdSet as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
56 ::unity::il2cpp_call!((::unity::module_base()+0x27e5870usize)as*mut u8, ::unity::Array< ::unity::Il2CppString> ;
57(CharacterIdSet)__receiver)
58 }
59 }
60 #[doc = "`set_JobNameList(::unity::Array<::unity::Il2CppString>)` overload"]
61 fn set_job_name_list(self, value: impl ::core::convert::Into<::unity::Array<::unity::Il2CppString>>) -> () {
62 unsafe {
63 let __receiver = <CharacterIdSet as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
64 ::unity::il2cpp_call!((::unity::module_base()+0x27e5880usize)as*mut u8,();
65(CharacterIdSet)__receiver,(::unity::Array< ::unity::Il2CppString>)::core::convert::Into::into(value))
66 }
67 }
68 #[doc = "`get_WeaponNameList()` overload"]
69 fn get_weapon_name_list(self) -> ::unity::Array<::unity::Il2CppString> {
70 unsafe {
71 let __receiver = <CharacterIdSet as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
72 ::unity::il2cpp_call!((::unity::module_base()+0x27e5890usize)as*mut u8, ::unity::Array< ::unity::Il2CppString> ;
73(CharacterIdSet)__receiver)
74 }
75 }
76 #[doc = "`set_WeaponNameList(::unity::Array<::unity::Il2CppString>)` overload"]
77 fn set_weapon_name_list(self, value: impl ::core::convert::Into<::unity::Array<::unity::Il2CppString>>) -> () {
78 unsafe {
79 let __receiver = <CharacterIdSet as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
80 ::unity::il2cpp_call!((::unity::module_base()+0x27e58a0usize)as*mut u8,();
81(CharacterIdSet)__receiver,(::unity::Array< ::unity::Il2CppString>)::core::convert::Into::into(value))
82 }
83 }
84 #[doc = "`get_SkillNameList()` overload"]
85 fn get_skill_name_list(self) -> ::unity::Array<::unity::Il2CppString> {
86 unsafe {
87 let __receiver = <CharacterIdSet as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
88 ::unity::il2cpp_call!((::unity::module_base()+0x27e58b0usize)as*mut u8, ::unity::Array< ::unity::Il2CppString> ;
89(CharacterIdSet)__receiver)
90 }
91 }
92 #[doc = "`set_SkillNameList(::unity::Array<::unity::Il2CppString>)` overload"]
93 fn set_skill_name_list(self, value: impl ::core::convert::Into<::unity::Array<::unity::Il2CppString>>) -> () {
94 unsafe {
95 let __receiver = <CharacterIdSet as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
96 ::unity::il2cpp_call!((::unity::module_base()+0x27e58c0usize)as*mut u8,();
97(CharacterIdSet)__receiver,(::unity::Array< ::unity::Il2CppString>)::core::convert::Into::into(value))
98 }
99 }
100 #[doc = "`GetHash()` overload"]
101 fn get_hash(self) -> i32 {
102 unsafe {
103 let __receiver = <CharacterIdSet as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
104 ::unity::il2cpp_call!((::unity::module_base()+0x27e58d0usize)as*mut u8,i32;
105(CharacterIdSet)__receiver)
106 }
107 }
108 #[doc = "`Validate()` overload"]
109 fn validate(self) -> () {
110 unsafe {
111 let __receiver = <CharacterIdSet as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
112 ::unity::il2cpp_call!((::unity::module_base()+0x27e5a70usize)as*mut u8,();
113(CharacterIdSet)__receiver)
114 }
115 }
116 #[doc = "`SetupJobAndWeaponList(bool)` overload"]
117 fn setup_job_and_weapon_list(self, set_random: impl ::core::convert::Into<bool>) -> () {
118 unsafe {
119 let __receiver = <CharacterIdSet as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
120 ::unity::il2cpp_call!((::unity::module_base()+0x27e5b10usize)as*mut u8,();
121(CharacterIdSet)__receiver,(bool)::core::convert::Into::into(set_random))
122 }
123 }
124 #[doc = "`SetupWeaponList(bool)` overload"]
125 fn setup_weapon_list(self, set_random: impl ::core::convert::Into<bool>) -> () {
126 unsafe {
127 let __receiver = <CharacterIdSet as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
128 ::unity::il2cpp_call!((::unity::module_base()+0x27e5eb0usize)as*mut u8,();
129(CharacterIdSet)__receiver,(bool)::core::convert::Into::into(set_random))
130 }
131 }
132 #[doc = "`SetupSkillList(bool)` overload"]
133 fn setup_skill_list(self, set_random: impl ::core::convert::Into<bool>) -> () {
134 unsafe {
135 let __receiver = <CharacterIdSet as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
136 ::unity::il2cpp_call!((::unity::module_base()+0x27e6680usize)as*mut u8,();
137(CharacterIdSet)__receiver,(bool)::core::convert::Into::into(set_random))
138 }
139 }
140 #[doc = "`ToString()` overload"]
141 fn to_string(self) -> ::unity::Il2CppString {
142 unsafe {
143 let __receiver = <CharacterIdSet as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
144 {
145 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
146 let __vi = *__vt.get(3usize).unwrap_or_else(|| {
147 panic!(
148 "unity: virtual slot {}
149 out of range (vtable len {}
150) on the runtime class behind {}
151 (method `{}
152`)",
153 3usize,
154 __vt.len(),
155 <CharacterIdSet as ::unity::ClassIdentity>::NAME,
156 "ToString",
157 )
158 });
159 let __inner: extern "C" fn(CharacterIdSet, ::unity::OptionalMethod) -> ::unity::Il2CppString =
160 ::core::mem::transmute(__vi.method_ptr);
161 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
162 __inner(__receiver, __mi)
163 }
164 }
165 }
166 #[doc = "`.ctor()` overload"]
167 fn ctor(self) -> () {
168 unsafe {
169 let __receiver = <CharacterIdSet as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
170 ::unity::il2cpp_call!((::unity::module_base()+0x27e6b10usize)as*mut u8,();
171(CharacterIdSet)__receiver)
172 }
173 }
174}
175
176#[cfg(feature = "app-characteridset")]
177impl<__T: ICharacterIdSet> ICharacterIdSetMethods for __T {}
178
179#[cfg(feature = "app-characteridset")]
180impl CharacterIdSet {
181 pub fn get_job_name_list_method_info() -> &'static ::unity::il2cpp::MethodInfo {
182 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
183 }
184
185 pub fn set_job_name_list_method_info() -> &'static ::unity::il2cpp::MethodInfo {
186 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
187 }
188
189 pub fn get_weapon_name_list_method_info() -> &'static ::unity::il2cpp::MethodInfo {
190 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
191 }
192
193 pub fn set_weapon_name_list_method_info() -> &'static ::unity::il2cpp::MethodInfo {
194 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
195 }
196
197 pub fn get_skill_name_list_method_info() -> &'static ::unity::il2cpp::MethodInfo {
198 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
199 }
200
201 pub fn set_skill_name_list_method_info() -> &'static ::unity::il2cpp::MethodInfo {
202 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
203 }
204
205 pub fn get_hash_method_info() -> &'static ::unity::il2cpp::MethodInfo {
206 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
207 }
208
209 pub fn validate_method_info() -> &'static ::unity::il2cpp::MethodInfo {
210 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
211 }
212
213 pub fn setup_job_and_weapon_list_method_info() -> &'static ::unity::il2cpp::MethodInfo {
214 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
215 }
216
217 pub fn setup_weapon_list_method_info() -> &'static ::unity::il2cpp::MethodInfo {
218 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
219 }
220
221 pub fn setup_skill_list_method_info() -> &'static ::unity::il2cpp::MethodInfo {
222 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
223 }
224
225 pub fn to_string_method_info() -> &'static ::unity::il2cpp::MethodInfo {
226 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[11]
227 }
228
229 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
230 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[12]
231 }
232}
233
234#[cfg(feature = "app-characteridset")]
235impl CharacterIdSet {
236 #[doc = "Direct (non-virtual) call to `CharacterIdSet`'s own `ToString`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
237 pub unsafe fn to_string(this: impl ::core::convert::Into<::unity::IlInstance>) -> ::unity::Il2CppString {
238 let __mi = Self::to_string_method_info();
239 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> ::unity::Il2CppString = ::core::mem::transmute(__mi.method_ptr);
240 __inner(this.into(), ::core::option::Option::None)
241 }
242}
243
244#[cfg(feature = "app-characteridset")]
245impl CharacterIdSet {
246 #[doc = "`.ctor()` — no args"]
247 pub fn new() -> Self {
248 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
249 panic!(
250 "{}
251::{}
252 failed to instantiate",
253 ::core::stringify!(CharacterIdSet),
254 ::core::stringify!(new),
255 )
256 });
257 <Self as ICharacterIdSetMethods>::ctor(this);
258 this
259 }
260}
261
262#[cfg(feature = "app-characteridset")]
263#[doc(hidden)]
264pub mod prelude {
265 pub use super::{CharacterIdSet, ICharacterIdSet, ICharacterIdSetMethods};
266 pub use crate::system::object::IObject;
267 #[cfg(feature = "system-object")]
268 pub use crate::system::object::IObjectMethods;
269}