engage/generated/app/
shopweaponmodelrenderer.rs1#[cfg(feature = "app-shopweaponmodelrenderer-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/shopweaponmodelrenderer/ShopWeaponModelRenderer.md"))]
19 #[::unity::class(namespace = "App", name = "ShopWeaponModelRenderer")]
20 #[parent(crate::unity_engine::monobehaviour::MonoBehaviour)]
21 pub struct ShopWeaponModelRenderer {
22 #[static_field]
23 #[rename(name = "PrefabPath")]
24 pub prefab_path: ::unity::Il2CppString,
25 #[offset(24)]
26 #[rename(name = "m_Camera")]
27 pub m_camera: crate::unity_engine::camera::Camera,
28 #[offset(32)]
29 #[rename(name = "m_ModelRoot")]
30 pub m_model_root: crate::unity_engine::gameobject::GameObject,
31 #[offset(40)]
32 #[rename(name = "m_ModelPath")]
33 pub m_model_path: ::unity::Il2CppString,
34 #[offset(48)]
35 #[rename(name = "m_ModelObject")]
36 pub m_model_object: crate::unity_engine::gameobject::GameObject,
37 #[offset(56)]
38 #[rename(name = "m_ModelPathLoading")]
39 pub m_model_path_loading: ::unity::Il2CppString,
40 #[offset(64)]
41 #[rename(name = "m_ItemData")]
42 pub m_item_data: crate::app::itemdata::ItemData,
43 }
44}
45
46#[cfg(feature = "app-shopweaponmodelrenderer-types")]
47pub use __types::*;
48
49#[cfg(feature = "app-shopweaponmodelrenderer")]
50impl ShopWeaponModelRenderer {
51 #[doc = "`LoadPrefabAsync()` overload"]
52 pub fn load_prefab_async() -> () {
53 unsafe {
54 ::unity::il2cpp_call!((::unity::module_base()+0x247ace0usize)as*mut u8,();
55 )
56 }
57 }
58
59 #[doc = "`IsLoadingPrefab()` overload"]
60 pub fn is_loading_prefab() -> bool {
61 unsafe {
62 ::unity::il2cpp_call!((::unity::module_base()+0x247ada0usize)as*mut u8,bool;
63 )
64 }
65 }
66
67 #[doc = "`UnloadPrefab()` overload"]
68 pub fn unload_prefab() -> () {
69 unsafe {
70 ::unity::il2cpp_call!((::unity::module_base()+0x247ae40usize)as*mut u8,();
71 )
72 }
73 }
74
75 #[doc = "`Create()` overload"]
76 pub fn create() -> crate::app::shopweaponmodelrenderer::ShopWeaponModelRenderer {
77 unsafe {
78 ::unity::il2cpp_call!((::unity::module_base()+0x247aee0usize)as*mut u8,crate::app::shopweaponmodelrenderer::ShopWeaponModelRenderer;
79 )
80 }
81 }
82
83 #[doc = "`.cctor()` overload"]
84 pub fn cctor() -> () {
85 unsafe {
86 ::unity::il2cpp_call!((::unity::module_base()+0x247ba70usize)as*mut u8,();
87 )
88 }
89 }
90}
91
92#[cfg(feature = "app-shopweaponmodelrenderer")]
93pub trait IShopWeaponModelRendererMethods: IShopWeaponModelRenderer {
94 #[doc = "`CreateInternal()` overload"]
95 fn create_internal(self) -> () {
96 unsafe {
97 let __receiver =
98 <ShopWeaponModelRenderer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
99 ::unity::il2cpp_call!((::unity::module_base()+0x247b060usize)as*mut u8,();
100(ShopWeaponModelRenderer)__receiver)
101 }
102 }
103 #[doc = "`Destroy()` overload"]
104 fn destroy(self) -> () {
105 unsafe {
106 let __receiver =
107 <ShopWeaponModelRenderer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
108 ::unity::il2cpp_call!((::unity::module_base()+0x247b070usize)as*mut u8,();
109(ShopWeaponModelRenderer)__receiver)
110 }
111 }
112 #[doc = "`GetRenderTexture()` overload"]
113 fn get_render_texture(self) -> crate::unity_engine::rendertexture::RenderTexture {
114 unsafe {
115 let __receiver =
116 <ShopWeaponModelRenderer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
117 ::unity::il2cpp_call!((::unity::module_base()+0x247b140usize)as*mut u8,crate::unity_engine::rendertexture::RenderTexture;
118(ShopWeaponModelRenderer)__receiver)
119 }
120 }
121 #[doc = "`SetWeapon(crate::app::itemdata::ItemData, bool)` overload"]
122 fn set_weapon(
123 self,
124 item_data: impl ::core::convert::Into<crate::app::itemdata::ItemData>,
125 delay_loading: impl ::core::convert::Into<bool>,
126 ) -> () {
127 unsafe {
128 let __receiver =
129 <ShopWeaponModelRenderer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
130 ::unity::il2cpp_call!((::unity::module_base()+0x247b1e0usize)as*mut u8,();
131(ShopWeaponModelRenderer)__receiver,(crate::app::itemdata::ItemData)::core::convert::Into::into(item_data),(bool)::core::convert::Into::into(delay_loading))
132 }
133 }
134 #[doc = "`LoadWeaponModel(crate::app::itemdata::ItemData)` overload"]
135 fn load_weapon_model(self, item_data: impl ::core::convert::Into<crate::app::itemdata::ItemData>) -> () {
136 unsafe {
137 let __receiver =
138 <ShopWeaponModelRenderer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
139 ::unity::il2cpp_call!((::unity::module_base()+0x247b3b0usize)as*mut u8,();
140(ShopWeaponModelRenderer)__receiver,(crate::app::itemdata::ItemData)::core::convert::Into::into(item_data))
141 }
142 }
143 #[doc = "`OnFinishLoadingWeapon(crate::unity_engine::gameobject::GameObject)` overload"]
144 fn on_finish_loading_weapon(self, game_object_in: impl ::core::convert::Into<crate::unity_engine::gameobject::GameObject>) -> () {
145 unsafe {
146 let __receiver =
147 <ShopWeaponModelRenderer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
148 ::unity::il2cpp_call!((::unity::module_base()+0x247b650usize)as*mut u8,();
149(ShopWeaponModelRenderer)__receiver,(crate::unity_engine::gameobject::GameObject)::core::convert::Into::into(game_object_in))
150 }
151 }
152 #[doc = "`RemoveWeapon()` overload"]
153 fn remove_weapon(self) -> () {
154 unsafe {
155 let __receiver =
156 <ShopWeaponModelRenderer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
157 ::unity::il2cpp_call!((::unity::module_base()+0x247b110usize)as*mut u8,();
158(ShopWeaponModelRenderer)__receiver)
159 }
160 }
161 #[doc = "`RemoveWeaponCore()` overload"]
162 fn remove_weapon_core(self) -> () {
163 unsafe {
164 let __receiver =
165 <ShopWeaponModelRenderer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
166 ::unity::il2cpp_call!((::unity::module_base()+0x247b910usize)as*mut u8,();
167(ShopWeaponModelRenderer)__receiver)
168 }
169 }
170 #[doc = "`.ctor()` overload"]
171 fn ctor(self) -> () {
172 unsafe {
173 let __receiver =
174 <ShopWeaponModelRenderer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
175 ::unity::il2cpp_call!((::unity::module_base()+0x247ba60usize)as*mut u8,();
176(ShopWeaponModelRenderer)__receiver)
177 }
178 }
179}
180
181#[cfg(feature = "app-shopweaponmodelrenderer")]
182impl<__T: IShopWeaponModelRenderer> IShopWeaponModelRendererMethods for __T {}
183
184#[cfg(feature = "app-shopweaponmodelrenderer")]
185impl ShopWeaponModelRenderer {
186 pub fn load_prefab_async_method_info() -> &'static ::unity::il2cpp::MethodInfo {
187 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
188 }
189
190 pub fn is_loading_prefab_method_info() -> &'static ::unity::il2cpp::MethodInfo {
191 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
192 }
193
194 pub fn unload_prefab_method_info() -> &'static ::unity::il2cpp::MethodInfo {
195 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
196 }
197
198 pub fn create_method_info() -> &'static ::unity::il2cpp::MethodInfo {
199 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
200 }
201
202 pub fn create_internal_method_info() -> &'static ::unity::il2cpp::MethodInfo {
203 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
204 }
205
206 pub fn destroy_method_info() -> &'static ::unity::il2cpp::MethodInfo {
207 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
208 }
209
210 pub fn get_render_texture_method_info() -> &'static ::unity::il2cpp::MethodInfo {
211 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
212 }
213
214 pub fn set_weapon_method_info() -> &'static ::unity::il2cpp::MethodInfo {
215 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
216 }
217
218 pub fn load_weapon_model_method_info() -> &'static ::unity::il2cpp::MethodInfo {
219 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
220 }
221
222 pub fn on_finish_loading_weapon_method_info() -> &'static ::unity::il2cpp::MethodInfo {
223 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
224 }
225
226 pub fn remove_weapon_method_info() -> &'static ::unity::il2cpp::MethodInfo {
227 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
228 }
229
230 pub fn remove_weapon_core_method_info() -> &'static ::unity::il2cpp::MethodInfo {
231 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[11]
232 }
233
234 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
235 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[12]
236 }
237
238 pub fn cctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
239 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[13]
240 }
241}
242
243#[cfg(feature = "app-shopweaponmodelrenderer")]
244impl ShopWeaponModelRenderer {
245 #[doc = "`.ctor()` — no args"]
246 pub fn new() -> Self {
247 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
248 panic!(
249 "{}
250::{}
251 failed to instantiate",
252 ::core::stringify!(ShopWeaponModelRenderer),
253 ::core::stringify!(new),
254 )
255 });
256 <Self as IShopWeaponModelRendererMethods>::ctor(this);
257 this
258 }
259}
260
261#[cfg(feature = "app-shopweaponmodelrenderer")]
262#[doc(hidden)]
263pub mod prelude {
264 pub use super::{IShopWeaponModelRenderer, IShopWeaponModelRendererMethods, ShopWeaponModelRenderer};
265 #[cfg(feature = "system-object")]
266 pub use crate::system::object::IObjectMethods;
267 #[cfg(feature = "unity_engine-behaviour")]
268 pub use crate::unity_engine::behaviour::IBehaviourMethods;
269 #[cfg(feature = "unity_engine-component")]
270 pub use crate::unity_engine::component::IComponentMethods;
271 #[cfg(feature = "unity_engine-monobehaviour")]
272 pub use crate::unity_engine::monobehaviour::IMonoBehaviourMethods;
273 #[cfg(feature = "unity_engine-object_2")]
274 pub use crate::unity_engine::object_2::IObject_2Methods;
275 pub use crate::{
276 system::object::IObject,
277 unity_engine::{behaviour::IBehaviour, component::IComponent, monobehaviour::IMonoBehaviour, object_2::IObject_2},
278 };
279}