engage/generated/root/
wwiseobjectreference.rs1#[cfg(feature = "root-wwiseobjectreference-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 object_2::{IObject_2, Object_2},
12 scriptableobject::{IScriptableObject, ScriptableObject},
13 },
14 };
15
16 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/root/wwiseobjectreference/WwiseObjectReference.md"))]
17 #[::unity::class(namespace = "", name = "WwiseObjectReference")]
18 #[parent(crate::unity_engine::scriptableobject::ScriptableObject)]
19 pub struct WwiseObjectReference {
20 #[offset(24)]
21 #[rename(name = "objectName")]
22 pub object_name: ::unity::Il2CppString,
23 #[offset(32)]
24 #[rename(name = "id")]
25 pub id: u32,
26 #[offset(40)]
27 #[rename(name = "guid")]
28 pub guid: ::unity::Il2CppString,
29 }
30}
31
32#[cfg(feature = "root-wwiseobjectreference-types")]
33pub use __types::*;
34
35#[cfg(feature = "root-wwiseobjectreference")]
36pub trait IWwiseObjectReferenceMethods: IWwiseObjectReference {
37 #[doc = "`get_ObjectName()` overload"]
38 fn get_object_name(self) -> ::unity::Il2CppString {
39 unsafe {
40 let __receiver = <WwiseObjectReference as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
41 ::unity::il2cpp_call!((::unity::module_base()+0x293fe40usize)as*mut u8, ::unity::Il2CppString;
42(WwiseObjectReference)__receiver)
43 }
44 }
45 #[doc = "`get_DisplayName()` overload"]
46 fn get_display_name(self) -> ::unity::Il2CppString {
47 unsafe {
48 let __receiver = <WwiseObjectReference as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
49 {
50 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
51 let __vi = *__vt.get(4usize).unwrap_or_else(|| {
52 panic!(
53 "unity: virtual slot {}
54 out of range (vtable len {}
55) on the runtime class behind {}
56 (method `{}
57`)",
58 4usize,
59 __vt.len(),
60 <WwiseObjectReference as ::unity::ClassIdentity>::NAME,
61 "get_DisplayName",
62 )
63 });
64 let __inner: extern "C" fn(WwiseObjectReference, ::unity::OptionalMethod) -> ::unity::Il2CppString =
65 ::core::mem::transmute(__vi.method_ptr);
66 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
67 __inner(__receiver, __mi)
68 }
69 }
70 }
71 #[doc = "`get_Id()` overload"]
72 fn get_id(self) -> u32 {
73 unsafe {
74 let __receiver = <WwiseObjectReference as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
75 ::unity::il2cpp_call!((::unity::module_base()+0x293fe60usize)as*mut u8,u32;
76(WwiseObjectReference)__receiver)
77 }
78 }
79 #[doc = "`get_WwiseObjectType()` overload"]
80 fn get_wwise_object_type(self) -> crate::root::wwiseobjecttype::WwiseObjectType {
81 unsafe {
82 let __receiver = <WwiseObjectReference as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
83 {
84 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
85 let __vi = *__vt.get(5usize).unwrap_or_else(|| {
86 panic!(
87 "unity: virtual slot {}
88 out of range (vtable len {}
89) on the runtime class behind {}
90 (method `{}
91`)",
92 5usize,
93 __vt.len(),
94 <WwiseObjectReference as ::unity::ClassIdentity>::NAME,
95 "get_WwiseObjectType",
96 )
97 });
98 let __inner: extern "C" fn(WwiseObjectReference, ::unity::OptionalMethod) -> crate::root::wwiseobjecttype::WwiseObjectType =
99 ::core::mem::transmute(__vi.method_ptr);
100 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
101 __inner(__receiver, __mi)
102 }
103 }
104 }
105 #[doc = "`.ctor()` overload"]
106 fn ctor(self) -> () {
107 unsafe {
108 let __receiver = <WwiseObjectReference as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
109 ::unity::il2cpp_call!((::unity::module_base()+0x293f9c0usize)as*mut u8,();
110(WwiseObjectReference)__receiver)
111 }
112 }
113}
114
115#[cfg(feature = "root-wwiseobjectreference")]
116impl<__T: IWwiseObjectReference> IWwiseObjectReferenceMethods for __T {}
117
118#[cfg(feature = "root-wwiseobjectreference")]
119impl WwiseObjectReference {
120 pub fn get_object_name_method_info() -> &'static ::unity::il2cpp::MethodInfo {
121 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
122 }
123
124 pub fn get_display_name_method_info() -> &'static ::unity::il2cpp::MethodInfo {
125 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
126 }
127
128 pub fn get_id_method_info() -> &'static ::unity::il2cpp::MethodInfo {
129 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
130 }
131
132 pub fn get_wwise_object_type_method_info() -> &'static ::unity::il2cpp::MethodInfo {
133 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
134 }
135
136 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
137 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
138 }
139}
140
141#[cfg(feature = "root-wwiseobjectreference")]
142impl WwiseObjectReference {
143 #[doc = "Direct (non-virtual) call to `WwiseObjectReference`'s own `get_DisplayName`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
144 pub unsafe fn get_display_name(this: impl ::core::convert::Into<::unity::IlInstance>) -> ::unity::Il2CppString {
145 let __mi = Self::get_display_name_method_info();
146 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> ::unity::Il2CppString = ::core::mem::transmute(__mi.method_ptr);
147 __inner(this.into(), ::core::option::Option::None)
148 }
149
150 #[doc = "Direct (non-virtual) call to `WwiseObjectReference`'s own `get_WwiseObjectType`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
151 pub unsafe fn get_wwise_object_type(this: impl ::core::convert::Into<::unity::IlInstance>) -> crate::root::wwiseobjecttype::WwiseObjectType {
152 let __mi = Self::get_wwise_object_type_method_info();
153 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> crate::root::wwiseobjecttype::WwiseObjectType =
154 ::core::mem::transmute(__mi.method_ptr);
155 __inner(this.into(), ::core::option::Option::None)
156 }
157}
158
159#[cfg(feature = "root-wwiseobjectreference")]
160impl WwiseObjectReference {
161 #[doc = "`.ctor()` — no args"]
162 pub fn new() -> Self {
163 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
164 panic!(
165 "{}
166::{}
167 failed to instantiate",
168 ::core::stringify!(WwiseObjectReference),
169 ::core::stringify!(new),
170 )
171 });
172 <Self as IWwiseObjectReferenceMethods>::ctor(this);
173 this
174 }
175}
176
177#[cfg(feature = "root-wwiseobjectreference")]
178#[doc(hidden)]
179pub mod prelude {
180 pub use super::{IWwiseObjectReference, IWwiseObjectReferenceMethods, WwiseObjectReference};
181 #[cfg(feature = "system-object")]
182 pub use crate::system::object::IObjectMethods;
183 #[cfg(feature = "unity_engine-object_2")]
184 pub use crate::unity_engine::object_2::IObject_2Methods;
185 #[cfg(feature = "unity_engine-scriptableobject")]
186 pub use crate::unity_engine::scriptableobject::IScriptableObjectMethods;
187 pub use crate::{
188 system::object::IObject,
189 unity_engine::{object_2::IObject_2, scriptableobject::IScriptableObject},
190 };
191}