1#[cfg(feature = "combat-characterappearance-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/combat/characterappearance/CharacterAppearance.md"))]
11 #[::unity::class(namespace = "Combat", name = "CharacterAppearance")]
12 #[parent(crate::system::object::Object)]
13 pub struct CharacterAppearance {
14 #[static_field]
15 #[rename(name = "s_StencilValue")]
16 pub s_stencil_value: f32,
17 #[offset(16)]
18 #[rename(name = "assets")]
19 pub assets: ::unity::Array<crate::combat::characterasset::CharacterAsset>,
20 #[offset(24)]
21 #[rename(name = "AnimsetNames")]
22 pub animset_names: crate::system::collections::generic::list_1::List_1<::unity::Il2CppString>,
23 #[offset(32)]
24 #[rename(name = "accTargets")]
25 pub acc_targets: ::unity::Array<::unity::Il2CppString>,
26 #[offset(40)]
27 #[rename(name = "MaskColor100")]
28 pub mask_color100: crate::unity_engine::color::Color,
29 #[offset(56)]
30 #[rename(name = "MaskColor075")]
31 pub mask_color075: crate::unity_engine::color::Color,
32 #[offset(72)]
33 #[rename(name = "MaskColor050")]
34 pub mask_color050: crate::unity_engine::color::Color,
35 #[offset(88)]
36 #[rename(name = "MaskColor025")]
37 pub mask_color025: crate::unity_engine::color::Color,
38 #[offset(104)]
39 #[rename(name = "SkinColor")]
40 pub skin_color: crate::unity_engine::color::Color,
41 #[offset(120)]
42 #[rename(name = "GradColor")]
43 pub grad_color: crate::unity_engine::color::Color,
44 #[offset(136)]
45 #[rename(name = "HairColor")]
46 pub hair_color: crate::unity_engine::color::Color,
47 #[offset(152)]
48 #[rename(name = "ToonShadowColor")]
49 pub toon_shadow_color: crate::unity_engine::color::Color,
50 #[offset(168)]
51 #[rename(name = "Sound")]
52 pub sound: crate::app::assettable::AssetTable_Sound,
53 #[offset(192)]
54 #[rename(name = "Proportion")]
55 pub proportion: crate::combat::proportionparameters::ProportionParameters,
56 #[offset(216)]
57 #[rename(name = "m_InstancedMaterials")]
58 pub m_instanced_materials: crate::system::collections::generic::list_1::List_1<crate::unity_engine::material::Material>,
59 #[offset(224)]
60 #[rename(name = "m_HolderLoadSimultaneous")]
61 pub m_holder_load_simultaneous: crate::app::gameparam::GameParam_Holder,
62 #[offset(232)]
63 #[rename(name = "m_CharaTallWalk")]
64 pub m_chara_tall_walk: crate::app::gameparam::GameParam_Holder,
65 #[offset(240)]
66 #[rename(name = "m_CharaTallHorse")]
67 pub m_chara_tall_horse: crate::app::gameparam::GameParam_Holder,
68 #[offset(248)]
69 #[rename(name = "m_CharaTallWolf")]
70 pub m_chara_tall_wolf: crate::app::gameparam::GameParam_Holder,
71 #[offset(256)]
72 #[rename(name = "m_CharaTallPegasus")]
73 pub m_chara_tall_pegasus: crate::app::gameparam::GameParam_Holder,
74 #[offset(264)]
75 #[rename(name = "m_CharaTallDragon")]
76 pub m_chara_tall_dragon: crate::app::gameparam::GameParam_Holder,
77 #[offset(272)]
78 #[rename(name = "m_CharaTallGriffon")]
79 pub m_chara_tall_griffon: crate::app::gameparam::GameParam_Holder,
80 #[offset(280)]
81 #[rename(name = "m_CharaTallEngage")]
82 pub m_chara_tall_engage: crate::app::gameparam::GameParam_Holder,
83 #[offset(288)]
84 #[rename(name = "m_CharaTallSombronHuman")]
85 pub m_chara_tall_sombron_human: crate::app::gameparam::GameParam_Holder,
86 #[offset(296)]
87 #[rename(name = "m_CharaTallSombronDragon")]
88 pub m_chara_tall_sombron_dragon: crate::app::gameparam::GameParam_Holder,
89 #[offset(304)]
90 #[rename(name = "m_CharaTallEngageTiki")]
91 pub m_chara_tall_engage_tiki: crate::app::gameparam::GameParam_Holder,
92 #[offset(312)]
93 #[rename(name = "m_CharaTallPhantomWolf")]
94 pub m_chara_tall_phantom_wolf: crate::app::gameparam::GameParam_Holder,
95 #[offset(320)]
96 #[rename(name = "m_CharaTallPhantomDragon")]
97 pub m_chara_tall_phantom_dragon: crate::app::gameparam::GameParam_Holder,
98 #[offset(328)]
99 #[rename(name = "m_CharaTallCorruptDragon")]
100 pub m_chara_tall_corrupt_dragon: crate::app::gameparam::GameParam_Holder,
101 #[static_field]
102 #[rename(name = "hash_BaseColor")]
103 pub hash_base_color: i32,
104 #[static_field]
105 #[rename(name = "hash_StencilGroup")]
106 pub hash_stencil_group: i32,
107 #[static_field]
108 #[rename(name = "hash_GradationColor")]
109 pub hash_gradation_color: i32,
110 #[static_field]
111 #[rename(name = "hash_ToonShadowColor")]
112 pub hash_toon_shadow_color: i32,
113 #[static_field]
114 #[rename(name = "hash_MaskColor100")]
115 pub hash_mask_color100: i32,
116 #[static_field]
117 #[rename(name = "hash_MaskColor075")]
118 pub hash_mask_color075: i32,
119 #[static_field]
120 #[rename(name = "hash_MaskColor050")]
121 pub hash_mask_color050: i32,
122 #[static_field]
123 #[rename(name = "hash_MaskColor025")]
124 pub hash_mask_color025: i32,
125 #[static_field]
126 #[rename(name = "Conditions")]
127 pub conditions: ::unity::Array<::unity::Il2CppString>,
128 }
129}
130
131#[cfg(feature = "combat-characterappearance-types")]
132pub use __types::*;
133
134#[cfg(feature = "combat-characterappearance")]
135impl CharacterAppearance {
136 #[doc = "`op_Implicit(crate::combat::characterappearance::CharacterAppearance)` overload"]
137 pub fn op_implicit(a: impl ::core::convert::Into<crate::combat::characterappearance::CharacterAppearance>) -> bool {
138 unsafe {
139 ::unity::il2cpp_call!((::unity::module_base()+0x2b0abf0usize)as*mut u8,bool;
140(crate::combat::characterappearance::CharacterAppearance)::core::convert::Into::into(a))
141 }
142 }
143
144 #[doc = "`CreateFromGameStatus(crate::combat::charactergamestatus::CharacterGameStatus, i32, ::unity::Array<::unity::Il2CppString>)` overload"]
145 pub fn create_from_game_status(
146 game_status: impl ::core::convert::Into<crate::combat::charactergamestatus::CharacterGameStatus>,
147 map_distance: impl ::core::convert::Into<i32>,
148 conditions: impl ::core::convert::Into<::unity::Array<::unity::Il2CppString>>,
149 ) -> crate::combat::characterappearance::CharacterAppearance {
150 unsafe {
151 ::unity::il2cpp_call!((::unity::module_base()+0x2b0ea10usize)as*mut u8,crate::combat::characterappearance::CharacterAppearance;
152(crate::combat::charactergamestatus::CharacterGameStatus)::core::convert::Into::into(game_status),(i32)::core::convert::Into::into(map_distance),(::unity::Array< ::unity::Il2CppString>)::core::convert::Into::into(conditions))
153 }
154 }
155
156 #[doc = "`CreateForSound(crate::app::unit::Unit)` overload"]
157 pub fn create_for_sound(unit: impl ::core::convert::Into<crate::app::unit::Unit>) -> crate::combat::characterappearance::CharacterAppearance {
158 unsafe {
159 ::unity::il2cpp_call!((::unity::module_base()+0x2b0f340usize)as*mut u8,crate::combat::characterappearance::CharacterAppearance;
160(crate::app::unit::Unit)::core::convert::Into::into(unit))
161 }
162 }
163
164 #[doc = "`CreateFromGodUnit(crate::app::godunit::GodUnit, ::unity::Array<::unity::Il2CppString>)` overload"]
165 pub fn create_from_god_unit(
166 gunit: impl ::core::convert::Into<crate::app::godunit::GodUnit>,
167 conditions: impl ::core::convert::Into<::unity::Array<::unity::Il2CppString>>,
168 ) -> crate::combat::characterappearance::CharacterAppearance {
169 unsafe {
170 ::unity::il2cpp_call!((::unity::module_base()+0x2b0f460usize)as*mut u8,crate::combat::characterappearance::CharacterAppearance;
171(crate::app::godunit::GodUnit)::core::convert::Into::into(gunit),(::unity::Array< ::unity::Il2CppString>)::core::convert::Into::into(conditions))
172 }
173 }
174
175 #[doc = "`CreateFromPreset(::unity::Il2CppString)` overload"]
176 pub fn create_from_preset(name: impl ::core::convert::Into<::unity::Il2CppString>) -> crate::combat::characterappearance::CharacterAppearance {
177 unsafe {
178 ::unity::il2cpp_call!((::unity::module_base()+0x2b0f4f0usize)as*mut u8,crate::combat::characterappearance::CharacterAppearance;
179(::unity::Il2CppString)::core::convert::Into::into(name))
180 }
181 }
182
183 #[doc = "`GetConstions(::unity::Array<::unity::Il2CppString>)` overload"]
184 pub fn get_constions(conditions: impl ::core::convert::Into<::unity::Array<::unity::Il2CppString>>) -> ::unity::Array<::unity::Il2CppString> {
185 unsafe {
186 ::unity::il2cpp_call!((::unity::module_base()+0x2b0eb20usize)as*mut u8, ::unity::Array< ::unity::Il2CppString> ;
187(::unity::Array< ::unity::Il2CppString>)::core::convert::Into::into(conditions))
188 }
189 }
190
191 #[doc = "`CreateFromResult(crate::app::assettable::AssetTable_Result, i32)` overload"]
192 pub fn create_from_result(
193 result: impl ::core::convert::Into<crate::app::assettable::AssetTable_Result>,
194 map_distance_1or2: impl ::core::convert::Into<i32>,
195 ) -> crate::combat::characterappearance::CharacterAppearance {
196 unsafe {
197 ::unity::il2cpp_call!((::unity::module_base()+0x2b0ed80usize)as*mut u8,crate::combat::characterappearance::CharacterAppearance;
198(crate::app::assettable::AssetTable_Result)::core::convert::Into::into(result),(i32)::core::convert::Into::into(map_distance_1or2))
199 }
200 }
201
202 #[doc = "`IsSameCharacter(crate::combat::characterappearance::CharacterAppearance, crate::combat::characterappearance::CharacterAppearance)` overload"]
203 pub fn is_same_character(
204 l: impl ::core::convert::Into<crate::combat::characterappearance::CharacterAppearance>,
205 r: impl ::core::convert::Into<crate::combat::characterappearance::CharacterAppearance>,
206 ) -> bool {
207 unsafe {
208 ::unity::il2cpp_call!((::unity::module_base()+0x2b0f570usize)as*mut u8,bool;
209(crate::combat::characterappearance::CharacterAppearance)::core::convert::Into::into(l),(crate::combat::characterappearance::CharacterAppearance)::core::convert::Into::into(r))
210 }
211 }
212
213 #[doc = "`.cctor()` overload"]
214 pub fn cctor() -> () {
215 unsafe {
216 ::unity::il2cpp_call!((::unity::module_base()+0x2b0f660usize)as*mut u8,();
217 )
218 }
219 }
220}
221
222#[cfg(feature = "combat-characterappearance")]
223pub trait ICharacterAppearanceMethods: ICharacterAppearance {
224 #[doc = "`get_AnimSet()` overload"]
225 fn get_anim_set(self) -> crate::combat::characteranimset::CharacterAnimset {
226 unsafe {
227 let __receiver = <CharacterAppearance as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
228 ::unity::il2cpp_call!((::unity::module_base()+0x2b0ac00usize)as*mut u8,crate::combat::characteranimset::CharacterAnimset;
229(CharacterAppearance)__receiver)
230 }
231 }
232 #[doc = "`set_AnimSet(crate::combat::characteranimset::CharacterAnimset)` overload"]
233 fn set_anim_set(self, value: impl ::core::convert::Into<crate::combat::characteranimset::CharacterAnimset>) -> () {
234 unsafe {
235 let __receiver = <CharacterAppearance as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
236 ::unity::il2cpp_call!((::unity::module_base()+0x2b0ac10usize)as*mut u8,();
237(CharacterAppearance)__receiver,(crate::combat::characteranimset::CharacterAnimset)::core::convert::Into::into(value))
238 }
239 }
240 #[doc = "`get_WeaponStyle()` overload"]
241 fn get_weapon_style(self) -> crate::combat::weaponstyle::WeaponStyle {
242 unsafe {
243 let __receiver = <CharacterAppearance as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
244 ::unity::il2cpp_call!((::unity::module_base()+0x2b0ac20usize)as*mut u8,crate::combat::weaponstyle::WeaponStyle;
245(CharacterAppearance)__receiver)
246 }
247 }
248 #[doc = "`set_WeaponStyle(crate::combat::weaponstyle::WeaponStyle)` overload"]
249 fn set_weapon_style(self, value: impl ::core::convert::Into<crate::combat::weaponstyle::WeaponStyle>) -> () {
250 unsafe {
251 let __receiver = <CharacterAppearance as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
252 ::unity::il2cpp_call!((::unity::module_base()+0x2b0ac30usize)as*mut u8,();
253(CharacterAppearance)__receiver,(crate::combat::weaponstyle::WeaponStyle)::core::convert::Into::into(value))
254 }
255 }
256 #[doc = "`get_Item(i32)` overload"]
257 fn get_item(self, index: impl ::core::convert::Into<i32>) -> crate::combat::characterasset::CharacterAsset {
258 unsafe {
259 let __receiver = <CharacterAppearance as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
260 ::unity::il2cpp_call!((::unity::module_base()+0x2b0ac40usize)as*mut u8,crate::combat::characterasset::CharacterAsset;
261(CharacterAppearance)__receiver,(i32)::core::convert::Into::into(index))
262 }
263 }
264 #[doc = "`get_Item(crate::combat::assettype::AssetType)` overload"]
265 fn get_item_2(self, r#type: impl ::core::convert::Into<crate::combat::assettype::AssetType>) -> crate::combat::characterasset::CharacterAsset {
266 unsafe {
267 let __receiver = <CharacterAppearance as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
268 ::unity::il2cpp_call!((::unity::module_base()+0x2b09bf0usize)as*mut u8,crate::combat::characterasset::CharacterAsset;
269(CharacterAppearance)__receiver,(crate::combat::assettype::AssetType)::core::convert::Into::into(r#type))
270 }
271 }
272 #[doc = "`get_AccTargets()` overload"]
273 fn get_acc_targets(self) -> ::unity::Array<::unity::Il2CppString> {
274 unsafe {
275 let __receiver = <CharacterAppearance as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
276 ::unity::il2cpp_call!((::unity::module_base()+0x2b0ac80usize)as*mut u8, ::unity::Array< ::unity::Il2CppString> ;
277(CharacterAppearance)__receiver)
278 }
279 }
280 #[doc = "`get_Race()` overload"]
281 fn get_race(self) -> crate::combat::animname::AnimName_Race {
282 unsafe {
283 let __receiver = <CharacterAppearance as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
284 ::unity::il2cpp_call!((::unity::module_base()+0x2aff6f0usize)as*mut u8,crate::combat::animname::AnimName_Race;
285(CharacterAppearance)__receiver)
286 }
287 }
288 #[doc = "`get_IsRide()` overload"]
289 fn get_is_ride(self) -> bool {
290 unsafe {
291 let __receiver = <CharacterAppearance as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
292 ::unity::il2cpp_call!((::unity::module_base()+0x2b04340usize)as*mut u8,bool;
293(CharacterAppearance)__receiver)
294 }
295 }
296 #[doc = "`get_IsFlying()` overload"]
297 fn get_is_flying(self) -> bool {
298 unsafe {
299 let __receiver = <CharacterAppearance as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
300 ::unity::il2cpp_call!((::unity::module_base()+0x2b0ac90usize)as*mut u8,bool;
301(CharacterAppearance)__receiver)
302 }
303 }
304 #[doc = "`get_IsCorruptAnimal()` overload"]
305 fn get_is_corrupt_animal(self) -> bool {
306 unsafe {
307 let __receiver = <CharacterAppearance as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
308 ::unity::il2cpp_call!((::unity::module_base()+0x2b0ad00usize)as*mut u8,bool;
309(CharacterAppearance)__receiver)
310 }
311 }
312 #[doc = "`get_IsBigDragon()` overload"]
313 fn get_is_big_dragon(self) -> bool {
314 unsafe {
315 let __receiver = <CharacterAppearance as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
316 ::unity::il2cpp_call!((::unity::module_base()+0x2b006e0usize)as*mut u8,bool;
317(CharacterAppearance)__receiver)
318 }
319 }
320 #[doc = "`get_IsWyrm()` overload"]
321 fn get_is_wyrm(self) -> bool {
322 unsafe {
323 let __receiver = <CharacterAppearance as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
324 ::unity::il2cpp_call!((::unity::module_base()+0x2b00920usize)as*mut u8,bool;
325(CharacterAppearance)__receiver)
326 }
327 }
328 #[doc = "`get_IsBrawl()` overload"]
329 fn get_is_brawl(self) -> bool {
330 unsafe {
331 let __receiver = <CharacterAppearance as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
332 ::unity::il2cpp_call!((::unity::module_base()+0x2b0ad80usize)as*mut u8,bool;
333(CharacterAppearance)__receiver)
334 }
335 }
336 #[doc = "`get_HasRod()` overload"]
337 fn get_has_rod(self) -> bool {
338 unsafe {
339 let __receiver = <CharacterAppearance as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
340 ::unity::il2cpp_call!((::unity::module_base()+0x2b0ad90usize)as*mut u8,bool;
341(CharacterAppearance)__receiver)
342 }
343 }
344 #[doc = "`get_MainHandModel()` overload"]
345 fn get_main_hand_model(self) -> crate::combat::characterasset::CharacterAsset {
346 unsafe {
347 let __receiver = <CharacterAppearance as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
348 ::unity::il2cpp_call!((::unity::module_base()+0x2b0ae70usize)as*mut u8,crate::combat::characterasset::CharacterAsset;
349(CharacterAppearance)__receiver)
350 }
351 }
352 #[doc = "`get_IsHighClass()` overload"]
353 fn get_is_high_class(self) -> bool {
354 unsafe {
355 let __receiver = <CharacterAppearance as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
356 ::unity::il2cpp_call!((::unity::module_base()+0x2b0af80usize)as*mut u8,bool;
357(CharacterAppearance)__receiver)
358 }
359 }
360 #[doc = "`get_Is異形()` overload"]
361 fn get_is異形(self) -> bool {
362 unsafe {
363 let __receiver = <CharacterAppearance as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
364 ::unity::il2cpp_call!((::unity::module_base()+0x2b048b0usize)as*mut u8,bool;
365(CharacterAppearance)__receiver)
366 }
367 }
368 #[doc = "`get_IsLastBoss()` overload"]
369 fn get_is_last_boss(self) -> bool {
370 unsafe {
371 let __receiver = <CharacterAppearance as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
372 ::unity::il2cpp_call!((::unity::module_base()+0x2b00660usize)as*mut u8,bool;
373(CharacterAppearance)__receiver)
374 }
375 }
376 #[doc = "`get_BackwardCancelPosition()` overload"]
377 fn get_backward_cancel_position(self) -> f32 {
378 unsafe {
379 let __receiver = <CharacterAppearance as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
380 ::unity::il2cpp_call!((::unity::module_base()+0x2affaf0usize)as*mut u8,f32;
381(CharacterAppearance)__receiver)
382 }
383 }
384 #[doc = "`.ctor()` overload"]
385 fn ctor(self) -> () {
386 unsafe {
387 let __receiver = <CharacterAppearance as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
388 ::unity::il2cpp_call!((::unity::module_base()+0x2b0aff0usize)as*mut u8,();
389(CharacterAppearance)__receiver)
390 }
391 }
392 #[doc = "`.ctor(crate::combat::characterappearance::CharacterAppearance, crate::combat::weaponstyle::WeaponStyle)` overload"]
393 fn ctor_2(
394 self,
395 rhs: impl ::core::convert::Into<crate::combat::characterappearance::CharacterAppearance>,
396 weapon_style: impl ::core::convert::Into<crate::combat::weaponstyle::WeaponStyle>,
397 ) -> () {
398 unsafe {
399 let __receiver = <CharacterAppearance as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
400 ::unity::il2cpp_call!((::unity::module_base()+0x2b0b570usize)as*mut u8,();
401(CharacterAppearance)__receiver,(crate::combat::characterappearance::CharacterAppearance)::core::convert::Into::into(rhs),(crate::combat::weaponstyle::WeaponStyle)::core::convert::Into::into(weapon_style))
402 }
403 }
404 #[doc = "`Dispose()` overload"]
405 fn dispose(self) -> () {
406 unsafe {
407 let __receiver = <CharacterAppearance as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
408 {
409 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
410 let __vi = *__vt.get(4usize).unwrap_or_else(|| {
411 panic!(
412 "unity: virtual slot {}
413 out of range (vtable len {}
414) on the runtime class behind {}
415 (method `{}
416`)",
417 4usize,
418 __vt.len(),
419 <CharacterAppearance as ::unity::ClassIdentity>::NAME,
420 "Dispose",
421 )
422 });
423 let __inner: extern "C" fn(CharacterAppearance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
424 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
425 __inner(__receiver, __mi)
426 }
427 }
428 }
429 #[doc = "`Finalize()` overload"]
430 fn finalize(self) -> () {
431 unsafe {
432 let __receiver = <CharacterAppearance as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
433 {
434 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
435 let __vi = *__vt.get(1usize).unwrap_or_else(|| {
436 panic!(
437 "unity: virtual slot {}
438 out of range (vtable len {}
439) on the runtime class behind {}
440 (method `{}
441`)",
442 1usize,
443 __vt.len(),
444 <CharacterAppearance as ::unity::ClassIdentity>::NAME,
445 "Finalize",
446 )
447 });
448 let __inner: extern "C" fn(CharacterAppearance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
449 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
450 __inner(__receiver, __mi)
451 }
452 }
453 }
454 #[doc = "`SetDefaultName()` overload"]
455 fn set_default_name(self) -> () {
456 unsafe {
457 let __receiver = <CharacterAppearance as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
458 ::unity::il2cpp_call!((::unity::module_base()+0x2b0c0b0usize)as*mut u8,();
459(CharacterAppearance)__receiver)
460 }
461 }
462 #[doc = "`Dump()` overload"]
463 fn dump(self) -> ::unity::Il2CppString {
464 unsafe {
465 let __receiver = <CharacterAppearance as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
466 ::unity::il2cpp_call!((::unity::module_base()+0x2b0c200usize)as*mut u8, ::unity::Il2CppString;
467(CharacterAppearance)__receiver)
468 }
469 }
470 #[doc = "`LoadAsync()` overload"]
471 fn load_async(self) -> () {
472 unsafe {
473 let __receiver = <CharacterAppearance as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
474 ::unity::il2cpp_call!((::unity::module_base()+0x2b0c320usize)as*mut u8,();
475(CharacterAppearance)__receiver)
476 }
477 }
478 #[doc = "`LoadAnimSetAsync()` overload"]
479 fn load_anim_set_async(self) -> () {
480 unsafe {
481 let __receiver = <CharacterAppearance as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
482 ::unity::il2cpp_call!((::unity::module_base()+0x2b0c450usize)as*mut u8,();
483(CharacterAppearance)__receiver)
484 }
485 }
486 #[doc = "`IsLoading()` overload"]
487 fn is_loading(self) -> bool {
488 unsafe {
489 let __receiver = <CharacterAppearance as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
490 ::unity::il2cpp_call!((::unity::module_base()+0x2b0c4a0usize)as*mut u8,bool;
491(CharacterAppearance)__receiver)
492 }
493 }
494 #[doc = "`ReplaceBodyAnimForEditor(crate::combat::characterasset::CharacterAsset)` overload"]
495 fn replace_body_anim_for_editor(self, a: impl ::core::convert::Into<crate::combat::characterasset::CharacterAsset>) -> () {
496 unsafe {
497 let __receiver = <CharacterAppearance as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
498 ::unity::il2cpp_call!((::unity::module_base()+0x2b0c8a0usize)as*mut u8,();
499(CharacterAppearance)__receiver,(crate::combat::characterasset::CharacterAsset)::core::convert::Into::into(a))
500 }
501 }
502 #[doc = "`CreateAnimSetForViewerPreview(i32)` overload"]
503 fn create_anim_set_for_viewer_preview(self, map_distance: impl ::core::convert::Into<i32>) -> () {
504 unsafe {
505 let __receiver = <CharacterAppearance as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
506 ::unity::il2cpp_call!((::unity::module_base()+0x2b0c910usize)as*mut u8,();
507(CharacterAppearance)__receiver,(i32)::core::convert::Into::into(map_distance))
508 }
509 }
510 #[doc = "`GetTall()` overload"]
511 fn get_tall(self) -> f32 {
512 unsafe {
513 let __receiver = <CharacterAppearance as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
514 ::unity::il2cpp_call!((::unity::module_base()+0x2b0cbe0usize)as*mut u8,f32;
515(CharacterAppearance)__receiver)
516 }
517 }
518 #[doc = "`GetBodySize()` overload"]
519 fn get_body_size(self) -> f32 {
520 unsafe {
521 let __receiver = <CharacterAppearance as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
522 ::unity::il2cpp_call!((::unity::module_base()+0x2b0cee0usize)as*mut u8,f32;
523(CharacterAppearance)__receiver)
524 }
525 }
526 #[doc = "`ModifyColors(crate::unity_engine::gameobject::GameObject)` overload"]
527 fn modify_colors(self, go: impl ::core::convert::Into<crate::unity_engine::gameobject::GameObject>) -> () {
528 unsafe {
529 let __receiver = <CharacterAppearance as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
530 ::unity::il2cpp_call!((::unity::module_base()+0x2b0cf90usize)as*mut u8,();
531(CharacterAppearance)__receiver,(crate::unity_engine::gameobject::GameObject)::core::convert::Into::into(go))
532 }
533 }
534 #[doc = "`HasMaterialToModify(::unity::Array<crate::unity_engine::material::Material>)` overload"]
535 fn has_material_to_modify(self, mats: impl ::core::convert::Into<::unity::Array<crate::unity_engine::material::Material>>) -> bool {
536 unsafe {
537 let __receiver = <CharacterAppearance as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
538 ::unity::il2cpp_call!((::unity::module_base()+0x2b0d8b0usize)as*mut u8,bool;
539(CharacterAppearance)__receiver,(::unity::Array<crate::unity_engine::material::Material>)::core::convert::Into::into(mats))
540 }
541 }
542 #[doc = "`DestroyInstancedMaterials()` overload"]
543 fn destroy_instanced_materials(self) -> () {
544 unsafe {
545 let __receiver = <CharacterAppearance as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
546 ::unity::il2cpp_call!((::unity::module_base()+0x2b0be60usize)as*mut u8,();
547(CharacterAppearance)__receiver)
548 }
549 }
550 #[doc = "`Verification(::unity::Il2CppString)` overload"]
551 fn verification(self, title: impl ::core::convert::Into<::unity::Il2CppString>) -> () {
552 unsafe {
553 let __receiver = <CharacterAppearance as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
554 ::unity::il2cpp_call!((::unity::module_base()+0x2b004b0usize)as*mut u8,();
555(CharacterAppearance)__receiver,(::unity::Il2CppString)::core::convert::Into::into(title))
556 }
557 }
558 #[doc = "`SerializeToString()` overload"]
559 fn serialize_to_string(self) -> ::unity::Il2CppString {
560 unsafe {
561 let __receiver = <CharacterAppearance as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
562 ::unity::il2cpp_call!((::unity::module_base()+0x2b0dde0usize)as*mut u8, ::unity::Il2CppString;
563(CharacterAppearance)__receiver)
564 }
565 }
566 #[doc = "`DeserializeFromString(::unity::Il2CppString)` overload"]
567 fn deserialize_from_string(self, contents: impl ::core::convert::Into<::unity::Il2CppString>) -> () {
568 unsafe {
569 let __receiver = <CharacterAppearance as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
570 ::unity::il2cpp_call!((::unity::module_base()+0x2b0e4d0usize)as*mut u8,();
571(CharacterAppearance)__receiver,(::unity::Il2CppString)::core::convert::Into::into(contents))
572 }
573 }
574 #[doc = "`CalcWeaponStyle(i32)` overload"]
575 fn calc_weapon_style(self, map_distance: impl ::core::convert::Into<i32>) -> crate::combat::weaponstyle::WeaponStyle {
576 unsafe {
577 let __receiver = <CharacterAppearance as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
578 ::unity::il2cpp_call!((::unity::module_base()+0x2b0ca30usize)as*mut u8,crate::combat::weaponstyle::WeaponStyle;
579(CharacterAppearance)__receiver,(i32)::core::convert::Into::into(map_distance))
580 }
581 }
582}
583
584#[cfg(feature = "combat-characterappearance")]
585impl<__T: ICharacterAppearance> ICharacterAppearanceMethods for __T {}
586
587#[cfg(feature = "combat-characterappearance")]
588impl CharacterAppearance {
589 pub fn op_implicit_method_info() -> &'static ::unity::il2cpp::MethodInfo {
590 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
591 }
592
593 pub fn get_anim_set_method_info() -> &'static ::unity::il2cpp::MethodInfo {
594 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
595 }
596
597 pub fn set_anim_set_method_info() -> &'static ::unity::il2cpp::MethodInfo {
598 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
599 }
600
601 pub fn get_weapon_style_method_info() -> &'static ::unity::il2cpp::MethodInfo {
602 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
603 }
604
605 pub fn set_weapon_style_method_info() -> &'static ::unity::il2cpp::MethodInfo {
606 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
607 }
608
609 pub fn get_item_method_info() -> &'static ::unity::il2cpp::MethodInfo {
610 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
611 }
612
613 pub fn get_item_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
614 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
615 }
616
617 pub fn get_acc_targets_method_info() -> &'static ::unity::il2cpp::MethodInfo {
618 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
619 }
620
621 pub fn get_race_method_info() -> &'static ::unity::il2cpp::MethodInfo {
622 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
623 }
624
625 pub fn get_is_ride_method_info() -> &'static ::unity::il2cpp::MethodInfo {
626 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
627 }
628
629 pub fn get_is_flying_method_info() -> &'static ::unity::il2cpp::MethodInfo {
630 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
631 }
632
633 pub fn get_is_corrupt_animal_method_info() -> &'static ::unity::il2cpp::MethodInfo {
634 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[11]
635 }
636
637 pub fn get_is_big_dragon_method_info() -> &'static ::unity::il2cpp::MethodInfo {
638 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[12]
639 }
640
641 pub fn get_is_wyrm_method_info() -> &'static ::unity::il2cpp::MethodInfo {
642 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[13]
643 }
644
645 pub fn get_is_brawl_method_info() -> &'static ::unity::il2cpp::MethodInfo {
646 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[14]
647 }
648
649 pub fn get_has_rod_method_info() -> &'static ::unity::il2cpp::MethodInfo {
650 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[15]
651 }
652
653 pub fn get_main_hand_model_method_info() -> &'static ::unity::il2cpp::MethodInfo {
654 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[16]
655 }
656
657 pub fn get_is_high_class_method_info() -> &'static ::unity::il2cpp::MethodInfo {
658 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[17]
659 }
660
661 pub fn get_is異形_method_info() -> &'static ::unity::il2cpp::MethodInfo {
662 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[18]
663 }
664
665 pub fn get_is_last_boss_method_info() -> &'static ::unity::il2cpp::MethodInfo {
666 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[19]
667 }
668
669 pub fn get_backward_cancel_position_method_info() -> &'static ::unity::il2cpp::MethodInfo {
670 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[20]
671 }
672
673 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
674 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[21]
675 }
676
677 pub fn ctor_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
678 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[22]
679 }
680
681 pub fn dispose_method_info() -> &'static ::unity::il2cpp::MethodInfo {
682 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[23]
683 }
684
685 pub fn finalize_method_info() -> &'static ::unity::il2cpp::MethodInfo {
686 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[24]
687 }
688
689 pub fn set_default_name_method_info() -> &'static ::unity::il2cpp::MethodInfo {
690 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[25]
691 }
692
693 pub fn dump_method_info() -> &'static ::unity::il2cpp::MethodInfo {
694 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[26]
695 }
696
697 pub fn load_async_method_info() -> &'static ::unity::il2cpp::MethodInfo {
698 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[27]
699 }
700
701 pub fn load_anim_set_async_method_info() -> &'static ::unity::il2cpp::MethodInfo {
702 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[28]
703 }
704
705 pub fn is_loading_method_info() -> &'static ::unity::il2cpp::MethodInfo {
706 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[29]
707 }
708
709 pub fn replace_body_anim_for_editor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
710 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[31]
711 }
712
713 pub fn create_anim_set_for_viewer_preview_method_info() -> &'static ::unity::il2cpp::MethodInfo {
714 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[32]
715 }
716
717 pub fn get_tall_method_info() -> &'static ::unity::il2cpp::MethodInfo {
718 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[33]
719 }
720
721 pub fn get_body_size_method_info() -> &'static ::unity::il2cpp::MethodInfo {
722 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[34]
723 }
724
725 pub fn modify_colors_method_info() -> &'static ::unity::il2cpp::MethodInfo {
726 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[35]
727 }
728
729 pub fn has_material_to_modify_method_info() -> &'static ::unity::il2cpp::MethodInfo {
730 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[36]
731 }
732
733 pub fn destroy_instanced_materials_method_info() -> &'static ::unity::il2cpp::MethodInfo {
734 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[37]
735 }
736
737 pub fn verification_method_info() -> &'static ::unity::il2cpp::MethodInfo {
738 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[38]
739 }
740
741 pub fn serialize_to_string_method_info() -> &'static ::unity::il2cpp::MethodInfo {
742 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[39]
743 }
744
745 pub fn deserialize_from_string_method_info() -> &'static ::unity::il2cpp::MethodInfo {
746 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[40]
747 }
748
749 pub fn create_from_game_status_method_info() -> &'static ::unity::il2cpp::MethodInfo {
750 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[41]
751 }
752
753 pub fn create_for_sound_method_info() -> &'static ::unity::il2cpp::MethodInfo {
754 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[42]
755 }
756
757 pub fn create_from_god_unit_method_info() -> &'static ::unity::il2cpp::MethodInfo {
758 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[43]
759 }
760
761 pub fn create_from_preset_method_info() -> &'static ::unity::il2cpp::MethodInfo {
762 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[44]
763 }
764
765 pub fn get_constions_method_info() -> &'static ::unity::il2cpp::MethodInfo {
766 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[45]
767 }
768
769 pub fn create_from_result_method_info() -> &'static ::unity::il2cpp::MethodInfo {
770 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[46]
771 }
772
773 pub fn calc_weapon_style_method_info() -> &'static ::unity::il2cpp::MethodInfo {
774 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[47]
775 }
776
777 pub fn is_same_character_method_info() -> &'static ::unity::il2cpp::MethodInfo {
778 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[48]
779 }
780
781 pub fn cctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
782 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[49]
783 }
784}
785
786#[cfg(feature = "combat-characterappearance")]
787impl CharacterAppearance {
788 #[doc = "Direct (non-virtual) call to `CharacterAppearance`'s own `Dispose`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
789 pub unsafe fn dispose(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
790 let __mi = Self::dispose_method_info();
791 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
792 __inner(this.into(), ::core::option::Option::None)
793 }
794
795 #[doc = "Direct (non-virtual) call to `CharacterAppearance`'s own `Finalize`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
796 pub unsafe fn finalize(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
797 let __mi = Self::finalize_method_info();
798 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
799 __inner(this.into(), ::core::option::Option::None)
800 }
801}
802
803#[cfg(feature = "combat-characterappearance")]
804impl CharacterAppearance {
805 #[doc = "`.ctor()` — no args"]
806 pub fn new() -> Self {
807 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
808 panic!(
809 "{}
810::{}
811 failed to instantiate",
812 ::core::stringify!(CharacterAppearance),
813 ::core::stringify!(new),
814 )
815 });
816 <Self as ICharacterAppearanceMethods>::ctor(this);
817 this
818 }
819
820 #[doc = "`.ctor(crate::combat::characterappearance::CharacterAppearance, crate::combat::weaponstyle::WeaponStyle)` — overload selector"]
821 pub fn new_2(rhs: crate::combat::characterappearance::CharacterAppearance, weapon_style: crate::combat::weaponstyle::WeaponStyle) -> Self {
822 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
823 panic!(
824 "{}
825::{}
826 failed to instantiate",
827 ::core::stringify!(CharacterAppearance),
828 ::core::stringify!(new_2),
829 )
830 });
831 <Self as ICharacterAppearanceMethods>::ctor_2(this, rhs, weapon_style);
832 this
833 }
834}
835
836#[cfg(feature = "combat-characterappearance")]
837#[doc(hidden)]
838pub mod prelude {
839 pub use super::{CharacterAppearance, ICharacterAppearance, ICharacterAppearanceMethods};
840 pub use crate::system::object::IObject;
841 #[cfg(feature = "system-object")]
842 pub use crate::system::object::IObjectMethods;
843}