Skip to main content

engage/generated/root/
gamemessageclosed.rs

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