Skip to main content

engage/generated/root/
profilecardchangesmall.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "root-profilecardchangesmall-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/profilecardchangesmall/ProfileCardChangeSmall.md"))]
18    #[::unity::class(namespace = "", name = "ProfileCardChangeSmall")]
19    #[parent(crate::unity_engine::statemachinebehaviour::StateMachineBehaviour)]
20    pub struct ProfileCardChangeSmall {}
21}
22
23#[cfg(feature = "root-profilecardchangesmall-types")]
24pub use __types::*;
25
26#[cfg(feature = "root-profilecardchangesmall")]
27pub trait IProfileCardChangeSmallMethods: IProfileCardChangeSmall {
28    #[doc = "`OnStateExit(crate::unity_engine::animator::Animator, crate::unity_engine::animatorstateinfo::AnimatorStateInfo, i32)` overload"]
29    fn on_state_exit(
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 =
37                <ProfileCardChangeSmall as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
38            {
39                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
40                let __vi = *__vt.get(6usize).unwrap_or_else(|| {
41                    panic!(
42                        "unity: virtual slot {}
43 out of range (vtable len {}
44) on the runtime class behind {}
45 (method `{}
46`)",
47                        6usize,
48                        __vt.len(),
49                        <ProfileCardChangeSmall as ::unity::ClassIdentity>::NAME,
50                        "OnStateExit",
51                    )
52                });
53                let __inner: extern "C" fn(
54                    ProfileCardChangeSmall,
55                    crate::unity_engine::animator::Animator,
56                    crate::unity_engine::animatorstateinfo::AnimatorStateInfo,
57                    i32,
58                    ::unity::OptionalMethod,
59                ) -> () = ::core::mem::transmute(__vi.method_ptr);
60                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
61                __inner(
62                    __receiver,
63                    ::core::convert::Into::into(animator),
64                    ::core::convert::Into::into(state_info),
65                    ::core::convert::Into::into(layer_index),
66                    __mi,
67                )
68            }
69        }
70    }
71    #[doc = "`.ctor()` overload"]
72    fn ctor(self) -> () {
73        unsafe {
74            let __receiver =
75                <ProfileCardChangeSmall as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
76            ::unity::il2cpp_call!((::unity::module_base()+0x230cfb0usize)as*mut u8,();
77(ProfileCardChangeSmall)__receiver)
78        }
79    }
80}
81
82#[cfg(feature = "root-profilecardchangesmall")]
83impl<__T: IProfileCardChangeSmall> IProfileCardChangeSmallMethods for __T {}
84
85#[cfg(feature = "root-profilecardchangesmall")]
86impl ProfileCardChangeSmall {
87    pub fn on_state_exit_method_info() -> &'static ::unity::il2cpp::MethodInfo {
88        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
89    }
90
91    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
92        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
93    }
94}
95
96#[cfg(feature = "root-profilecardchangesmall")]
97impl ProfileCardChangeSmall {
98    #[doc = "Direct (non-virtual) call to `ProfileCardChangeSmall`'s own `OnStateExit`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
99    pub unsafe fn on_state_exit(
100        this: impl ::core::convert::Into<::unity::IlInstance>,
101        animator: crate::unity_engine::animator::Animator,
102        state_info: crate::unity_engine::animatorstateinfo::AnimatorStateInfo,
103        layer_index: i32,
104    ) -> () {
105        let __mi = Self::on_state_exit_method_info();
106        let __inner: extern "C" fn(
107            ::unity::IlInstance,
108            crate::unity_engine::animator::Animator,
109            crate::unity_engine::animatorstateinfo::AnimatorStateInfo,
110            i32,
111            ::unity::OptionalMethod,
112        ) -> () = ::core::mem::transmute(__mi.method_ptr);
113        __inner(this.into(), animator, state_info, layer_index, ::core::option::Option::None)
114    }
115}
116
117#[cfg(feature = "root-profilecardchangesmall")]
118impl ProfileCardChangeSmall {
119    #[doc = "`.ctor()` — no args"]
120    pub fn new() -> Self {
121        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
122            panic!(
123                "{}
124::{}
125 failed to instantiate",
126                ::core::stringify!(ProfileCardChangeSmall),
127                ::core::stringify!(new),
128            )
129        });
130        <Self as IProfileCardChangeSmallMethods>::ctor(this);
131        this
132    }
133}
134
135#[cfg(feature = "root-profilecardchangesmall")]
136#[doc(hidden)]
137pub mod prelude {
138    pub use super::{IProfileCardChangeSmall, IProfileCardChangeSmallMethods, ProfileCardChangeSmall};
139    #[cfg(feature = "system-object")]
140    pub use crate::system::object::IObjectMethods;
141    #[cfg(feature = "unity_engine-object_2")]
142    pub use crate::unity_engine::object_2::IObject_2Methods;
143    #[cfg(feature = "unity_engine-scriptableobject")]
144    pub use crate::unity_engine::scriptableobject::IScriptableObjectMethods;
145    #[cfg(feature = "unity_engine-statemachinebehaviour")]
146    pub use crate::unity_engine::statemachinebehaviour::IStateMachineBehaviourMethods;
147    pub use crate::{
148        system::object::IObject,
149        unity_engine::{object_2::IObject_2, scriptableobject::IScriptableObject, statemachinebehaviour::IStateMachineBehaviour},
150    };
151}