Skip to main content

engage/generated/app/
unitmodel.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "app-unitmodel-types")]
4mod __types {
5    #[allow(unused_imports)] use ::unity::prelude::*;
6
7    use super::*;
8    use crate::{
9        system::{
10            object::{IObject, Object},
11            r#enum::{Enum, IEnum},
12            valuetype::{IValueType, ValueType},
13        },
14        unity_engine::{
15            behaviour::{Behaviour, IBehaviour},
16            component::{Component, IComponent},
17            monobehaviour::{IMonoBehaviour, MonoBehaviour},
18            object_2::{IObject_2, Object_2},
19        },
20    };
21
22    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/unitmodel/UnitModel_DirtyFlags.md"))]
23    #[repr(C)]
24    #[derive(::core::clone::Clone, ::core::marker::Copy, ::core::fmt::Debug, ::core::cmp::PartialEq, ::core::cmp::Eq)]
25    pub struct UnitModel_DirtyFlags {
26        pub value: i32,
27    }
28    impl ::unity::ClassIdentity for UnitModel_DirtyFlags {
29        const NAME: &'static str = "UnitModel.DirtyFlags";
30        const NAMESPACE: &'static str = "App";
31
32        fn class() -> ::unity::Class {
33            static CACHE: ::std::sync::OnceLock<::unity::Class> = ::std::sync::OnceLock::new();
34            *CACHE.get_or_init(|| ::unity::Class::lookup(Self::NAMESPACE, Self::NAME))
35        }
36    }
37    impl ::unity::IlType for UnitModel_DirtyFlags {
38        fn il_type() -> &'static ::unity::il2cpp::Il2CppType {
39            &<Self as ::unity::ClassIdentity>::class().raw()._1.byval_arg
40        }
41    }
42    impl UnitModel_DirtyFlags {
43        pub fn speed() -> Self {
44            Self { value: 1 }
45        }
46
47        pub fn animation() -> Self {
48            Self { value: 2 }
49        }
50
51        pub fn renderer() -> Self {
52            Self { value: 4 }
53        }
54
55        pub fn shine() -> Self {
56            Self { value: 8 }
57        }
58
59        pub fn alpha() -> Self {
60            Self { value: 16 }
61        }
62
63        pub fn bright() -> Self {
64            Self { value: 32 }
65        }
66    }
67
68    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/unitmodel/UnitModel.md"))]
69    #[::unity::class(namespace = "App", name = "UnitModel")]
70    #[parent(crate::unity_engine::monobehaviour::MonoBehaviour)]
71    pub struct UnitModel {
72        #[offset(24)]
73        #[rename(name = "m_Unit")]
74        pub m_unit: crate::app::unit::Unit,
75        #[offset(32)]
76        #[rename(name = "m_GodUnit")]
77        pub m_god_unit: crate::app::godunit::GodUnit,
78        #[offset(40)]
79        #[rename(name = "m_HandleA")]
80        pub m_handle_a: crate::app::unitmodel::UnitModel_ResourceHandle,
81        #[offset(48)]
82        #[rename(name = "m_HandleB")]
83        pub m_handle_b: crate::app::unitmodel::UnitModel_ResourceHandle,
84        #[offset(56)]
85        #[rename(name = "m_Handle")]
86        pub m_handle: crate::app::unitmodel::UnitModel_ResourceHandle,
87        #[offset(64)]
88        #[rename(name = "m_Materials")]
89        pub m_materials: crate::system::collections::generic::list_1::List_1<crate::unity_engine::material::Material>,
90        #[offset(72)]
91        #[rename(name = "m_Renderers")]
92        pub m_renderers: crate::system::collections::generic::list_1::List_1<crate::unity_engine::renderer::Renderer>,
93        #[offset(80)]
94        #[rename(name = "m_HairColor")]
95        pub m_hair_color: crate::unity_engine::color::Color,
96        #[offset(96)]
97        #[rename(name = "m_SkinColor")]
98        pub m_skin_color: crate::unity_engine::color::Color,
99        #[offset(112)]
100        #[rename(name = "m_MaskColor100")]
101        pub m_mask_color100: crate::unity_engine::color::Color,
102        #[offset(128)]
103        #[rename(name = "m_MaskColor075")]
104        pub m_mask_color075: crate::unity_engine::color::Color,
105        #[offset(144)]
106        #[rename(name = "m_MaskColor050")]
107        pub m_mask_color050: crate::unity_engine::color::Color,
108        #[offset(160)]
109        #[rename(name = "m_MaskColor025")]
110        pub m_mask_color025: crate::unity_engine::color::Color,
111        #[offset(176)]
112        #[rename(name = "m_Root")]
113        pub m_root: crate::unity_engine::gameobject::GameObject,
114        #[offset(184)]
115        #[rename(name = "m_RootScale")]
116        pub m_root_scale: crate::unity_engine::vector3::Vector3,
117        #[offset(196)]
118        #[rename(name = "m_WingScale")]
119        pub m_wing_scale: crate::unity_engine::vector3::Vector3,
120        #[offset(208)]
121        #[rename(name = "m_LoadMode")]
122        pub m_load_mode: crate::app::unitmodel::UnitModel_LoadMode,
123        #[offset(216)]
124        #[rename(name = "m_Joint")]
125        pub m_joint: crate::combat::characterjoint::CharacterJoint,
126        #[offset(224)]
127        #[rename(name = "m_ProportionParameters")]
128        pub m_proportion_parameters: crate::combat::proportionparameters::ProportionParameters,
129        #[offset(232)]
130        #[rename(name = "m_LeftHandObject")]
131        pub m_left_hand_object: crate::unity_engine::gameobject::GameObject,
132        #[offset(240)]
133        #[rename(name = "m_RightHandObject")]
134        pub m_right_hand_object: crate::unity_engine::gameobject::GameObject,
135        #[offset(248)]
136        #[rename(name = "m_SkinQuality")]
137        pub m_skin_quality: crate::unity_engine::skinquality::SkinQuality,
138        #[offset(256)]
139        #[rename(name = "m_SkinnedMeshRenderers")]
140        pub m_skinned_mesh_renderers: ::unity::Array<crate::unity_engine::skinnedmeshrenderer::SkinnedMeshRenderer>,
141        #[offset(264)]
142        #[rename(name = "m_Animators")]
143        pub m_animators: ::unity::Array<crate::unity_engine::animator::Animator>,
144        #[offset(272)]
145        #[rename(name = "m_PlayAnim")]
146        pub m_play_anim: crate::app::unitanim::UnitAnim_Types,
147        #[offset(276)]
148        #[rename(name = "m_IdleAnim")]
149        pub m_idle_anim: crate::app::unitanim::UnitAnim_Types,
150        #[offset(280)]
151        #[rename(name = "m_PlayTime")]
152        pub m_play_time: crate::app::unitanim::UnitAnim_Times,
153        #[offset(288)]
154        #[rename(name = "m_EquipItem")]
155        pub m_equip_item: crate::app::itemdata::ItemData,
156        #[offset(296)]
157        #[rename(name = "m_ForceItem")]
158        pub m_force_item: crate::app::itemdata::ItemData,
159        #[offset(304)]
160        #[rename(name = "m_ModelHash")]
161        pub m_model_hash: i32,
162        #[offset(308)]
163        #[rename(name = "m_EquipHash")]
164        pub m_equip_hash: i32,
165        #[offset(312)]
166        #[rename(name = "m_Speed")]
167        pub m_speed: f32,
168        #[offset(316)]
169        #[rename(name = "m_Alpha")]
170        pub m_alpha: f32,
171        #[offset(320)]
172        #[rename(name = "m_MapAlpha")]
173        pub m_map_alpha: f32,
174        #[offset(324)]
175        #[rename(name = "m_IsVisible")]
176        pub m_is_visible: bool,
177        #[offset(328)]
178        #[rename(name = "m_ColorFlags")]
179        pub m_color_flags: crate::app::unitmodel::UnitModel_ColorFlags,
180        #[offset(332)]
181        #[rename(name = "m_DirtyFlags")]
182        pub m_dirty_flags: crate::app::unitmodel::UnitModel_DirtyFlags,
183        #[offset(336)]
184        #[rename(name = "m_InterpolatorShine")]
185        pub m_interpolator_shine: crate::app::interpolatorfloat::InterpolatorFloat,
186        #[offset(344)]
187        #[rename(name = "m_InterpolatorFader")]
188        pub m_interpolator_fader: crate::app::interpolatorfloat::InterpolatorFloat,
189        #[offset(352)]
190        #[rename(name = "m_InterpolatorGoder")]
191        pub m_interpolator_goder: crate::app::interpolatorfloat::InterpolatorFloat,
192        #[offset(360)]
193        #[rename(name = "m_Head")]
194        pub m_head: crate::unity_engine::gameobject::GameObject,
195        #[offset(368)]
196        #[rename(name = "m_Body")]
197        pub m_body: crate::unity_engine::gameobject::GameObject,
198        #[offset(376)]
199        #[rename(name = "m_Ride")]
200        pub m_ride: crate::unity_engine::gameobject::GameObject,
201        #[offset(384)]
202        #[rename(name = "m_WingL")]
203        pub m_wing_l: crate::unity_engine::transform::Transform,
204        #[offset(392)]
205        #[rename(name = "m_WingR")]
206        pub m_wing_r: crate::unity_engine::transform::Transform,
207        #[offset(400)]
208        #[rename(name = "m_Trans")]
209        pub m_trans: crate::unity_engine::transform::Transform,
210        #[offset(408)]
211        #[rename(name = "m_Sound")]
212        pub m_sound: crate::app::assettable::AssetTable_Sound,
213    }
214
215    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/unitmodel/UnitModel_LoadMode.md"))]
216    #[repr(C)]
217    #[derive(::core::clone::Clone, ::core::marker::Copy, ::core::fmt::Debug, ::core::cmp::PartialEq, ::core::cmp::Eq)]
218    pub struct UnitModel_LoadMode {
219        pub value: i32,
220    }
221    impl ::unity::ClassIdentity for UnitModel_LoadMode {
222        const NAME: &'static str = "UnitModel.LoadMode";
223        const NAMESPACE: &'static str = "App";
224
225        fn class() -> ::unity::Class {
226            static CACHE: ::std::sync::OnceLock<::unity::Class> = ::std::sync::OnceLock::new();
227            *CACHE.get_or_init(|| ::unity::Class::lookup(Self::NAMESPACE, Self::NAME))
228        }
229    }
230    impl ::unity::IlType for UnitModel_LoadMode {
231        fn il_type() -> &'static ::unity::il2cpp::Il2CppType {
232            &<Self as ::unity::ClassIdentity>::class().raw()._1.byval_arg
233        }
234    }
235    impl UnitModel_LoadMode {
236        pub fn none() -> Self {
237            Self { value: 0 }
238        }
239
240        pub fn loading() -> Self {
241            Self { value: 1 }
242        }
243
244        pub fn done() -> Self {
245            Self { value: 2 }
246        }
247    }
248
249    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/unitmodel/UnitModel_ResourceHandle.md"))]
250    #[::unity::class(namespace = "App", name = "UnitModel.ResourceHandle")]
251    #[parent(crate::system::object::Object)]
252    pub struct UnitModel_ResourceHandle {
253        #[offset(16)]
254        #[rename(name = "BodyPrefab")]
255        pub body_prefab: crate::app::resourcegameobject::ResourceGameObject,
256        #[offset(24)]
257        #[rename(name = "HeadPrefab")]
258        pub head_prefab: crate::app::resourcegameobject::ResourceGameObject,
259        #[offset(32)]
260        #[rename(name = "RidePrefab")]
261        pub ride_prefab: crate::app::resourcegameobject::ResourceGameObject,
262        #[offset(40)]
263        #[rename(name = "LeftHandPrefab")]
264        pub left_hand_prefab: crate::app::resourcegameobject::ResourceGameObject,
265        #[offset(48)]
266        #[rename(name = "RightHandPrefab")]
267        pub right_hand_prefab: crate::app::resourcegameobject::ResourceGameObject,
268        #[offset(56)]
269        #[rename(name = "BodyAnim")]
270        pub body_anim: crate::app::resourceanimatorcontroller::ResourceAnimatorController,
271        #[offset(64)]
272        #[rename(name = "RideAnim")]
273        pub ride_anim: crate::app::resourceanimatorcontroller::ResourceAnimatorController,
274        #[offset(72)]
275        #[rename(name = "AccPrefabs")]
276        pub acc_prefabs: crate::system::collections::generic::list_1::List_1<crate::app::resourcegameobject::ResourceGameObject>,
277        #[offset(80)]
278        #[rename(name = "AccLocators")]
279        pub acc_locators: crate::system::collections::generic::list_1::List_1<::unity::Il2CppString>,
280    }
281
282    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/unitmodel/UnitModel_ColorFlags.md"))]
283    #[repr(C)]
284    #[derive(::core::clone::Clone, ::core::marker::Copy, ::core::fmt::Debug, ::core::cmp::PartialEq, ::core::cmp::Eq)]
285    pub struct UnitModel_ColorFlags {
286        pub value: i32,
287    }
288    impl ::unity::ClassIdentity for UnitModel_ColorFlags {
289        const NAME: &'static str = "UnitModel.ColorFlags";
290        const NAMESPACE: &'static str = "App";
291
292        fn class() -> ::unity::Class {
293            static CACHE: ::std::sync::OnceLock<::unity::Class> = ::std::sync::OnceLock::new();
294            *CACHE.get_or_init(|| ::unity::Class::lookup(Self::NAMESPACE, Self::NAME))
295        }
296    }
297    impl ::unity::IlType for UnitModel_ColorFlags {
298        fn il_type() -> &'static ::unity::il2cpp::Il2CppType {
299            &<Self as ::unity::ClassIdentity>::class().raw()._1.byval_arg
300        }
301    }
302    impl UnitModel_ColorFlags {
303        pub fn fixed() -> Self {
304            Self { value: 1 }
305        }
306
307        pub fn danager() -> Self {
308            Self { value: 2 }
309        }
310
311        pub fn enemy() -> Self {
312            Self { value: 4 }
313        }
314
315        pub fn ally() -> Self {
316            Self { value: 8 }
317        }
318
319        pub fn dirty() -> Self {
320            Self { value: 16 }
321        }
322    }
323}
324
325#[cfg(feature = "app-unitmodel-types")]
326pub use __types::*;
327
328#[cfg(feature = "app-unitmodel")]
329impl UnitModel {
330    #[doc = "`Create(::unity::Il2CppString, crate::app::unit::Unit, crate::app::godunit::GodUnit, crate::unity_engine::gameobject::GameObject)` overload"]
331    pub fn create(
332        name: impl ::core::convert::Into<::unity::Il2CppString>,
333        unit: impl ::core::convert::Into<crate::app::unit::Unit>,
334        god_unit: impl ::core::convert::Into<crate::app::godunit::GodUnit>,
335        parent: impl ::core::convert::Into<crate::unity_engine::gameobject::GameObject>,
336    ) -> crate::app::unitmodel::UnitModel {
337        unsafe {
338            ::unity::il2cpp_call!((::unity::module_base()+0x1fbb490usize)as*mut u8,crate::app::unitmodel::UnitModel;
339(::unity::Il2CppString)::core::convert::Into::into(name),(crate::app::unit::Unit)::core::convert::Into::into(unit),(crate::app::godunit::GodUnit)::core::convert::Into::into(god_unit),(crate::unity_engine::gameobject::GameObject)::core::convert::Into::into(parent))
340        }
341    }
342
343    #[doc = "`GetRelativePath(crate::unity_engine::transform::Transform, crate::unity_engine::transform::Transform)` overload"]
344    pub fn get_relative_path(
345        root: impl ::core::convert::Into<crate::unity_engine::transform::Transform>,
346        transform: impl ::core::convert::Into<crate::unity_engine::transform::Transform>,
347    ) -> ::unity::Il2CppString {
348        unsafe {
349            ::unity::il2cpp_call!((::unity::module_base()+0x1fbd990usize)as*mut u8, ::unity::Il2CppString;
350(crate::unity_engine::transform::Transform)::core::convert::Into::into(root),(crate::unity_engine::transform::Transform)::core::convert::Into::into(transform))
351        }
352    }
353
354    #[doc = "`GetFolderName(::unity::Il2CppString)` overload"]
355    pub fn get_folder_name(name: impl ::core::convert::Into<::unity::Il2CppString>) -> ::unity::Il2CppString {
356        unsafe {
357            ::unity::il2cpp_call!((::unity::module_base()+0x1fbdd00usize)as*mut u8, ::unity::Il2CppString;
358(::unity::Il2CppString)::core::convert::Into::into(name))
359        }
360    }
361
362    #[doc = "`GetAssetPath(::unity::Il2CppString, ::unity::Il2CppString, ::unity::Array<::unity::Il2CppString>)` overload"]
363    pub fn get_asset_path(
364        root: impl ::core::convert::Into<::unity::Il2CppString>,
365        name: impl ::core::convert::Into<::unity::Il2CppString>,
366        subs: impl ::core::convert::Into<::unity::Array<::unity::Il2CppString>>,
367    ) -> ::unity::Il2CppString {
368        unsafe {
369            ::unity::il2cpp_call!((::unity::module_base()+0x1fbdec0usize)as*mut u8, ::unity::Il2CppString;
370(::unity::Il2CppString)::core::convert::Into::into(root),(::unity::Il2CppString)::core::convert::Into::into(name),(::unity::Array< ::unity::Il2CppString>)::core::convert::Into::into(subs))
371        }
372    }
373
374    #[doc = "`GetFooter(::unity::Il2CppString)` overload"]
375    pub fn get_footer(name: impl ::core::convert::Into<::unity::Il2CppString>) -> ::unity::Il2CppString {
376        unsafe {
377            ::unity::il2cpp_call!((::unity::module_base()+0x1fbe090usize)as*mut u8, ::unity::Il2CppString;
378(::unity::Il2CppString)::core::convert::Into::into(name))
379        }
380    }
381
382    #[doc = "`HeadFolder(::unity::Il2CppString)` overload"]
383    pub fn head_folder(name: impl ::core::convert::Into<::unity::Il2CppString>) -> ::unity::Il2CppString {
384        unsafe {
385            ::unity::il2cpp_call!((::unity::module_base()+0x1fbe110usize)as*mut u8, ::unity::Il2CppString;
386(::unity::Il2CppString)::core::convert::Into::into(name))
387        }
388    }
389
390    #[doc = "`BodyFolder(::unity::Il2CppString)` overload"]
391    pub fn body_folder(name: impl ::core::convert::Into<::unity::Il2CppString>) -> ::unity::Il2CppString {
392        unsafe {
393            ::unity::il2cpp_call!((::unity::module_base()+0x1fbe260usize)as*mut u8, ::unity::Il2CppString;
394(::unity::Il2CppString)::core::convert::Into::into(name))
395        }
396    }
397
398    #[doc = "`AccFolder(::unity::Il2CppString)` overload"]
399    pub fn acc_folder(name: impl ::core::convert::Into<::unity::Il2CppString>) -> ::unity::Il2CppString {
400        unsafe {
401            ::unity::il2cpp_call!((::unity::module_base()+0x1fbe3b0usize)as*mut u8, ::unity::Il2CppString;
402(::unity::Il2CppString)::core::convert::Into::into(name))
403        }
404    }
405
406    #[doc = "`GetMapAlpha()` overload"]
407    pub fn get_map_alpha() -> f32 {
408        unsafe {
409            ::unity::il2cpp_call!((::unity::module_base()+0x1fbf4f0usize)as*mut u8,f32;
410            )
411        }
412    }
413
414    #[doc = "`GetItemKind(crate::app::itemdata::ItemData)` overload"]
415    pub fn get_item_kind(item: impl ::core::convert::Into<crate::app::itemdata::ItemData>) -> crate::app::itemdata::ItemData_Kinds {
416        unsafe {
417            ::unity::il2cpp_call!((::unity::module_base()+0x1fc03a0usize)as*mut u8,crate::app::itemdata::ItemData_Kinds;
418(crate::app::itemdata::ItemData)::core::convert::Into::into(item))
419        }
420    }
421}
422
423#[cfg(feature = "app-unitmodel")]
424pub trait IUnitModelMethods: IUnitModel {
425    #[doc = "`get_ModelHash()` overload"]
426    fn get_model_hash(self) -> i32 {
427        unsafe {
428            let __receiver = <UnitModel as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
429            ::unity::il2cpp_call!((::unity::module_base()+0x1fbb460usize)as*mut u8,i32;
430(UnitModel)__receiver)
431        }
432    }
433    #[doc = "`get_EquipHash()` overload"]
434    fn get_equip_hash(self) -> i32 {
435        unsafe {
436            let __receiver = <UnitModel as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
437            ::unity::il2cpp_call!((::unity::module_base()+0x1fbb470usize)as*mut u8,i32;
438(UnitModel)__receiver)
439        }
440    }
441    #[doc = "`get_ProportionParameters()` overload"]
442    fn get_proportion_parameters(self) -> crate::combat::proportionparameters::ProportionParameters {
443        unsafe {
444            let __receiver = <UnitModel as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
445            ::unity::il2cpp_call!((::unity::module_base()+0x1fbb480usize)as*mut u8,crate::combat::proportionparameters::ProportionParameters;
446(UnitModel)__receiver)
447        }
448    }
449    #[doc = "`get_Sound()` overload"]
450    fn get_sound(self) -> crate::app::assettable::AssetTable_Sound {
451        unsafe {
452            let __receiver = <UnitModel as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
453            ::unity::il2cpp_call!((::unity::module_base()+0x1fbb700usize)as*mut u8,crate::app::assettable::AssetTable_Sound;
454(UnitModel)__receiver)
455        }
456    }
457    #[doc = "`get_IsVisible()` overload"]
458    fn get_is_visible(self) -> bool {
459        unsafe {
460            let __receiver = <UnitModel as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
461            ::unity::il2cpp_call!((::unity::module_base()+0x1fbb720usize)as*mut u8,bool;
462(UnitModel)__receiver)
463        }
464    }
465    #[doc = "`get_Head()` overload"]
466    fn get_head(self) -> crate::unity_engine::gameobject::GameObject {
467        unsafe {
468            let __receiver = <UnitModel as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
469            ::unity::il2cpp_call!((::unity::module_base()+0x1fbb730usize)as*mut u8,crate::unity_engine::gameobject::GameObject;
470(UnitModel)__receiver)
471        }
472    }
473    #[doc = "`get_Body()` overload"]
474    fn get_body(self) -> crate::unity_engine::gameobject::GameObject {
475        unsafe {
476            let __receiver = <UnitModel as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
477            ::unity::il2cpp_call!((::unity::module_base()+0x1fbb740usize)as*mut u8,crate::unity_engine::gameobject::GameObject;
478(UnitModel)__receiver)
479        }
480    }
481    #[doc = "`get_Ride()` overload"]
482    fn get_ride(self) -> crate::unity_engine::gameobject::GameObject {
483        unsafe {
484            let __receiver = <UnitModel as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
485            ::unity::il2cpp_call!((::unity::module_base()+0x1fbb750usize)as*mut u8,crate::unity_engine::gameobject::GameObject;
486(UnitModel)__receiver)
487        }
488    }
489    #[doc = "`FindObject(::unity::Il2CppString)` overload"]
490    fn find_object(self, name: impl ::core::convert::Into<::unity::Il2CppString>) -> crate::unity_engine::gameobject::GameObject {
491        unsafe {
492            let __receiver = <UnitModel as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
493            ::unity::il2cpp_call!((::unity::module_base()+0x1fbb760usize)as*mut u8,crate::unity_engine::gameobject::GameObject;
494(UnitModel)__receiver,(::unity::Il2CppString)::core::convert::Into::into(name))
495        }
496    }
497    #[doc = "`GetAlpha()` overload"]
498    fn get_alpha(self) -> f32 {
499        unsafe {
500            let __receiver = <UnitModel as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
501            ::unity::il2cpp_call!((::unity::module_base()+0x1fbb7f0usize)as*mut u8,f32;
502(UnitModel)__receiver)
503        }
504    }
505    #[doc = "`Initialize(crate::app::unit::Unit, crate::app::godunit::GodUnit)` overload"]
506    fn initialize(
507        self,
508        unit: impl ::core::convert::Into<crate::app::unit::Unit>,
509        god_unit: impl ::core::convert::Into<crate::app::godunit::GodUnit>,
510    ) -> () {
511        unsafe {
512            let __receiver = <UnitModel as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
513            ::unity::il2cpp_call!((::unity::module_base()+0x1fbb670usize)as*mut u8,();
514(UnitModel)__receiver,(crate::app::unit::Unit)::core::convert::Into::into(unit),(crate::app::godunit::GodUnit)::core::convert::Into::into(god_unit))
515        }
516    }
517    #[doc = "`BrightOn()` overload"]
518    fn bright_on(self) -> () {
519        unsafe {
520            let __receiver = <UnitModel as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
521            ::unity::il2cpp_call!((::unity::module_base()+0x1fbb800usize)as*mut u8,();
522(UnitModel)__receiver)
523        }
524    }
525    #[doc = "`BrightOff()` overload"]
526    fn bright_off(self) -> () {
527        unsafe {
528            let __receiver = <UnitModel as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
529            ::unity::il2cpp_call!((::unity::module_base()+0x1fbb850usize)as*mut u8,();
530(UnitModel)__receiver)
531        }
532    }
533    #[doc = "`Shine(f32)` overload"]
534    fn shine(self, time: impl ::core::convert::Into<f32>) -> () {
535        unsafe {
536            let __receiver = <UnitModel as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
537            ::unity::il2cpp_call!((::unity::module_base()+0x1fbb8a0usize)as*mut u8,();
538(UnitModel)__receiver,(f32)::core::convert::Into::into(time))
539        }
540    }
541    #[doc = "`FadeIn(f32)` overload"]
542    fn fade_in(self, time: impl ::core::convert::Into<f32>) -> () {
543        unsafe {
544            let __receiver = <UnitModel as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
545            ::unity::il2cpp_call!((::unity::module_base()+0x1fbb8f0usize)as*mut u8,();
546(UnitModel)__receiver,(f32)::core::convert::Into::into(time))
547        }
548    }
549    #[doc = "`FadeOut(f32)` overload"]
550    fn fade_out(self, time: impl ::core::convert::Into<f32>) -> () {
551        unsafe {
552            let __receiver = <UnitModel as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
553            ::unity::il2cpp_call!((::unity::module_base()+0x1fbb930usize)as*mut u8,();
554(UnitModel)__receiver,(f32)::core::convert::Into::into(time))
555        }
556    }
557    #[doc = "`GodChange(f32, f32, ::unity::Il2CppString)` overload"]
558    fn god_change(
559        self,
560        time: impl ::core::convert::Into<f32>,
561        alpha: impl ::core::convert::Into<f32>,
562        name: impl ::core::convert::Into<::unity::Il2CppString>,
563    ) -> () {
564        unsafe {
565            let __receiver = <UnitModel as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
566            ::unity::il2cpp_call!((::unity::module_base()+0x1fbb970usize)as*mut u8,();
567(UnitModel)__receiver,(f32)::core::convert::Into::into(time),(f32)::core::convert::Into::into(alpha),(::unity::Il2CppString)::core::convert::Into::into(name))
568        }
569    }
570    #[doc = "`GodIn(f32)` overload"]
571    fn god_in(self, time: impl ::core::convert::Into<f32>) -> () {
572        unsafe {
573            let __receiver = <UnitModel as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
574            ::unity::il2cpp_call!((::unity::module_base()+0x1fbba80usize)as*mut u8,();
575(UnitModel)__receiver,(f32)::core::convert::Into::into(time))
576        }
577    }
578    #[doc = "`GodOut(f32)` overload"]
579    fn god_out(self, time: impl ::core::convert::Into<f32>) -> () {
580        unsafe {
581            let __receiver = <UnitModel as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
582            ::unity::il2cpp_call!((::unity::module_base()+0x1fbbaf0usize)as*mut u8,();
583(UnitModel)__receiver,(f32)::core::convert::Into::into(time))
584        }
585    }
586    #[doc = "`SetMaterialFloat(::unity::Il2CppString, f32)` overload"]
587    fn set_material_float(self, name: impl ::core::convert::Into<::unity::Il2CppString>, value: impl ::core::convert::Into<f32>) -> () {
588        unsafe {
589            let __receiver = <UnitModel as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
590            ::unity::il2cpp_call!((::unity::module_base()+0x1fbbb60usize)as*mut u8,();
591(UnitModel)__receiver,(::unity::Il2CppString)::core::convert::Into::into(name),(f32)::core::convert::Into::into(value))
592        }
593    }
594    #[doc = "`SetMaterialColor(::unity::Il2CppString, crate::unity_engine::color::Color)` overload"]
595    fn set_material_color(
596        self,
597        name: impl ::core::convert::Into<::unity::Il2CppString>,
598        color: impl ::core::convert::Into<crate::unity_engine::color::Color>,
599    ) -> () {
600        unsafe {
601            let __receiver = <UnitModel as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
602            ::unity::il2cpp_call!((::unity::module_base()+0x1fbbcd0usize)as*mut u8,();
603(UnitModel)__receiver,(::unity::Il2CppString)::core::convert::Into::into(name),(crate::unity_engine::color::Color)::core::convert::Into::into(color))
604        }
605    }
606    #[doc = "`SetMaterialColor(::unity::Il2CppString, ::unity::Il2CppString, crate::unity_engine::color::Color)` overload"]
607    fn set_material_color_2(
608        self,
609        material: impl ::core::convert::Into<::unity::Il2CppString>,
610        name: impl ::core::convert::Into<::unity::Il2CppString>,
611        color: impl ::core::convert::Into<crate::unity_engine::color::Color>,
612    ) -> () {
613        unsafe {
614            let __receiver = <UnitModel as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
615            ::unity::il2cpp_call!((::unity::module_base()+0x1fbbe60usize)as*mut u8,();
616(UnitModel)__receiver,(::unity::Il2CppString)::core::convert::Into::into(material),(::unity::Il2CppString)::core::convert::Into::into(name),(crate::unity_engine::color::Color)::core::convert::Into::into(color))
617        }
618    }
619    #[doc = "`SetMaterialAlpha(f32)` overload"]
620    fn set_material_alpha(self, alpha: impl ::core::convert::Into<f32>) -> () {
621        unsafe {
622            let __receiver = <UnitModel as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
623            ::unity::il2cpp_call!((::unity::module_base()+0x1fbc020usize)as*mut u8,();
624(UnitModel)__receiver,(f32)::core::convert::Into::into(alpha))
625        }
626    }
627    #[doc = "`CommitModel()` overload"]
628    fn commit_model(self) -> () {
629        unsafe {
630            let __receiver = <UnitModel as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
631            ::unity::il2cpp_call!((::unity::module_base()+0x1fbc110usize)as*mut u8,();
632(UnitModel)__receiver)
633        }
634    }
635    #[doc = "`CommitRenader()` overload"]
636    fn commit_renader(self) -> () {
637        unsafe {
638            let __receiver = <UnitModel as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
639            ::unity::il2cpp_call!((::unity::module_base()+0x1fbcf10usize)as*mut u8,();
640(UnitModel)__receiver)
641        }
642    }
643    #[doc = "`CommitAccSkin(crate::unity_engine::transform::Transform, crate::unity_engine::gameobject::GameObject)` overload"]
644    fn commit_acc_skin(
645        self,
646        root: impl ::core::convert::Into<crate::unity_engine::transform::Transform>,
647        acc: impl ::core::convert::Into<crate::unity_engine::gameobject::GameObject>,
648    ) -> () {
649        unsafe {
650            let __receiver = <UnitModel as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
651            ::unity::il2cpp_call!((::unity::module_base()+0x1fbc9d0usize)as*mut u8,();
652(UnitModel)__receiver,(crate::unity_engine::transform::Transform)::core::convert::Into::into(root),(crate::unity_engine::gameobject::GameObject)::core::convert::Into::into(acc))
653        }
654    }
655    #[doc = "`SetAnimatorController(crate::unity_engine::gameobject::GameObject, crate::unity_engine::runtimeanimatorcontroller::RuntimeAnimatorController)` overload"]
656    fn set_animator_controller(
657        self,
658        go: impl ::core::convert::Into<crate::unity_engine::gameobject::GameObject>,
659        controller: impl ::core::convert::Into<crate::unity_engine::runtimeanimatorcontroller::RuntimeAnimatorController>,
660    ) -> () {
661        unsafe {
662            let __receiver = <UnitModel as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
663            ::unity::il2cpp_call!((::unity::module_base()+0x1fbce40usize)as*mut u8,();
664(UnitModel)__receiver,(crate::unity_engine::gameobject::GameObject)::core::convert::Into::into(go),(crate::unity_engine::runtimeanimatorcontroller::RuntimeAnimatorController)::core::convert::Into::into(controller))
665        }
666    }
667    #[doc = "`GetAnimator(crate::unity_engine::gameobject::GameObject)` overload"]
668    fn get_animator(self, go: impl ::core::convert::Into<crate::unity_engine::gameobject::GameObject>) -> crate::unity_engine::animator::Animator {
669        unsafe {
670            let __receiver = <UnitModel as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
671            ::unity::il2cpp_call!((::unity::module_base()+0x1fbdb00usize)as*mut u8,crate::unity_engine::animator::Animator;
672(UnitModel)__receiver,(crate::unity_engine::gameobject::GameObject)::core::convert::Into::into(go))
673        }
674    }
675    #[doc = "`GetAnimatorController(crate::unity_engine::gameobject::GameObject)` overload"]
676    fn get_animator_controller(
677        self,
678        go: impl ::core::convert::Into<crate::unity_engine::gameobject::GameObject>,
679    ) -> crate::unity_engine::runtimeanimatorcontroller::RuntimeAnimatorController {
680        unsafe {
681            let __receiver = <UnitModel as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
682            ::unity::il2cpp_call!((::unity::module_base()+0x1fbdc60usize)as*mut u8,crate::unity_engine::runtimeanimatorcontroller::RuntimeAnimatorController;
683(UnitModel)__receiver,(crate::unity_engine::gameobject::GameObject)::core::convert::Into::into(go))
684        }
685    }
686    #[doc = "`Swap()` overload"]
687    fn swap(self) -> () {
688        unsafe {
689            let __receiver = <UnitModel as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
690            ::unity::il2cpp_call!((::unity::module_base()+0x1fbe4e0usize)as*mut u8,();
691(UnitModel)__receiver)
692        }
693    }
694    #[doc = "`LoadAsync(crate::app::assettable::AssetTable_Result)` overload"]
695    fn load_async(self, result: impl ::core::convert::Into<crate::app::assettable::AssetTable_Result>) -> bool {
696        unsafe {
697            let __receiver = <UnitModel as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
698            ::unity::il2cpp_call!((::unity::module_base()+0x1fbe510usize)as*mut u8,bool;
699(UnitModel)__receiver,(crate::app::assettable::AssetTable_Result)::core::convert::Into::into(result))
700        }
701    }
702    #[doc = "`LoadAsync(::unity::Il2CppString)` overload"]
703    fn load_async_2(self, name: impl ::core::convert::Into<::unity::Il2CppString>) -> () {
704        unsafe {
705            let __receiver = <UnitModel as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
706            ::unity::il2cpp_call!((::unity::module_base()+0x1fbea40usize)as*mut u8,();
707(UnitModel)__receiver,(::unity::Il2CppString)::core::convert::Into::into(name))
708        }
709    }
710    #[doc = "`TryDestroy(*mutcrate::unity_engine::gameobject::GameObject)` overload"]
711    fn try_destroy(self) -> (bool, crate::unity_engine::gameobject::GameObject) {
712        unsafe {
713            let __receiver = <UnitModel as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
714            let mut __out_0 = ::core::mem::MaybeUninit::<crate::unity_engine::gameobject::GameObject>::uninit();
715            let __ret = {
716                ::unity::il2cpp_call!((::unity::module_base()+0x1fbea70usize)as*mut u8,bool;
717(UnitModel)__receiver,(*mut crate::unity_engine::gameobject::GameObject)__out_0.as_mut_ptr())
718            };
719            (__ret, __out_0.assume_init())
720        }
721    }
722    #[doc = "`.ctor()` overload"]
723    fn ctor(self) -> () {
724        unsafe {
725            let __receiver = <UnitModel as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
726            ::unity::il2cpp_call!((::unity::module_base()+0x1fbec60usize)as*mut u8,();
727(UnitModel)__receiver)
728        }
729    }
730    #[doc = "`OnDestroy()` overload"]
731    fn on_destroy(self) -> () {
732        unsafe {
733            let __receiver = <UnitModel as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
734            ::unity::il2cpp_call!((::unity::module_base()+0x1fbef00usize)as*mut u8,();
735(UnitModel)__receiver)
736        }
737    }
738    #[doc = "`Unload()` overload"]
739    fn unload(self) -> () {
740        unsafe {
741            let __receiver = <UnitModel as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
742            ::unity::il2cpp_call!((::unity::module_base()+0x1fbe6d0usize)as*mut u8,();
743(UnitModel)__receiver)
744        }
745    }
746    #[doc = "`IsLoading()` overload"]
747    fn is_loading(self) -> bool {
748        unsafe {
749            let __receiver = <UnitModel as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
750            ::unity::il2cpp_call!((::unity::module_base()+0x1fbef40usize)as*mut u8,bool;
751(UnitModel)__receiver)
752        }
753    }
754    #[doc = "`UpdateLoading()` overload"]
755    fn update_loading(self) -> () {
756        unsafe {
757            let __receiver = <UnitModel as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
758            ::unity::il2cpp_call!((::unity::module_base()+0x1fbef60usize)as*mut u8,();
759(UnitModel)__receiver)
760        }
761    }
762    #[doc = "`UpdateVisible()` overload"]
763    fn update_visible(self) -> () {
764        unsafe {
765            let __receiver = <UnitModel as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
766            ::unity::il2cpp_call!((::unity::module_base()+0x1fbefb0usize)as*mut u8,();
767(UnitModel)__receiver)
768        }
769    }
770    #[doc = "`UpdateVisible(bool)` overload"]
771    fn update_visible_2(self, visible: impl ::core::convert::Into<bool>) -> () {
772        unsafe {
773            let __receiver = <UnitModel as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
774            ::unity::il2cpp_call!((::unity::module_base()+0x1fbd820usize)as*mut u8,();
775(UnitModel)__receiver,(bool)::core::convert::Into::into(visible))
776        }
777    }
778    #[doc = "`TickColor()` overload"]
779    fn tick_color(self) -> () {
780        unsafe {
781            let __receiver = <UnitModel as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
782            ::unity::il2cpp_call!((::unity::module_base()+0x1fbf070usize)as*mut u8,();
783(UnitModel)__receiver)
784        }
785    }
786    #[doc = "`UpdateColor()` overload"]
787    fn update_color(self) -> () {
788        unsafe {
789            let __receiver = <UnitModel as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
790            ::unity::il2cpp_call!((::unity::module_base()+0x1fbf550usize)as*mut u8,();
791(UnitModel)__receiver)
792        }
793    }
794    #[doc = "`CommitColor(crate::app::unitmodel::UnitModel_ColorFlags)` overload"]
795    fn commit_color(self, flags: impl ::core::convert::Into<crate::app::unitmodel::UnitModel_ColorFlags>) -> () {
796        unsafe {
797            let __receiver = <UnitModel as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
798            ::unity::il2cpp_call!((::unity::module_base()+0x1fbd360usize)as*mut u8,();
799(UnitModel)__receiver,(crate::app::unitmodel::UnitModel_ColorFlags)::core::convert::Into::into(flags))
800        }
801    }
802    #[doc = "`UpdateDirty()` overload"]
803    fn update_dirty(self) -> () {
804        unsafe {
805            let __receiver = <UnitModel as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
806            ::unity::il2cpp_call!((::unity::module_base()+0x1fbf780usize)as*mut u8,();
807(UnitModel)__receiver)
808        }
809    }
810    #[doc = "`UpdateWeight()` overload"]
811    fn update_weight(self) -> () {
812        unsafe {
813            let __receiver = <UnitModel as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
814            ::unity::il2cpp_call!((::unity::module_base()+0x1fbf7c0usize)as*mut u8,();
815(UnitModel)__receiver)
816        }
817    }
818    #[doc = "`PreTick()` overload"]
819    fn pre_tick(self) -> () {
820        unsafe {
821            let __receiver = <UnitModel as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
822            ::unity::il2cpp_call!((::unity::module_base()+0x1fbf950usize)as*mut u8,();
823(UnitModel)__receiver)
824        }
825    }
826    #[doc = "`PostTick()` overload"]
827    fn post_tick(self) -> () {
828        unsafe {
829            let __receiver = <UnitModel as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
830            ::unity::il2cpp_call!((::unity::module_base()+0x1fbfe00usize)as*mut u8,();
831(UnitModel)__receiver)
832        }
833    }
834    #[doc = "`GetAnim()` overload"]
835    fn get_anim(self) -> crate::app::unitanim::UnitAnim_Types {
836        unsafe {
837            let __receiver = <UnitModel as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
838            ::unity::il2cpp_call!((::unity::module_base()+0x1fbfe20usize)as*mut u8,crate::app::unitanim::UnitAnim_Types;
839(UnitModel)__receiver)
840        }
841    }
842    #[doc = "`GetIdleAnim()` overload"]
843    fn get_idle_anim(self) -> crate::app::unitanim::UnitAnim_Types {
844        unsafe {
845            let __receiver = <UnitModel as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
846            ::unity::il2cpp_call!((::unity::module_base()+0x1fbfe30usize)as*mut u8,crate::app::unitanim::UnitAnim_Types;
847(UnitModel)__receiver)
848        }
849    }
850    #[doc = "`SetIdleAnim(crate::app::unitanim::UnitAnim_Types, crate::app::unitanim::UnitAnim_Times)` overload"]
851    fn set_idle_anim(
852        self,
853        r#type: impl ::core::convert::Into<crate::app::unitanim::UnitAnim_Types>,
854        time: impl ::core::convert::Into<crate::app::unitanim::UnitAnim_Times>,
855    ) -> () {
856        unsafe {
857            let __receiver = <UnitModel as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
858            ::unity::il2cpp_call!((::unity::module_base()+0x1fbfe40usize)as*mut u8,();
859(UnitModel)__receiver,(crate::app::unitanim::UnitAnim_Types)::core::convert::Into::into(r#type),(crate::app::unitanim::UnitAnim_Times)::core::convert::Into::into(time))
860        }
861    }
862    #[doc = "`SetIdleAnim(crate::app::unitsequence::UnitSequence_Action, crate::app::unitanim::UnitAnim_Times)` overload"]
863    fn set_idle_anim_2(
864        self,
865        action: impl ::core::convert::Into<crate::app::unitsequence::UnitSequence_Action>,
866        time: impl ::core::convert::Into<crate::app::unitanim::UnitAnim_Times>,
867    ) -> () {
868        unsafe {
869            let __receiver = <UnitModel as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
870            ::unity::il2cpp_call!((::unity::module_base()+0x1fc0010usize)as*mut u8,();
871(UnitModel)__receiver,(crate::app::unitsequence::UnitSequence_Action)::core::convert::Into::into(action),(crate::app::unitanim::UnitAnim_Times)::core::convert::Into::into(time))
872        }
873    }
874    #[doc = "`PlayIdle(crate::app::unitanim::UnitAnim_Times)` overload"]
875    fn play_idle(self, time: impl ::core::convert::Into<crate::app::unitanim::UnitAnim_Times>) -> () {
876        unsafe {
877            let __receiver = <UnitModel as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
878            ::unity::il2cpp_call!((::unity::module_base()+0x1fbff60usize)as*mut u8,();
879(UnitModel)__receiver,(crate::app::unitanim::UnitAnim_Times)::core::convert::Into::into(time))
880        }
881    }
882    #[doc = "`PlayAnim(crate::app::unitanim::UnitAnim_Types, crate::app::unitanim::UnitAnim_Times)` overload"]
883    fn play_anim(
884        self,
885        r#type: impl ::core::convert::Into<crate::app::unitanim::UnitAnim_Types>,
886        time: impl ::core::convert::Into<crate::app::unitanim::UnitAnim_Times>,
887    ) -> () {
888        unsafe {
889            let __receiver = <UnitModel as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
890            ::unity::il2cpp_call!((::unity::module_base()+0x1fc0020usize)as*mut u8,();
891(UnitModel)__receiver,(crate::app::unitanim::UnitAnim_Types)::core::convert::Into::into(r#type),(crate::app::unitanim::UnitAnim_Times)::core::convert::Into::into(time))
892        }
893    }
894    #[doc = "`Instantiate(crate::unity_engine::gameobject::GameObject, ::unity::Il2CppString)` overload"]
895    fn instantiate(
896        self,
897        go: impl ::core::convert::Into<crate::unity_engine::gameobject::GameObject>,
898        name: impl ::core::convert::Into<::unity::Il2CppString>,
899    ) -> crate::unity_engine::gameobject::GameObject {
900        unsafe {
901            let __receiver = <UnitModel as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
902            ::unity::il2cpp_call!((::unity::module_base()+0x1fc00d0usize)as*mut u8,crate::unity_engine::gameobject::GameObject;
903(UnitModel)__receiver,(crate::unity_engine::gameobject::GameObject)::core::convert::Into::into(go),(::unity::Il2CppString)::core::convert::Into::into(name))
904        }
905    }
906    #[doc = "`InstantiateLeftWeapon(crate::unity_engine::gameobject::GameObject)` overload"]
907    fn instantiate_left_weapon(self, go: impl ::core::convert::Into<crate::unity_engine::gameobject::GameObject>) -> () {
908        unsafe {
909            let __receiver = <UnitModel as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
910            ::unity::il2cpp_call!((::unity::module_base()+0x1fc0260usize)as*mut u8,();
911(UnitModel)__receiver,(crate::unity_engine::gameobject::GameObject)::core::convert::Into::into(go))
912        }
913    }
914    #[doc = "`InstantiateRightWeapon(crate::unity_engine::gameobject::GameObject)` overload"]
915    fn instantiate_right_weapon(self, go: impl ::core::convert::Into<crate::unity_engine::gameobject::GameObject>) -> () {
916        unsafe {
917            let __receiver = <UnitModel as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
918            ::unity::il2cpp_call!((::unity::module_base()+0x1fc0300usize)as*mut u8,();
919(UnitModel)__receiver,(crate::unity_engine::gameobject::GameObject)::core::convert::Into::into(go))
920        }
921    }
922    #[doc = "`UpdateWeapon(crate::app::itemdata::ItemData)` overload"]
923    fn update_weapon(self, equip_item: impl ::core::convert::Into<crate::app::itemdata::ItemData>) -> () {
924        unsafe {
925            let __receiver = <UnitModel as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
926            ::unity::il2cpp_call!((::unity::module_base()+0x1fc03b0usize)as*mut u8,();
927(UnitModel)__receiver,(crate::app::itemdata::ItemData)::core::convert::Into::into(equip_item))
928        }
929    }
930    #[doc = "`GetAnimator()` overload"]
931    fn get_animator_2(self) -> crate::unity_engine::animator::Animator {
932        unsafe {
933            let __receiver = <UnitModel as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
934            ::unity::il2cpp_call!((::unity::module_base()+0x1fc0920usize)as*mut u8,crate::unity_engine::animator::Animator;
935(UnitModel)__receiver)
936        }
937    }
938    #[doc = "`UpdateAnim()` overload"]
939    fn update_anim(self) -> () {
940        unsafe {
941            let __receiver = <UnitModel as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
942            ::unity::il2cpp_call!((::unity::module_base()+0x1fbfb20usize)as*mut u8,();
943(UnitModel)__receiver)
944        }
945    }
946    #[doc = "`SetForceItem(crate::app::itemdata::ItemData)` overload"]
947    fn set_force_item(self, item: impl ::core::convert::Into<crate::app::itemdata::ItemData>) -> () {
948        unsafe {
949            let __receiver = <UnitModel as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
950            ::unity::il2cpp_call!((::unity::module_base()+0x1fc0960usize)as*mut u8,();
951(UnitModel)__receiver,(crate::app::itemdata::ItemData)::core::convert::Into::into(item))
952        }
953    }
954    #[doc = "`UpdateSpeed()` overload"]
955    fn update_speed(self) -> () {
956        unsafe {
957            let __receiver = <UnitModel as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
958            ::unity::il2cpp_call!((::unity::module_base()+0x1fbfd50usize)as*mut u8,();
959(UnitModel)__receiver)
960        }
961    }
962    #[doc = "`SetSpeed(f32)` overload"]
963    fn set_speed(self, speed: impl ::core::convert::Into<f32>) -> () {
964        unsafe {
965            let __receiver = <UnitModel as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
966            ::unity::il2cpp_call!((::unity::module_base()+0x1fc0970usize)as*mut u8,();
967(UnitModel)__receiver,(f32)::core::convert::Into::into(speed))
968        }
969    }
970    #[doc = "`GetSpeed()` overload"]
971    fn get_speed(self) -> f32 {
972        unsafe {
973            let __receiver = <UnitModel as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
974            ::unity::il2cpp_call!((::unity::module_base()+0x1fc0990usize)as*mut u8,f32;
975(UnitModel)__receiver)
976        }
977    }
978    #[doc = "`CommitProportion()` overload"]
979    fn commit_proportion(self) -> () {
980        unsafe {
981            let __receiver = <UnitModel as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
982            ::unity::il2cpp_call!((::unity::module_base()+0x1fbd140usize)as*mut u8,();
983(UnitModel)__receiver)
984        }
985    }
986    #[doc = "`GetAnimators()` overload"]
987    fn get_animators(self) -> ::unity::Array<crate::unity_engine::animator::Animator> {
988        unsafe {
989            let __receiver = <UnitModel as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
990            ::unity::il2cpp_call!((::unity::module_base()+0x1fc09a0usize)as*mut u8, ::unity::Array<crate::unity_engine::animator::Animator> ;
991(UnitModel)__receiver)
992        }
993    }
994    #[doc = "`OnGameColorValidate()` overload"]
995    fn on_game_color_validate(self) -> () {
996        unsafe {
997            let __receiver = <UnitModel as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
998            {
999                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
1000                let __vi = *__vt.get(4usize).unwrap_or_else(|| {
1001                    panic!(
1002                        "unity: virtual slot {}
1003 out of range (vtable len {}
1004) on the runtime class behind {}
1005 (method `{}
1006`)",
1007                        4usize,
1008                        __vt.len(),
1009                        <UnitModel as ::unity::ClassIdentity>::NAME,
1010                        "OnGameColorValidate",
1011                    )
1012                });
1013                let __inner: extern "C" fn(UnitModel, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
1014                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
1015                __inner(__receiver, __mi)
1016            }
1017        }
1018    }
1019    #[doc = "`GetEffectPosition()` overload"]
1020    fn get_effect_position(self) -> crate::unity_engine::vector3::Vector3 {
1021        unsafe {
1022            let __receiver = <UnitModel as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
1023            ::unity::il2cpp_call!((::unity::module_base()+0x1fc09c0usize)as*mut u8,crate::unity_engine::vector3::Vector3;
1024(UnitModel)__receiver)
1025        }
1026    }
1027}
1028
1029#[cfg(feature = "app-unitmodel")]
1030impl<__T: IUnitModel> IUnitModelMethods for __T {}
1031
1032#[cfg(feature = "app-unitmodel")]
1033impl UnitModel {
1034    pub fn get_model_hash_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1035        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
1036    }
1037
1038    pub fn get_equip_hash_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1039        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
1040    }
1041
1042    pub fn get_proportion_parameters_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1043        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
1044    }
1045
1046    pub fn create_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1047        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
1048    }
1049
1050    pub fn get_sound_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1051        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
1052    }
1053
1054    pub fn get_is_visible_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1055        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
1056    }
1057
1058    pub fn get_head_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1059        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
1060    }
1061
1062    pub fn get_body_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1063        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
1064    }
1065
1066    pub fn get_ride_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1067        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
1068    }
1069
1070    pub fn find_object_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1071        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
1072    }
1073
1074    pub fn get_alpha_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1075        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
1076    }
1077
1078    pub fn initialize_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1079        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[11]
1080    }
1081
1082    pub fn bright_on_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1083        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[12]
1084    }
1085
1086    pub fn bright_off_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1087        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[13]
1088    }
1089
1090    pub fn shine_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1091        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[14]
1092    }
1093
1094    pub fn fade_in_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1095        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[15]
1096    }
1097
1098    pub fn fade_out_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1099        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[16]
1100    }
1101
1102    pub fn god_change_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1103        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[17]
1104    }
1105
1106    pub fn god_in_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1107        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[18]
1108    }
1109
1110    pub fn god_out_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1111        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[19]
1112    }
1113
1114    pub fn set_material_float_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1115        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[20]
1116    }
1117
1118    pub fn set_material_color_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1119        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[21]
1120    }
1121
1122    pub fn set_material_color_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1123        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[22]
1124    }
1125
1126    pub fn set_material_alpha_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1127        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[23]
1128    }
1129
1130    pub fn commit_model_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1131        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[24]
1132    }
1133
1134    pub fn commit_renader_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1135        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[25]
1136    }
1137
1138    pub fn get_relative_path_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1139        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[26]
1140    }
1141
1142    pub fn commit_acc_skin_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1143        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[27]
1144    }
1145
1146    pub fn set_animator_controller_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1147        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[28]
1148    }
1149
1150    pub fn get_animator_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1151        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[29]
1152    }
1153
1154    pub fn get_animator_controller_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1155        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[30]
1156    }
1157
1158    pub fn get_folder_name_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1159        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[31]
1160    }
1161
1162    pub fn get_asset_path_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1163        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[32]
1164    }
1165
1166    pub fn get_footer_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1167        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[33]
1168    }
1169
1170    pub fn head_folder_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1171        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[34]
1172    }
1173
1174    pub fn body_folder_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1175        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[35]
1176    }
1177
1178    pub fn acc_folder_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1179        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[36]
1180    }
1181
1182    pub fn swap_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1183        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[37]
1184    }
1185
1186    pub fn load_async_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1187        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[38]
1188    }
1189
1190    pub fn load_async_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1191        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[39]
1192    }
1193
1194    pub fn try_destroy_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1195        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[40]
1196    }
1197
1198    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1199        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[41]
1200    }
1201
1202    pub fn on_destroy_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1203        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[42]
1204    }
1205
1206    pub fn unload_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1207        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[43]
1208    }
1209
1210    pub fn is_loading_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1211        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[44]
1212    }
1213
1214    pub fn update_loading_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1215        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[45]
1216    }
1217
1218    pub fn update_visible_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1219        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[46]
1220    }
1221
1222    pub fn update_visible_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1223        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[47]
1224    }
1225
1226    pub fn tick_color_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1227        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[48]
1228    }
1229
1230    pub fn get_map_alpha_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1231        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[49]
1232    }
1233
1234    pub fn update_color_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1235        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[50]
1236    }
1237
1238    pub fn commit_color_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1239        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[51]
1240    }
1241
1242    pub fn update_dirty_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1243        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[52]
1244    }
1245
1246    pub fn update_weight_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1247        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[53]
1248    }
1249
1250    pub fn pre_tick_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1251        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[54]
1252    }
1253
1254    pub fn post_tick_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1255        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[55]
1256    }
1257
1258    pub fn get_anim_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1259        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[56]
1260    }
1261
1262    pub fn get_idle_anim_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1263        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[57]
1264    }
1265
1266    pub fn set_idle_anim_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1267        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[58]
1268    }
1269
1270    pub fn set_idle_anim_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1271        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[59]
1272    }
1273
1274    pub fn play_idle_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1275        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[60]
1276    }
1277
1278    pub fn play_anim_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1279        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[61]
1280    }
1281
1282    pub fn instantiate_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1283        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[62]
1284    }
1285
1286    pub fn instantiate_left_weapon_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1287        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[63]
1288    }
1289
1290    pub fn instantiate_right_weapon_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1291        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[64]
1292    }
1293
1294    pub fn get_item_kind_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1295        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[65]
1296    }
1297
1298    pub fn update_weapon_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1299        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[66]
1300    }
1301
1302    pub fn get_animator_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1303        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[67]
1304    }
1305
1306    pub fn update_anim_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1307        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[68]
1308    }
1309
1310    pub fn set_force_item_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1311        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[69]
1312    }
1313
1314    pub fn update_speed_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1315        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[70]
1316    }
1317
1318    pub fn set_speed_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1319        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[71]
1320    }
1321
1322    pub fn get_speed_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1323        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[72]
1324    }
1325
1326    pub fn commit_proportion_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1327        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[73]
1328    }
1329
1330    pub fn get_animators_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1331        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[74]
1332    }
1333
1334    pub fn on_game_color_validate_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1335        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[75]
1336    }
1337
1338    pub fn get_effect_position_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1339        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[76]
1340    }
1341}
1342
1343#[cfg(feature = "app-unitmodel")]
1344impl UnitModel {
1345    #[doc = "Direct (non-virtual) call to `UnitModel`'s own `OnGameColorValidate`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
1346    pub unsafe fn on_game_color_validate(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
1347        let __mi = Self::on_game_color_validate_method_info();
1348        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
1349        __inner(this.into(), ::core::option::Option::None)
1350    }
1351}
1352
1353#[cfg(feature = "app-unitmodel")]
1354impl UnitModel {
1355    #[doc = "`.ctor()` — no args"]
1356    pub fn new() -> Self {
1357        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
1358            panic!(
1359                "{}
1360::{}
1361 failed to instantiate",
1362                ::core::stringify!(UnitModel),
1363                ::core::stringify!(new),
1364            )
1365        });
1366        <Self as IUnitModelMethods>::ctor(this);
1367        this
1368    }
1369}
1370
1371#[cfg(feature = "app-unitmodel")]
1372pub trait IUnitModel_ResourceHandleMethods: IUnitModel_ResourceHandle {
1373    #[doc = "`Dispose()` overload"]
1374    fn dispose(self) -> () {
1375        unsafe {
1376            let __receiver =
1377                <UnitModel_ResourceHandle as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
1378            {
1379                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
1380                let __vi = *__vt.get(4usize).unwrap_or_else(|| {
1381                    panic!(
1382                        "unity: virtual slot {}
1383 out of range (vtable len {}
1384) on the runtime class behind {}
1385 (method `{}
1386`)",
1387                        4usize,
1388                        __vt.len(),
1389                        <UnitModel_ResourceHandle as ::unity::ClassIdentity>::NAME,
1390                        "Dispose",
1391                    )
1392                });
1393                let __inner: extern "C" fn(UnitModel_ResourceHandle, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
1394                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
1395                __inner(__receiver, __mi)
1396            }
1397        }
1398    }
1399    #[doc = "`LoadAsync(crate::app::assettable::AssetTable_Result)` overload"]
1400    fn load_async(self, result: impl ::core::convert::Into<crate::app::assettable::AssetTable_Result>) -> () {
1401        unsafe {
1402            let __receiver =
1403                <UnitModel_ResourceHandle as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
1404            ::unity::il2cpp_call!((::unity::module_base()+0x1b53660usize)as*mut u8,();
1405(UnitModel_ResourceHandle)__receiver,(crate::app::assettable::AssetTable_Result)::core::convert::Into::into(result))
1406        }
1407    }
1408    #[doc = "`IsLoading()` overload"]
1409    fn is_loading(self) -> bool {
1410        unsafe {
1411            let __receiver =
1412                <UnitModel_ResourceHandle as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
1413            ::unity::il2cpp_call!((::unity::module_base()+0x1b53ef0usize)as*mut u8,bool;
1414(UnitModel_ResourceHandle)__receiver)
1415        }
1416    }
1417    #[doc = "`Release()` overload"]
1418    fn release(self) -> () {
1419        unsafe {
1420            let __receiver =
1421                <UnitModel_ResourceHandle as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
1422            ::unity::il2cpp_call!((::unity::module_base()+0x1b53520usize)as*mut u8,();
1423(UnitModel_ResourceHandle)__receiver)
1424        }
1425    }
1426    #[doc = "`.ctor()` overload"]
1427    fn ctor(self) -> () {
1428        unsafe {
1429            let __receiver =
1430                <UnitModel_ResourceHandle as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
1431            ::unity::il2cpp_call!((::unity::module_base()+0x1b54060usize)as*mut u8,();
1432(UnitModel_ResourceHandle)__receiver)
1433        }
1434    }
1435}
1436
1437#[cfg(feature = "app-unitmodel")]
1438impl<__T: IUnitModel_ResourceHandle> IUnitModel_ResourceHandleMethods for __T {}
1439
1440#[cfg(feature = "app-unitmodel")]
1441impl UnitModel_ResourceHandle {
1442    pub fn dispose_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1443        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
1444    }
1445
1446    pub fn load_async_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1447        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
1448    }
1449
1450    pub fn is_loading_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1451        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
1452    }
1453
1454    pub fn release_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1455        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
1456    }
1457
1458    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1459        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
1460    }
1461}
1462
1463#[cfg(feature = "app-unitmodel")]
1464impl UnitModel_ResourceHandle {
1465    #[doc = "Direct (non-virtual) call to `UnitModel_ResourceHandle`'s own `Dispose`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
1466    pub unsafe fn dispose(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
1467        let __mi = Self::dispose_method_info();
1468        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
1469        __inner(this.into(), ::core::option::Option::None)
1470    }
1471}
1472
1473#[cfg(feature = "app-unitmodel")]
1474impl UnitModel_ResourceHandle {
1475    #[doc = "`.ctor()` — no args"]
1476    pub fn new() -> Self {
1477        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
1478            panic!(
1479                "{}
1480::{}
1481 failed to instantiate",
1482                ::core::stringify!(UnitModel_ResourceHandle),
1483                ::core::stringify!(new),
1484            )
1485        });
1486        <Self as IUnitModel_ResourceHandleMethods>::ctor(this);
1487        this
1488    }
1489}
1490
1491#[cfg(feature = "app-unitmodel")]
1492#[doc(hidden)]
1493pub mod prelude {
1494    pub use super::{
1495        IUnitModel, IUnitModelMethods, IUnitModel_ResourceHandle, IUnitModel_ResourceHandleMethods, UnitModel, UnitModel_ColorFlags,
1496        UnitModel_DirtyFlags, UnitModel_LoadMode, UnitModel_ResourceHandle,
1497    };
1498    #[cfg(feature = "system-object")]
1499    pub use crate::system::object::IObjectMethods;
1500    #[cfg(feature = "system-enum")]
1501    pub use crate::system::r#enum::IEnumMethods;
1502    #[cfg(feature = "system-valuetype")]
1503    pub use crate::system::valuetype::IValueTypeMethods;
1504    #[cfg(feature = "unity_engine-behaviour")]
1505    pub use crate::unity_engine::behaviour::IBehaviourMethods;
1506    #[cfg(feature = "unity_engine-component")]
1507    pub use crate::unity_engine::component::IComponentMethods;
1508    #[cfg(feature = "unity_engine-monobehaviour")]
1509    pub use crate::unity_engine::monobehaviour::IMonoBehaviourMethods;
1510    #[cfg(feature = "unity_engine-object_2")]
1511    pub use crate::unity_engine::object_2::IObject_2Methods;
1512    pub use crate::{
1513        system::{object::IObject, r#enum::IEnum, valuetype::IValueType},
1514        unity_engine::{behaviour::IBehaviour, component::IComponent, monobehaviour::IMonoBehaviour, object_2::IObject_2},
1515    };
1516}