Skip to main content

engage/generated/root/
akdragdroptriggerhandler.rs

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