engage/generated/app/
hubeffectcatalog.rs1#[cfg(feature = "app-hubeffectcatalog-types")]
4mod __types {
5 #[allow(unused_imports)] use ::unity::prelude::*;
6
7 use super::*;
8 use crate::{
9 app::singletonmonobehaviour_1::{ISingletonMonoBehaviour_1, SingletonMonoBehaviour_1},
10 system::object::{IObject, Object},
11 unity_engine::{
12 behaviour::{Behaviour, IBehaviour},
13 component::{Component, IComponent},
14 monobehaviour::{IMonoBehaviour, MonoBehaviour},
15 object_2::{IObject_2, Object_2},
16 },
17 };
18
19 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/hubeffectcatalog/HubEffectCatalog.md"))]
20 #[::unity::class(namespace = "App", name = "HubEffectCatalog")]
21 #[parent(crate::app::singletonmonobehaviour_1::SingletonMonoBehaviour_1<crate::app::hubeffectcatalog::HubEffectCatalog>)]
22 pub struct HubEffectCatalog {
23 #[offset(32)]
24 #[rename(name = "EffectPrefab")]
25 pub effect_prefab: ::unity::Array<crate::unity_engine::gameobject::GameObject>,
26 #[offset(40)]
27 #[rename(name = "m_HashTable")]
28 pub m_hash_table: ::unity::Array<i32>,
29 }
30}
31
32#[cfg(feature = "app-hubeffectcatalog-types")]
33pub use __types::*;
34
35#[cfg(feature = "app-hubeffectcatalog")]
36impl HubEffectCatalog {
37 #[doc = "`Contains(::unity::Il2CppString)` overload"]
38 pub fn contains(name: impl ::core::convert::Into<::unity::Il2CppString>) -> bool {
39 unsafe {
40 ::unity::il2cpp_call!((::unity::module_base()+0x2d88f10usize)as*mut u8,bool;
41(::unity::Il2CppString)::core::convert::Into::into(name))
42 }
43 }
44
45 #[doc = "`Create(::unity::Il2CppString, crate::unity_engine::transform::Transform)` overload"]
46 pub fn create(
47 name: impl ::core::convert::Into<::unity::Il2CppString>,
48 parent: impl ::core::convert::Into<crate::unity_engine::transform::Transform>,
49 ) -> crate::unity_engine::gameobject::GameObject {
50 unsafe {
51 ::unity::il2cpp_call!((::unity::module_base()+0x2d890a0usize)as*mut u8,crate::unity_engine::gameobject::GameObject;
52(::unity::Il2CppString)::core::convert::Into::into(name),(crate::unity_engine::transform::Transform)::core::convert::Into::into(parent))
53 }
54 }
55
56 #[doc = "`Create(::unity::Il2CppString, crate::unity_engine::vector3::Vector3)` overload"]
57 pub fn create_2(
58 name: impl ::core::convert::Into<::unity::Il2CppString>,
59 pos: impl ::core::convert::Into<crate::unity_engine::vector3::Vector3>,
60 ) -> crate::unity_engine::gameobject::GameObject {
61 unsafe {
62 ::unity::il2cpp_call!((::unity::module_base()+0x2d89220usize)as*mut u8,crate::unity_engine::gameobject::GameObject;
63(::unity::Il2CppString)::core::convert::Into::into(name),(crate::unity_engine::vector3::Vector3)::core::convert::Into::into(pos))
64 }
65 }
66
67 #[doc = "`Create(::unity::Il2CppString, crate::unity_engine::vector3::Vector3, crate::unity_engine::vector3::Vector3)` overload"]
68 pub fn create_3(
69 name: impl ::core::convert::Into<::unity::Il2CppString>,
70 pos: impl ::core::convert::Into<crate::unity_engine::vector3::Vector3>,
71 dir: impl ::core::convert::Into<crate::unity_engine::vector3::Vector3>,
72 ) -> crate::unity_engine::gameobject::GameObject {
73 unsafe {
74 ::unity::il2cpp_call!((::unity::module_base()+0x2d89300usize)as*mut u8,crate::unity_engine::gameobject::GameObject;
75(::unity::Il2CppString)::core::convert::Into::into(name),(crate::unity_engine::vector3::Vector3)::core::convert::Into::into(pos),(crate::unity_engine::vector3::Vector3)::core::convert::Into::into(dir))
76 }
77 }
78}
79
80#[cfg(feature = "app-hubeffectcatalog")]
81pub trait IHubEffectCatalogMethods: IHubEffectCatalog {
82 #[doc = "`Awake()` overload"]
83 fn awake(self) -> () {
84 unsafe {
85 let __receiver = <HubEffectCatalog as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
86 {
87 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
88 let __vi = *__vt.get(4usize).unwrap_or_else(|| {
89 panic!(
90 "unity: virtual slot {}
91 out of range (vtable len {}
92) on the runtime class behind {}
93 (method `{}
94`)",
95 4usize,
96 __vt.len(),
97 <HubEffectCatalog as ::unity::ClassIdentity>::NAME,
98 "Awake",
99 )
100 });
101 let __inner: extern "C" fn(HubEffectCatalog, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
102 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
103 __inner(__receiver, __mi)
104 }
105 }
106 }
107 #[doc = "`.ctor()` overload"]
108 fn ctor(self) -> () {
109 unsafe {
110 let __receiver = <HubEffectCatalog as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
111 ::unity::il2cpp_call!((::unity::module_base()+0x2d89430usize)as*mut u8,();
112(HubEffectCatalog)__receiver)
113 }
114 }
115}
116
117#[cfg(feature = "app-hubeffectcatalog")]
118impl<__T: IHubEffectCatalog> IHubEffectCatalogMethods for __T {}
119
120#[cfg(feature = "app-hubeffectcatalog")]
121impl HubEffectCatalog {
122 pub fn awake_method_info() -> &'static ::unity::il2cpp::MethodInfo {
123 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
124 }
125
126 pub fn contains_method_info() -> &'static ::unity::il2cpp::MethodInfo {
127 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
128 }
129
130 pub fn create_method_info() -> &'static ::unity::il2cpp::MethodInfo {
131 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
132 }
133
134 pub fn create_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
135 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
136 }
137
138 pub fn create_3_method_info() -> &'static ::unity::il2cpp::MethodInfo {
139 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
140 }
141
142 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
143 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
144 }
145}
146
147#[cfg(feature = "app-hubeffectcatalog")]
148impl HubEffectCatalog {
149 #[doc = "Direct (non-virtual) call to `HubEffectCatalog`'s own `Awake`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
150 pub unsafe fn awake(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
151 let __mi = Self::awake_method_info();
152 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
153 __inner(this.into(), ::core::option::Option::None)
154 }
155}
156
157#[cfg(feature = "app-hubeffectcatalog")]
158impl HubEffectCatalog {
159 #[doc = "`.ctor()` — no args"]
160 pub fn new() -> Self {
161 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
162 panic!(
163 "{}
164::{}
165 failed to instantiate",
166 ::core::stringify!(HubEffectCatalog),
167 ::core::stringify!(new),
168 )
169 });
170 <Self as IHubEffectCatalogMethods>::ctor(this);
171 this
172 }
173}
174
175#[cfg(feature = "app-hubeffectcatalog")]
176#[doc(hidden)]
177pub mod prelude {
178 pub use super::{HubEffectCatalog, IHubEffectCatalog, IHubEffectCatalogMethods};
179 #[cfg(feature = "app-singletonmonobehaviour_1")]
180 pub use crate::app::singletonmonobehaviour_1::ISingletonMonoBehaviour_1Methods;
181 #[cfg(feature = "system-object")]
182 pub use crate::system::object::IObjectMethods;
183 #[cfg(feature = "unity_engine-behaviour")]
184 pub use crate::unity_engine::behaviour::IBehaviourMethods;
185 #[cfg(feature = "unity_engine-component")]
186 pub use crate::unity_engine::component::IComponentMethods;
187 #[cfg(feature = "unity_engine-monobehaviour")]
188 pub use crate::unity_engine::monobehaviour::IMonoBehaviourMethods;
189 #[cfg(feature = "unity_engine-object_2")]
190 pub use crate::unity_engine::object_2::IObject_2Methods;
191 pub use crate::{
192 app::singletonmonobehaviour_1::ISingletonMonoBehaviour_1,
193 system::object::IObject,
194 unity_engine::{behaviour::IBehaviour, component::IComponent, monobehaviour::IMonoBehaviour, object_2::IObject_2},
195 };
196}