Skip to main content

engage/generated/root/
akunityplatformspecificsettings.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "root-akunityplatformspecificsettings-types")]
4mod __types {
5    #[allow(unused_imports)] use ::unity::prelude::*;
6
7    use super::*;
8    use crate::system::object::{IObject, Object};
9
10    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/root/akunityplatformspecificsettings/AkUnityPlatformSpecificSettings.md"))]
11    #[::unity::class(namespace = "", name = "AkUnityPlatformSpecificSettings")]
12    #[parent(crate::system::object::Object)]
13    pub struct AkUnityPlatformSpecificSettings {
14        #[offset(16)]
15        #[rename(name = "swigCPtr")]
16        pub swig_c_ptr: ::unity::IntPtr,
17        #[offset(24)]
18        #[rename(name = "swigCMemOwn")]
19        pub swig_c_mem_own: bool,
20    }
21}
22
23#[cfg(feature = "root-akunityplatformspecificsettings-types")]
24pub use __types::*;
25
26#[cfg(feature = "root-akunityplatformspecificsettings")]
27impl AkUnityPlatformSpecificSettings {
28    #[doc = "`getCPtr(crate::root::akunityplatformspecificsettings::AkUnityPlatformSpecificSettings)` overload"]
29    pub fn get_c_ptr(
30        obj: impl ::core::convert::Into<crate::root::akunityplatformspecificsettings::AkUnityPlatformSpecificSettings>,
31    ) -> ::unity::IntPtr {
32        unsafe {
33            ::unity::il2cpp_call!((::unity::module_base()+0x1d2be50usize)as*mut u8, ::unity::IntPtr;
34(crate::root::akunityplatformspecificsettings::AkUnityPlatformSpecificSettings)::core::convert::Into::into(obj))
35        }
36    }
37}
38
39#[cfg(feature = "root-akunityplatformspecificsettings")]
40pub trait IAkUnityPlatformSpecificSettingsMethods: IAkUnityPlatformSpecificSettings {
41    #[doc = "`.ctor(::unity::IntPtr, bool)` overload"]
42    fn ctor(self, c_ptr: impl ::core::convert::Into<::unity::IntPtr>, c_memory_own: impl ::core::convert::Into<bool>) -> () {
43        unsafe {
44            let __receiver =
45                <AkUnityPlatformSpecificSettings as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
46            ::unity::il2cpp_call!((::unity::module_base()+0x1d2be10usize)as*mut u8,();
47(AkUnityPlatformSpecificSettings)__receiver,(::unity::IntPtr)::core::convert::Into::into(c_ptr),(bool)::core::convert::Into::into(c_memory_own))
48        }
49    }
50    #[doc = "`setCPtr(::unity::IntPtr)` overload"]
51    fn set_c_ptr(self, c_ptr: impl ::core::convert::Into<::unity::IntPtr>) -> () {
52        unsafe {
53            let __receiver =
54                <AkUnityPlatformSpecificSettings as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
55            {
56                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
57                let __vi = *__vt.get(5usize).unwrap_or_else(|| {
58                    panic!(
59                        "unity: virtual slot {}
60 out of range (vtable len {}
61) on the runtime class behind {}
62 (method `{}
63`)",
64                        5usize,
65                        __vt.len(),
66                        <AkUnityPlatformSpecificSettings as ::unity::ClassIdentity>::NAME,
67                        "setCPtr",
68                    )
69                });
70                let __inner: extern "C" fn(AkUnityPlatformSpecificSettings, ::unity::IntPtr, ::unity::OptionalMethod) -> () =
71                    ::core::mem::transmute(__vi.method_ptr);
72                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
73                __inner(__receiver, ::core::convert::Into::into(c_ptr), __mi)
74            }
75        }
76    }
77    #[doc = "`Finalize()` overload"]
78    fn finalize(self) -> () {
79        unsafe {
80            let __receiver =
81                <AkUnityPlatformSpecificSettings as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
82            {
83                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
84                let __vi = *__vt.get(1usize).unwrap_or_else(|| {
85                    panic!(
86                        "unity: virtual slot {}
87 out of range (vtable len {}
88) on the runtime class behind {}
89 (method `{}
90`)",
91                        1usize,
92                        __vt.len(),
93                        <AkUnityPlatformSpecificSettings as ::unity::ClassIdentity>::NAME,
94                        "Finalize",
95                    )
96                });
97                let __inner: extern "C" fn(AkUnityPlatformSpecificSettings, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
98                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
99                __inner(__receiver, __mi)
100            }
101        }
102    }
103    #[doc = "`Dispose()` overload"]
104    fn dispose(self) -> () {
105        unsafe {
106            let __receiver =
107                <AkUnityPlatformSpecificSettings as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
108            {
109                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
110                let __vi = *__vt.get(6usize).unwrap_or_else(|| {
111                    panic!(
112                        "unity: virtual slot {}
113 out of range (vtable len {}
114) on the runtime class behind {}
115 (method `{}
116`)",
117                        6usize,
118                        __vt.len(),
119                        <AkUnityPlatformSpecificSettings as ::unity::ClassIdentity>::NAME,
120                        "Dispose",
121                    )
122                });
123                let __inner: extern "C" fn(AkUnityPlatformSpecificSettings, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
124                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
125                __inner(__receiver, __mi)
126            }
127        }
128    }
129}
130
131#[cfg(feature = "root-akunityplatformspecificsettings")]
132impl<__T: IAkUnityPlatformSpecificSettings> IAkUnityPlatformSpecificSettingsMethods for __T {}
133
134#[cfg(feature = "root-akunityplatformspecificsettings")]
135impl AkUnityPlatformSpecificSettings {
136    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
137        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
138    }
139
140    pub fn get_c_ptr_method_info() -> &'static ::unity::il2cpp::MethodInfo {
141        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
142    }
143
144    pub fn set_c_ptr_method_info() -> &'static ::unity::il2cpp::MethodInfo {
145        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
146    }
147
148    pub fn finalize_method_info() -> &'static ::unity::il2cpp::MethodInfo {
149        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
150    }
151
152    pub fn dispose_method_info() -> &'static ::unity::il2cpp::MethodInfo {
153        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
154    }
155}
156
157#[cfg(feature = "root-akunityplatformspecificsettings")]
158impl AkUnityPlatformSpecificSettings {
159    #[doc = "Direct (non-virtual) call to `AkUnityPlatformSpecificSettings`'s own `setCPtr`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
160    pub unsafe fn set_c_ptr(this: impl ::core::convert::Into<::unity::IlInstance>, c_ptr: ::unity::IntPtr) -> () {
161        let __mi = Self::set_c_ptr_method_info();
162        let __inner: extern "C" fn(::unity::IlInstance, ::unity::IntPtr, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
163        __inner(this.into(), c_ptr, ::core::option::Option::None)
164    }
165
166    #[doc = "Direct (non-virtual) call to `AkUnityPlatformSpecificSettings`'s own `Finalize`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
167    pub unsafe fn finalize(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
168        let __mi = Self::finalize_method_info();
169        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
170        __inner(this.into(), ::core::option::Option::None)
171    }
172
173    #[doc = "Direct (non-virtual) call to `AkUnityPlatformSpecificSettings`'s own `Dispose`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
174    pub unsafe fn dispose(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
175        let __mi = Self::dispose_method_info();
176        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
177        __inner(this.into(), ::core::option::Option::None)
178    }
179}
180
181#[cfg(feature = "root-akunityplatformspecificsettings")]
182impl AkUnityPlatformSpecificSettings {
183    #[doc = "`.ctor(::unity::IntPtr, bool)` — overload selector"]
184    pub fn new(c_ptr: ::unity::IntPtr, c_memory_own: bool) -> Self {
185        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
186            panic!(
187                "{}
188::{}
189 failed to instantiate",
190                ::core::stringify!(AkUnityPlatformSpecificSettings),
191                ::core::stringify!(new),
192            )
193        });
194        <Self as IAkUnityPlatformSpecificSettingsMethods>::ctor(this, c_ptr, c_memory_own);
195        this
196    }
197}
198
199#[cfg(feature = "root-akunityplatformspecificsettings")]
200#[doc(hidden)]
201pub mod prelude {
202    pub use super::{AkUnityPlatformSpecificSettings, IAkUnityPlatformSpecificSettings, IAkUnityPlatformSpecificSettingsMethods};
203    pub use crate::system::object::IObject;
204    #[cfg(feature = "system-object")]
205    pub use crate::system::object::IObjectMethods;
206}