engage/generated/root/
wwisertpcreference.rs1#[cfg(feature = "root-wwisertpcreference-types")]
4mod __types {
5 #[allow(unused_imports)] use ::unity::prelude::*;
6
7 use super::*;
8 use crate::{
9 root::wwiseobjectreference::{IWwiseObjectReference, WwiseObjectReference},
10 system::object::{IObject, Object},
11 unity_engine::{
12 object_2::{IObject_2, Object_2},
13 scriptableobject::{IScriptableObject, ScriptableObject},
14 },
15 };
16
17 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/root/wwisertpcreference/WwiseRtpcReference.md"))]
18 #[::unity::class(namespace = "", name = "WwiseRtpcReference")]
19 #[parent(crate::root::wwiseobjectreference::WwiseObjectReference)]
20 pub struct WwiseRtpcReference {}
21}
22
23#[cfg(feature = "root-wwisertpcreference-types")]
24pub use __types::*;
25
26#[cfg(feature = "root-wwisertpcreference")]
27pub trait IWwiseRtpcReferenceMethods: IWwiseRtpcReference {
28 #[doc = "`get_WwiseObjectType()` overload"]
29 fn get_wwise_object_type(self) -> crate::root::wwiseobjecttype::WwiseObjectType {
30 unsafe {
31 let __receiver = <WwiseRtpcReference as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
32 {
33 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
34 let __vi = *__vt.get(5usize).unwrap_or_else(|| {
35 panic!(
36 "unity: virtual slot {}
37 out of range (vtable len {}
38) on the runtime class behind {}
39 (method `{}
40`)",
41 5usize,
42 __vt.len(),
43 <WwiseRtpcReference as ::unity::ClassIdentity>::NAME,
44 "get_WwiseObjectType",
45 )
46 });
47 let __inner: extern "C" fn(WwiseRtpcReference, ::unity::OptionalMethod) -> crate::root::wwiseobjecttype::WwiseObjectType =
48 ::core::mem::transmute(__vi.method_ptr);
49 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
50 __inner(__receiver, __mi)
51 }
52 }
53 }
54 #[doc = "`.ctor()` overload"]
55 fn ctor(self) -> () {
56 unsafe {
57 let __receiver = <WwiseRtpcReference as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
58 ::unity::il2cpp_call!((::unity::module_base()+0x293fe80usize)as*mut u8,();
59(WwiseRtpcReference)__receiver)
60 }
61 }
62}
63
64#[cfg(feature = "root-wwisertpcreference")]
65impl<__T: IWwiseRtpcReference> IWwiseRtpcReferenceMethods for __T {}
66
67#[cfg(feature = "root-wwisertpcreference")]
68impl WwiseRtpcReference {
69 pub fn get_wwise_object_type_method_info() -> &'static ::unity::il2cpp::MethodInfo {
70 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
71 }
72
73 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
74 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
75 }
76}
77
78#[cfg(feature = "root-wwisertpcreference")]
79impl WwiseRtpcReference {
80 #[doc = "Direct (non-virtual) call to `WwiseRtpcReference`'s own `get_WwiseObjectType`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
81 pub unsafe fn get_wwise_object_type(this: impl ::core::convert::Into<::unity::IlInstance>) -> crate::root::wwiseobjecttype::WwiseObjectType {
82 let __mi = Self::get_wwise_object_type_method_info();
83 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> crate::root::wwiseobjecttype::WwiseObjectType =
84 ::core::mem::transmute(__mi.method_ptr);
85 __inner(this.into(), ::core::option::Option::None)
86 }
87}
88
89#[cfg(feature = "root-wwisertpcreference")]
90impl WwiseRtpcReference {
91 #[doc = "`.ctor()` — no args"]
92 pub fn new() -> Self {
93 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
94 panic!(
95 "{}
96::{}
97 failed to instantiate",
98 ::core::stringify!(WwiseRtpcReference),
99 ::core::stringify!(new),
100 )
101 });
102 <Self as IWwiseRtpcReferenceMethods>::ctor(this);
103 this
104 }
105}
106
107#[cfg(feature = "root-wwisertpcreference")]
108#[doc(hidden)]
109pub mod prelude {
110 pub use super::{IWwiseRtpcReference, IWwiseRtpcReferenceMethods, WwiseRtpcReference};
111 #[cfg(feature = "root-wwiseobjectreference")]
112 pub use crate::root::wwiseobjectreference::IWwiseObjectReferenceMethods;
113 #[cfg(feature = "system-object")]
114 pub use crate::system::object::IObjectMethods;
115 #[cfg(feature = "unity_engine-object_2")]
116 pub use crate::unity_engine::object_2::IObject_2Methods;
117 #[cfg(feature = "unity_engine-scriptableobject")]
118 pub use crate::unity_engine::scriptableobject::IScriptableObjectMethods;
119 pub use crate::{
120 root::wwiseobjectreference::IWwiseObjectReference,
121 system::object::IObject,
122 unity_engine::{object_2::IObject_2, scriptableobject::IScriptableObject},
123 };
124}