Skip to main content

engage/generated/app/
weaponmodelmanager.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "app-weaponmodelmanager-types")]
4mod __types {
5    #[allow(unused_imports)] use ::unity::prelude::*;
6
7    use super::*;
8    use crate::{
9        system::object::{IObject, Object},
10        unity_engine::{
11            behaviour::{Behaviour, IBehaviour},
12            component::{Component, IComponent},
13            monobehaviour::{IMonoBehaviour, MonoBehaviour},
14            object_2::{IObject_2, Object_2},
15        },
16    };
17
18    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/weaponmodelmanager/WeaponModelManager.md"))]
19    #[::unity::class(namespace = "App", name = "WeaponModelManager")]
20    #[parent(crate::unity_engine::monobehaviour::MonoBehaviour)]
21    pub struct WeaponModelManager {
22        #[static_field]
23        #[rename(name = "s_AssetTableResult")]
24        pub s_asset_table_result: crate::app::assettable::AssetTable_Result,
25        #[offset(24)]
26        #[rename(name = "m_Resources")]
27        pub m_resources: crate::system::collections::generic::dictionary_2::Dictionary_2<i32, crate::app::resourcegameobject::ResourceGameObject>,
28        #[offset(32)]
29        #[rename(name = "m_GmaeObjects")]
30        pub m_gmae_objects: crate::system::collections::generic::dictionary_2::Dictionary_2<i32, crate::unity_engine::gameobject::GameObject>,
31    }
32}
33
34#[cfg(feature = "app-weaponmodelmanager-types")]
35pub use __types::*;
36
37#[cfg(feature = "app-weaponmodelmanager")]
38impl WeaponModelManager {
39    #[doc = "`.cctor()` overload"]
40    pub fn cctor() -> () {
41        unsafe {
42            ::unity::il2cpp_call!((::unity::module_base()+0x21cb280usize)as*mut u8,();
43            )
44        }
45    }
46}
47
48#[cfg(feature = "app-weaponmodelmanager")]
49pub trait IWeaponModelManagerMethods: IWeaponModelManager {
50    #[doc = "`TryCreateGameObject(i32, ::unity::Il2CppString, ::unity::Il2CppString)` overload"]
51    fn try_create_game_object(
52        self,
53        key: impl ::core::convert::Into<i32>,
54        name: impl ::core::convert::Into<::unity::Il2CppString>,
55        child: impl ::core::convert::Into<::unity::Il2CppString>,
56    ) -> crate::unity_engine::gameobject::GameObject {
57        unsafe {
58            let __receiver = <WeaponModelManager as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
59            ::unity::il2cpp_call!((::unity::module_base()+0x21ca3a0usize)as*mut u8,crate::unity_engine::gameobject::GameObject;
60(WeaponModelManager)__receiver,(i32)::core::convert::Into::into(key),(::unity::Il2CppString)::core::convert::Into::into(name),(::unity::Il2CppString)::core::convert::Into::into(child))
61        }
62    }
63    #[doc = "`Show(::unity::Il2CppString)` overload"]
64    fn show(self, iid: impl ::core::convert::Into<::unity::Il2CppString>) -> () {
65        unsafe {
66            let __receiver = <WeaponModelManager as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
67            ::unity::il2cpp_call!((::unity::module_base()+0x21ca8e0usize)as*mut u8,();
68(WeaponModelManager)__receiver,(::unity::Il2CppString)::core::convert::Into::into(iid))
69        }
70    }
71    #[doc = "`Show(crate::unity_engine::gameobject::GameObject)` overload"]
72    fn show_2(self, root: impl ::core::convert::Into<crate::unity_engine::gameobject::GameObject>) -> () {
73        unsafe {
74            let __receiver = <WeaponModelManager as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
75            ::unity::il2cpp_call!((::unity::module_base()+0x21ca760usize)as*mut u8,();
76(WeaponModelManager)__receiver,(crate::unity_engine::gameobject::GameObject)::core::convert::Into::into(root))
77        }
78    }
79    #[doc = "`Show(crate::app::itemdata::ItemData)` overload"]
80    fn show_3(self, item: impl ::core::convert::Into<crate::app::itemdata::ItemData>) -> () {
81        unsafe {
82            let __receiver = <WeaponModelManager as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
83            ::unity::il2cpp_call!((::unity::module_base()+0x21ca970usize)as*mut u8,();
84(WeaponModelManager)__receiver,(crate::app::itemdata::ItemData)::core::convert::Into::into(item))
85        }
86    }
87    #[doc = "`Hide()` overload"]
88    fn hide(self) -> () {
89        unsafe {
90            let __receiver = <WeaponModelManager as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
91            ::unity::il2cpp_call!((::unity::module_base()+0x21cad80usize)as*mut u8,();
92(WeaponModelManager)__receiver)
93        }
94    }
95    #[doc = "`Clear()` overload"]
96    fn clear(self) -> () {
97        unsafe {
98            let __receiver = <WeaponModelManager as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
99            ::unity::il2cpp_call!((::unity::module_base()+0x21caeb0usize)as*mut u8,();
100(WeaponModelManager)__receiver)
101        }
102    }
103    #[doc = "`OnDestroy()` overload"]
104    fn on_destroy(self) -> () {
105        unsafe {
106            let __receiver = <WeaponModelManager as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
107            ::unity::il2cpp_call!((::unity::module_base()+0x21cb190usize)as*mut u8,();
108(WeaponModelManager)__receiver)
109        }
110    }
111    #[doc = "`.ctor()` overload"]
112    fn ctor(self) -> () {
113        unsafe {
114            let __receiver = <WeaponModelManager as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
115            ::unity::il2cpp_call!((::unity::module_base()+0x21cb1a0usize)as*mut u8,();
116(WeaponModelManager)__receiver)
117        }
118    }
119}
120
121#[cfg(feature = "app-weaponmodelmanager")]
122impl<__T: IWeaponModelManager> IWeaponModelManagerMethods for __T {}
123
124#[cfg(feature = "app-weaponmodelmanager")]
125impl WeaponModelManager {
126    pub fn try_create_game_object_method_info() -> &'static ::unity::il2cpp::MethodInfo {
127        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
128    }
129
130    pub fn show_method_info() -> &'static ::unity::il2cpp::MethodInfo {
131        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
132    }
133
134    pub fn show_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
135        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
136    }
137
138    pub fn show_3_method_info() -> &'static ::unity::il2cpp::MethodInfo {
139        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
140    }
141
142    pub fn hide_method_info() -> &'static ::unity::il2cpp::MethodInfo {
143        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
144    }
145
146    pub fn clear_method_info() -> &'static ::unity::il2cpp::MethodInfo {
147        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
148    }
149
150    pub fn on_destroy_method_info() -> &'static ::unity::il2cpp::MethodInfo {
151        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
152    }
153
154    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
155        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
156    }
157
158    pub fn cctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
159        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
160    }
161}
162
163#[cfg(feature = "app-weaponmodelmanager")]
164impl WeaponModelManager {
165    #[doc = "`.ctor()` — no args"]
166    pub fn new() -> Self {
167        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
168            panic!(
169                "{}
170::{}
171 failed to instantiate",
172                ::core::stringify!(WeaponModelManager),
173                ::core::stringify!(new),
174            )
175        });
176        <Self as IWeaponModelManagerMethods>::ctor(this);
177        this
178    }
179}
180
181#[cfg(feature = "app-weaponmodelmanager")]
182#[doc(hidden)]
183pub mod prelude {
184    pub use super::{IWeaponModelManager, IWeaponModelManagerMethods, WeaponModelManager};
185    #[cfg(feature = "system-object")]
186    pub use crate::system::object::IObjectMethods;
187    #[cfg(feature = "unity_engine-behaviour")]
188    pub use crate::unity_engine::behaviour::IBehaviourMethods;
189    #[cfg(feature = "unity_engine-component")]
190    pub use crate::unity_engine::component::IComponentMethods;
191    #[cfg(feature = "unity_engine-monobehaviour")]
192    pub use crate::unity_engine::monobehaviour::IMonoBehaviourMethods;
193    #[cfg(feature = "unity_engine-object_2")]
194    pub use crate::unity_engine::object_2::IObject_2Methods;
195    pub use crate::{
196        system::object::IObject,
197        unity_engine::{behaviour::IBehaviour, component::IComponent, monobehaviour::IMonoBehaviour, object_2::IObject_2},
198    };
199}