Skip to main content

engage/generated/root/
akstate.rs

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