Skip to main content

engage/generated/root/
akgameobj.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "root-akgameobj-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/root/akgameobj/AkGameObj.md"))]
19    #[::unity::class(namespace = "", name = "AkGameObj")]
20    #[parent(crate::unity_engine::monobehaviour::MonoBehaviour)]
21    pub struct AkGameObj {
22        #[offset(24)]
23        #[rename(name = "m_listeners")]
24        pub m_listeners: crate::root::akgameobjlistenerlist::AkGameObjListenerList,
25        #[offset(32)]
26        #[rename(name = "isEnvironmentAware")]
27        pub is_environment_aware: bool,
28        #[offset(33)]
29        #[rename(name = "isStaticObject")]
30        pub is_static_object: bool,
31        #[offset(40)]
32        #[rename(name = "m_Collider")]
33        pub m_collider: crate::unity_engine::collider::Collider,
34        #[offset(48)]
35        #[rename(name = "m_envData")]
36        pub m_env_data: crate::root::akgameobjenvironmentdata::AkGameObjEnvironmentData,
37        #[offset(56)]
38        #[rename(name = "m_posData")]
39        pub m_pos_data: crate::root::akgameobjpositiondata::AkGameObjPositionData,
40        #[offset(64)]
41        #[rename(name = "m_positionOffsetData")]
42        pub m_position_offset_data: crate::root::akgameobjpositionoffsetdata::AkGameObjPositionOffsetData,
43        #[offset(72)]
44        #[rename(name = "isRegistered")]
45        pub is_registered: bool,
46        #[offset(80)]
47        #[rename(name = "m_posOffsetData")]
48        pub m_pos_offset_data: crate::root::akgameobjposoffsetdata::AkGameObjPosOffsetData,
49        #[static_field]
50        #[rename(name = "AK_NUM_LISTENERS")]
51        pub ak_num_listeners: i32,
52        #[offset(88)]
53        #[rename(name = "listenerMask")]
54        pub listener_mask: i32,
55    }
56}
57
58#[cfg(feature = "root-akgameobj-types")]
59pub use __types::*;
60
61#[cfg(feature = "root-akgameobj")]
62pub trait IAkGameObjMethods: IAkGameObj {
63    #[doc = "`get_IsUsingDefaultListeners()` overload"]
64    fn get_is_using_default_listeners(self) -> bool {
65        unsafe {
66            let __receiver = <AkGameObj as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
67            ::unity::il2cpp_call!((::unity::module_base()+0x2f19b70usize)as*mut u8,bool;
68(AkGameObj)__receiver)
69        }
70    }
71    #[doc = "`get_ListenerList()` overload"]
72    fn get_listener_list(self) -> crate::system::collections::generic::list_1::List_1<crate::root::akaudiolistener::AkAudioListener> {
73        unsafe {
74            let __receiver = <AkGameObj as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
75            ::unity::il2cpp_call!((::unity::module_base()+0x2f19b80usize)as*mut u8,crate::system::collections::generic::list_1::List_1<crate::root::akaudiolistener::AkAudioListener> ;
76(AkGameObj)__receiver)
77        }
78    }
79    #[doc = "`AddListener(crate::root::akaudiolistener::AkAudioListener)` overload"]
80    fn add_listener(self, listener: impl ::core::convert::Into<crate::root::akaudiolistener::AkAudioListener>) -> () {
81        unsafe {
82            let __receiver = <AkGameObj as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
83            ::unity::il2cpp_call!((::unity::module_base()+0x2f1d9a0usize)as*mut u8,();
84(AkGameObj)__receiver,(crate::root::akaudiolistener::AkAudioListener)::core::convert::Into::into(listener))
85        }
86    }
87    #[doc = "`RemoveListener(crate::root::akaudiolistener::AkAudioListener)` overload"]
88    fn remove_listener(self, listener: impl ::core::convert::Into<crate::root::akaudiolistener::AkAudioListener>) -> () {
89        unsafe {
90            let __receiver = <AkGameObj as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
91            ::unity::il2cpp_call!((::unity::module_base()+0x2f1d9b0usize)as*mut u8,();
92(AkGameObj)__receiver,(crate::root::akaudiolistener::AkAudioListener)::core::convert::Into::into(listener))
93        }
94    }
95    #[doc = "`Register()` overload"]
96    fn register(self) -> crate::root::akresult::AKRESULT {
97        unsafe {
98            let __receiver = <AkGameObj as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
99            ::unity::il2cpp_call!((::unity::module_base()+0x2f1d9c0usize)as*mut u8,crate::root::akresult::AKRESULT;
100(AkGameObj)__receiver)
101        }
102    }
103    #[doc = "`SetPosition()` overload"]
104    fn set_position(self) -> () {
105        unsafe {
106            let __receiver = <AkGameObj as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
107            ::unity::il2cpp_call!((::unity::module_base()+0x2f1da70usize)as*mut u8,();
108(AkGameObj)__receiver)
109        }
110    }
111    #[doc = "`Awake()` overload"]
112    fn awake(self) -> () {
113        unsafe {
114            let __receiver = <AkGameObj as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
115            ::unity::il2cpp_call!((::unity::module_base()+0x2f1dc20usize)as*mut u8,();
116(AkGameObj)__receiver)
117        }
118    }
119    #[doc = "`CheckStaticStatus()` overload"]
120    fn check_static_status(self) -> () {
121        unsafe {
122            let __receiver = <AkGameObj as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
123            ::unity::il2cpp_call!((::unity::module_base()+0x2f1e280usize)as*mut u8,();
124(AkGameObj)__receiver)
125        }
126    }
127    #[doc = "`OnEnable()` overload"]
128    fn on_enable(self) -> () {
129        unsafe {
130            let __receiver = <AkGameObj as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
131            ::unity::il2cpp_call!((::unity::module_base()+0x2f1e290usize)as*mut u8,();
132(AkGameObj)__receiver)
133        }
134    }
135    #[doc = "`OnDestroy()` overload"]
136    fn on_destroy(self) -> () {
137        unsafe {
138            let __receiver = <AkGameObj as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
139            ::unity::il2cpp_call!((::unity::module_base()+0x2f1e2b0usize)as*mut u8,();
140(AkGameObj)__receiver)
141        }
142    }
143    #[doc = "`Update()` overload"]
144    fn update(self) -> () {
145        unsafe {
146            let __receiver = <AkGameObj as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
147            ::unity::il2cpp_call!((::unity::module_base()+0x2f1e440usize)as*mut u8,();
148(AkGameObj)__receiver)
149        }
150    }
151    #[doc = "`GetPosition()` overload"]
152    fn get_position(self) -> crate::unity_engine::vector3::Vector3 {
153        unsafe {
154            let __receiver = <AkGameObj as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
155            {
156                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
157                let __vi = *__vt.get(4usize).unwrap_or_else(|| {
158                    panic!(
159                        "unity: virtual slot {}
160 out of range (vtable len {}
161) on the runtime class behind {}
162 (method `{}
163`)",
164                        4usize,
165                        __vt.len(),
166                        <AkGameObj as ::unity::ClassIdentity>::NAME,
167                        "GetPosition",
168                    )
169                });
170                let __inner: extern "C" fn(AkGameObj, ::unity::OptionalMethod) -> crate::unity_engine::vector3::Vector3 =
171                    ::core::mem::transmute(__vi.method_ptr);
172                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
173                __inner(__receiver, __mi)
174            }
175        }
176    }
177    #[doc = "`GetForward()` overload"]
178    fn get_forward(self) -> crate::unity_engine::vector3::Vector3 {
179        unsafe {
180            let __receiver = <AkGameObj as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
181            {
182                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
183                let __vi = *__vt.get(5usize).unwrap_or_else(|| {
184                    panic!(
185                        "unity: virtual slot {}
186 out of range (vtable len {}
187) on the runtime class behind {}
188 (method `{}
189`)",
190                        5usize,
191                        __vt.len(),
192                        <AkGameObj as ::unity::ClassIdentity>::NAME,
193                        "GetForward",
194                    )
195                });
196                let __inner: extern "C" fn(AkGameObj, ::unity::OptionalMethod) -> crate::unity_engine::vector3::Vector3 =
197                    ::core::mem::transmute(__vi.method_ptr);
198                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
199                __inner(__receiver, __mi)
200            }
201        }
202    }
203    #[doc = "`GetUpward()` overload"]
204    fn get_upward(self) -> crate::unity_engine::vector3::Vector3 {
205        unsafe {
206            let __receiver = <AkGameObj as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
207            {
208                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
209                let __vi = *__vt.get(6usize).unwrap_or_else(|| {
210                    panic!(
211                        "unity: virtual slot {}
212 out of range (vtable len {}
213) on the runtime class behind {}
214 (method `{}
215`)",
216                        6usize,
217                        __vt.len(),
218                        <AkGameObj as ::unity::ClassIdentity>::NAME,
219                        "GetUpward",
220                    )
221                });
222                let __inner: extern "C" fn(AkGameObj, ::unity::OptionalMethod) -> crate::unity_engine::vector3::Vector3 =
223                    ::core::mem::transmute(__vi.method_ptr);
224                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
225                __inner(__receiver, __mi)
226            }
227        }
228    }
229    #[doc = "`OnTriggerEnter(crate::unity_engine::collider::Collider)` overload"]
230    fn on_trigger_enter(self, other: impl ::core::convert::Into<crate::unity_engine::collider::Collider>) -> () {
231        unsafe {
232            let __receiver = <AkGameObj as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
233            ::unity::il2cpp_call!((::unity::module_base()+0x2f1e590usize)as*mut u8,();
234(AkGameObj)__receiver,(crate::unity_engine::collider::Collider)::core::convert::Into::into(other))
235        }
236    }
237    #[doc = "`OnTriggerExit(crate::unity_engine::collider::Collider)` overload"]
238    fn on_trigger_exit(self, other: impl ::core::convert::Into<crate::unity_engine::collider::Collider>) -> () {
239        unsafe {
240            let __receiver = <AkGameObj as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
241            ::unity::il2cpp_call!((::unity::module_base()+0x2f1e5b0usize)as*mut u8,();
242(AkGameObj)__receiver,(crate::unity_engine::collider::Collider)::core::convert::Into::into(other))
243        }
244    }
245    #[doc = "`.ctor()` overload"]
246    fn ctor(self) -> () {
247        unsafe {
248            let __receiver = <AkGameObj as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
249            ::unity::il2cpp_call!((::unity::module_base()+0x2f1e960usize)as*mut u8,();
250(AkGameObj)__receiver)
251        }
252    }
253}
254
255#[cfg(feature = "root-akgameobj")]
256impl<__T: IAkGameObj> IAkGameObjMethods for __T {}
257
258#[cfg(feature = "root-akgameobj")]
259impl AkGameObj {
260    pub fn get_is_using_default_listeners_method_info() -> &'static ::unity::il2cpp::MethodInfo {
261        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
262    }
263
264    pub fn get_listener_list_method_info() -> &'static ::unity::il2cpp::MethodInfo {
265        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
266    }
267
268    pub fn add_listener_method_info() -> &'static ::unity::il2cpp::MethodInfo {
269        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
270    }
271
272    pub fn remove_listener_method_info() -> &'static ::unity::il2cpp::MethodInfo {
273        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
274    }
275
276    pub fn register_method_info() -> &'static ::unity::il2cpp::MethodInfo {
277        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
278    }
279
280    pub fn set_position_method_info() -> &'static ::unity::il2cpp::MethodInfo {
281        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
282    }
283
284    pub fn awake_method_info() -> &'static ::unity::il2cpp::MethodInfo {
285        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
286    }
287
288    pub fn check_static_status_method_info() -> &'static ::unity::il2cpp::MethodInfo {
289        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
290    }
291
292    pub fn on_enable_method_info() -> &'static ::unity::il2cpp::MethodInfo {
293        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
294    }
295
296    pub fn on_destroy_method_info() -> &'static ::unity::il2cpp::MethodInfo {
297        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
298    }
299
300    pub fn update_method_info() -> &'static ::unity::il2cpp::MethodInfo {
301        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
302    }
303
304    pub fn get_position_method_info() -> &'static ::unity::il2cpp::MethodInfo {
305        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[11]
306    }
307
308    pub fn get_forward_method_info() -> &'static ::unity::il2cpp::MethodInfo {
309        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[12]
310    }
311
312    pub fn get_upward_method_info() -> &'static ::unity::il2cpp::MethodInfo {
313        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[13]
314    }
315
316    pub fn on_trigger_enter_method_info() -> &'static ::unity::il2cpp::MethodInfo {
317        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[14]
318    }
319
320    pub fn on_trigger_exit_method_info() -> &'static ::unity::il2cpp::MethodInfo {
321        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[15]
322    }
323
324    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
325        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[16]
326    }
327}
328
329#[cfg(feature = "root-akgameobj")]
330impl AkGameObj {
331    #[doc = "Direct (non-virtual) call to `AkGameObj`'s own `GetPosition`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
332    pub unsafe fn get_position(this: impl ::core::convert::Into<::unity::IlInstance>) -> crate::unity_engine::vector3::Vector3 {
333        let __mi = Self::get_position_method_info();
334        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> crate::unity_engine::vector3::Vector3 =
335            ::core::mem::transmute(__mi.method_ptr);
336        __inner(this.into(), ::core::option::Option::None)
337    }
338
339    #[doc = "Direct (non-virtual) call to `AkGameObj`'s own `GetForward`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
340    pub unsafe fn get_forward(this: impl ::core::convert::Into<::unity::IlInstance>) -> crate::unity_engine::vector3::Vector3 {
341        let __mi = Self::get_forward_method_info();
342        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> crate::unity_engine::vector3::Vector3 =
343            ::core::mem::transmute(__mi.method_ptr);
344        __inner(this.into(), ::core::option::Option::None)
345    }
346
347    #[doc = "Direct (non-virtual) call to `AkGameObj`'s own `GetUpward`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
348    pub unsafe fn get_upward(this: impl ::core::convert::Into<::unity::IlInstance>) -> crate::unity_engine::vector3::Vector3 {
349        let __mi = Self::get_upward_method_info();
350        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> crate::unity_engine::vector3::Vector3 =
351            ::core::mem::transmute(__mi.method_ptr);
352        __inner(this.into(), ::core::option::Option::None)
353    }
354}
355
356#[cfg(feature = "root-akgameobj")]
357impl AkGameObj {
358    #[doc = "`.ctor()` — no args"]
359    pub fn new() -> Self {
360        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
361            panic!(
362                "{}
363::{}
364 failed to instantiate",
365                ::core::stringify!(AkGameObj),
366                ::core::stringify!(new),
367            )
368        });
369        <Self as IAkGameObjMethods>::ctor(this);
370        this
371    }
372}
373
374#[cfg(feature = "root-akgameobj")]
375#[doc(hidden)]
376pub mod prelude {
377    pub use super::{AkGameObj, IAkGameObj, IAkGameObjMethods};
378    #[cfg(feature = "system-object")]
379    pub use crate::system::object::IObjectMethods;
380    #[cfg(feature = "unity_engine-behaviour")]
381    pub use crate::unity_engine::behaviour::IBehaviourMethods;
382    #[cfg(feature = "unity_engine-component")]
383    pub use crate::unity_engine::component::IComponentMethods;
384    #[cfg(feature = "unity_engine-monobehaviour")]
385    pub use crate::unity_engine::monobehaviour::IMonoBehaviourMethods;
386    #[cfg(feature = "unity_engine-object_2")]
387    pub use crate::unity_engine::object_2::IObject_2Methods;
388    pub use crate::{
389        system::object::IObject,
390        unity_engine::{behaviour::IBehaviour, component::IComponent, monobehaviour::IMonoBehaviour, object_2::IObject_2},
391    };
392}