engage/generated/tm_pro/
tweenrunner_1_2.rs1#[cfg(feature = "tm_pro-tweenrunner_1_2-types")]
4mod __types {
5 #[allow(unused_imports)] use ::unity::prelude::*;
6
7 use super::*;
8 use crate::system::object::{IObject, Object};
9
10 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/tm_pro/tweenrunner_1_2/TweenRunner_1_2.md"))]
11 #[::unity::class(namespace = "TMPro", name = "TweenRunner`1")]
12 #[parent(crate::system::object::Object)]
13 pub struct TweenRunner_1_2<T0: ::unity::ClassIdentity> {
14 #[rename(name = "m_CoroutineContainer")]
15 pub m_coroutine_container: crate::unity_engine::monobehaviour::MonoBehaviour,
16 #[rename(name = "m_Tween")]
17 pub m_tween: crate::system::collections::ienumerator::IEnumerator,
18 }
19}
20
21#[cfg(feature = "tm_pro-tweenrunner_1_2-types")]
22pub use __types::*;
23
24#[cfg(feature = "tm_pro-tweenrunner_1_2")]
25#[::unity::methods]
26impl<T0: ::unity::ClassIdentity> TweenRunner_1_2<T0> {
27 #[doc = "`Start(T0)` overload"]
28 #[method(name = "Start", args = 1)]
29 pub fn start(tween_info: T0) -> crate::system::collections::ienumerator::IEnumerator;
30
31 #[doc = "`Init(crate::unity_engine::monobehaviour::MonoBehaviour)` overload"]
32 #[method(name = "Init", args = 1)]
33 pub fn init(self, coroutine_container: crate::unity_engine::monobehaviour::MonoBehaviour) -> ();
34
35 #[doc = "`StartTween(T0)` overload"]
36 #[method(name = "StartTween", args = 1)]
37 pub fn start_tween(self, info: T0) -> ();
38
39 #[doc = "`StopTween()` overload"]
40 #[method(name = "StopTween", args = 0)]
41 pub fn stop_tween(self) -> ();
42
43 #[doc = "`.ctor()` overload"]
44 #[method(name = ".ctor", args = 0)]
45 pub fn ctor(self) -> ();
46}
47
48#[cfg(feature = "tm_pro-tweenrunner_1_2")]
49impl<T0: ::unity::ClassIdentity> TweenRunner_1_2<T0> {
50 #[doc = "`.ctor()` — no args"]
51 pub fn new() -> Self {
52 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
53 panic!(
54 "{}
55::{}
56 failed to instantiate",
57 ::core::stringify!(TweenRunner_1_2),
58 ::core::stringify!(new),
59 )
60 });
61 <Self as ITweenRunner_1_2Methods<T0>>::ctor(this);
62 this
63 }
64}
65
66#[cfg(feature = "tm_pro-tweenrunner_1_2")]
67#[doc(hidden)]
68pub mod prelude {
69 pub use super::{ITweenRunner_1_2, ITweenRunner_1_2Methods, TweenRunner_1_2};
70 pub use crate::system::object::IObject;
71 #[cfg(feature = "system-object")]
72 pub use crate::system::object::IObjectMethods;
73}