engage/generated/tm_pro/
tmp_spriteanimator.rs1#[cfg(feature = "tm_pro-tmp_spriteanimator-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 behaviour::{Behaviour, IBehaviour},
12 component::{Component, IComponent},
13 monobehaviour::{IMonoBehaviour, MonoBehaviour},
14 object_2::{IObject_2, Object_2},
15 },
16 };
17
18 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/tm_pro/tmp_spriteanimator/TMP_SpriteAnimator.md"))]
19 #[::unity::class(namespace = "TMPro", name = "TMP_SpriteAnimator")]
20 #[parent(crate::unity_engine::monobehaviour::MonoBehaviour)]
21 pub struct TMP_SpriteAnimator {
22 #[offset(24)]
23 #[rename(name = "m_animations")]
24 pub m_animations: crate::system::collections::generic::dictionary_2::Dictionary_2<i32, bool>,
25 #[offset(32)]
26 #[rename(name = "m_TextComponent")]
27 pub m_text_component: crate::tm_pro::tmp_text::TMP_Text,
28 }
29}
30
31#[cfg(feature = "tm_pro-tmp_spriteanimator-types")]
32pub use __types::*;
33
34#[cfg(feature = "tm_pro-tmp_spriteanimator")]
35pub trait ITMP_SpriteAnimatorMethods: ITMP_SpriteAnimator {
36 #[doc = "`Awake()` overload"]
37 fn awake(self) -> () {
38 unsafe {
39 let __receiver = <TMP_SpriteAnimator as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
40 ::unity::il2cpp_call!((::unity::module_base()+0x282b500usize)as*mut u8,();
41(TMP_SpriteAnimator)__receiver)
42 }
43 }
44 #[doc = "`OnEnable()` overload"]
45 fn on_enable(self) -> () {
46 unsafe {
47 let __receiver = <TMP_SpriteAnimator as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
48 ::unity::il2cpp_call!((::unity::module_base()+0x282b570usize)as*mut u8,();
49(TMP_SpriteAnimator)__receiver)
50 }
51 }
52 #[doc = "`OnDisable()` overload"]
53 fn on_disable(self) -> () {
54 unsafe {
55 let __receiver = <TMP_SpriteAnimator as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
56 ::unity::il2cpp_call!((::unity::module_base()+0x282b580usize)as*mut u8,();
57(TMP_SpriteAnimator)__receiver)
58 }
59 }
60 #[doc = "`StopAllAnimations()` overload"]
61 fn stop_all_animations(self) -> () {
62 unsafe {
63 let __receiver = <TMP_SpriteAnimator as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
64 ::unity::il2cpp_call!((::unity::module_base()+0x282b590usize)as*mut u8,();
65(TMP_SpriteAnimator)__receiver)
66 }
67 }
68 #[doc = "`DoSpriteAnimation(i32, crate::tm_pro::tmp_spriteasset::TMP_SpriteAsset, i32, i32, i32)` overload"]
69 fn do_sprite_animation(
70 self,
71 current_character: impl ::core::convert::Into<i32>,
72 sprite_asset: impl ::core::convert::Into<crate::tm_pro::tmp_spriteasset::TMP_SpriteAsset>,
73 start: impl ::core::convert::Into<i32>,
74 end: impl ::core::convert::Into<i32>,
75 framerate: impl ::core::convert::Into<i32>,
76 ) -> () {
77 unsafe {
78 let __receiver = <TMP_SpriteAnimator as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
79 ::unity::il2cpp_call!((::unity::module_base()+0x282b5f0usize)as*mut u8,();
80(TMP_SpriteAnimator)__receiver,(i32)::core::convert::Into::into(current_character),(crate::tm_pro::tmp_spriteasset::TMP_SpriteAsset)::core::convert::Into::into(sprite_asset),(i32)::core::convert::Into::into(start),(i32)::core::convert::Into::into(end),(i32)::core::convert::Into::into(framerate))
81 }
82 }
83 #[doc = "`DoSpriteAnimationInternal(i32, crate::tm_pro::tmp_spriteasset::TMP_SpriteAsset, i32, i32, i32)` overload"]
84 fn do_sprite_animation_internal(
85 self,
86 current_character: impl ::core::convert::Into<i32>,
87 sprite_asset: impl ::core::convert::Into<crate::tm_pro::tmp_spriteasset::TMP_SpriteAsset>,
88 start: impl ::core::convert::Into<i32>,
89 end: impl ::core::convert::Into<i32>,
90 framerate: impl ::core::convert::Into<i32>,
91 ) -> crate::system::collections::ienumerator::IEnumerator {
92 unsafe {
93 let __receiver = <TMP_SpriteAnimator as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
94 ::unity::il2cpp_call!((::unity::module_base()+0x282b730usize)as*mut u8,crate::system::collections::ienumerator::IEnumerator;
95(TMP_SpriteAnimator)__receiver,(i32)::core::convert::Into::into(current_character),(crate::tm_pro::tmp_spriteasset::TMP_SpriteAsset)::core::convert::Into::into(sprite_asset),(i32)::core::convert::Into::into(start),(i32)::core::convert::Into::into(end),(i32)::core::convert::Into::into(framerate))
96 }
97 }
98 #[doc = "`.ctor()` overload"]
99 fn ctor(self) -> () {
100 unsafe {
101 let __receiver = <TMP_SpriteAnimator as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
102 ::unity::il2cpp_call!((::unity::module_base()+0x282b7f0usize)as*mut u8,();
103(TMP_SpriteAnimator)__receiver)
104 }
105 }
106}
107
108#[cfg(feature = "tm_pro-tmp_spriteanimator")]
109impl<__T: ITMP_SpriteAnimator> ITMP_SpriteAnimatorMethods for __T {}
110
111#[cfg(feature = "tm_pro-tmp_spriteanimator")]
112impl TMP_SpriteAnimator {
113 pub fn awake_method_info() -> &'static ::unity::il2cpp::MethodInfo {
114 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
115 }
116
117 pub fn on_enable_method_info() -> &'static ::unity::il2cpp::MethodInfo {
118 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
119 }
120
121 pub fn on_disable_method_info() -> &'static ::unity::il2cpp::MethodInfo {
122 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
123 }
124
125 pub fn stop_all_animations_method_info() -> &'static ::unity::il2cpp::MethodInfo {
126 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
127 }
128
129 pub fn do_sprite_animation_method_info() -> &'static ::unity::il2cpp::MethodInfo {
130 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
131 }
132
133 pub fn do_sprite_animation_internal_method_info() -> &'static ::unity::il2cpp::MethodInfo {
134 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
135 }
136
137 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
138 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
139 }
140}
141
142#[cfg(feature = "tm_pro-tmp_spriteanimator")]
143impl TMP_SpriteAnimator {
144 #[doc = "`.ctor()` — no args"]
145 pub fn new() -> Self {
146 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
147 panic!(
148 "{}
149::{}
150 failed to instantiate",
151 ::core::stringify!(TMP_SpriteAnimator),
152 ::core::stringify!(new),
153 )
154 });
155 <Self as ITMP_SpriteAnimatorMethods>::ctor(this);
156 this
157 }
158}
159
160#[cfg(feature = "tm_pro-tmp_spriteanimator")]
161#[doc(hidden)]
162pub mod prelude {
163 pub use super::{ITMP_SpriteAnimator, ITMP_SpriteAnimatorMethods, TMP_SpriteAnimator};
164 #[cfg(feature = "system-object")]
165 pub use crate::system::object::IObjectMethods;
166 #[cfg(feature = "unity_engine-behaviour")]
167 pub use crate::unity_engine::behaviour::IBehaviourMethods;
168 #[cfg(feature = "unity_engine-component")]
169 pub use crate::unity_engine::component::IComponentMethods;
170 #[cfg(feature = "unity_engine-monobehaviour")]
171 pub use crate::unity_engine::monobehaviour::IMonoBehaviourMethods;
172 #[cfg(feature = "unity_engine-object_2")]
173 pub use crate::unity_engine::object_2::IObject_2Methods;
174 pub use crate::{
175 system::object::IObject,
176 unity_engine::{behaviour::IBehaviour, component::IComponent, monobehaviour::IMonoBehaviour, object_2::IObject_2},
177 };
178}