engage/generated/root/
profilecardstampcursorpush.rs1#[cfg(feature = "root-profilecardstampcursorpush-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/profilecardstampcursorpush/ProfileCardStampCursorPush.md"))]
18 #[::unity::class(namespace = "", name = "ProfileCardStampCursorPush")]
19 #[parent(crate::unity_engine::statemachinebehaviour::StateMachineBehaviour)]
20 pub struct ProfileCardStampCursorPush {}
21}
22
23#[cfg(feature = "root-profilecardstampcursorpush-types")]
24pub use __types::*;
25
26#[cfg(feature = "root-profilecardstampcursorpush")]
27pub trait IProfileCardStampCursorPushMethods: IProfileCardStampCursorPush {
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 =
37 <ProfileCardStampCursorPush 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(4usize).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 4usize,
48 __vt.len(),
49 <ProfileCardStampCursorPush as ::unity::ClassIdentity>::NAME,
50 "OnStateEnter",
51 )
52 });
53 let __inner: extern "C" fn(
54 ProfileCardStampCursorPush,
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 <ProfileCardStampCursorPush as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
76 ::unity::il2cpp_call!((::unity::module_base()+0x2bf10c0usize)as*mut u8,();
77(ProfileCardStampCursorPush)__receiver)
78 }
79 }
80}
81
82#[cfg(feature = "root-profilecardstampcursorpush")]
83impl<__T: IProfileCardStampCursorPush> IProfileCardStampCursorPushMethods for __T {}
84
85#[cfg(feature = "root-profilecardstampcursorpush")]
86impl ProfileCardStampCursorPush {
87 pub fn on_state_enter_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-profilecardstampcursorpush")]
97impl ProfileCardStampCursorPush {
98 #[doc = "Direct (non-virtual) call to `ProfileCardStampCursorPush`'s own `OnStateEnter`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
99 pub unsafe fn on_state_enter(
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_enter_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-profilecardstampcursorpush")]
118impl ProfileCardStampCursorPush {
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!(ProfileCardStampCursorPush),
127 ::core::stringify!(new),
128 )
129 });
130 <Self as IProfileCardStampCursorPushMethods>::ctor(this);
131 this
132 }
133}
134
135#[cfg(feature = "root-profilecardstampcursorpush")]
136#[doc(hidden)]
137pub mod prelude {
138 pub use super::{IProfileCardStampCursorPush, IProfileCardStampCursorPushMethods, ProfileCardStampCursorPush};
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}