Skip to main content

engage/generated/unity_engine/ui/coroutine_tween/
tweenrunner_1.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "unity_engine-ui-coroutine_tween-tweenrunner_1-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/unity_engine/ui/coroutine_tween/tweenrunner_1/TweenRunner_1.md"))]
11    #[::unity::class(namespace = "UnityEngine.UI.CoroutineTween", name = "TweenRunner`1")]
12    #[parent(crate::system::object::Object)]
13    pub struct TweenRunner_1<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 = "unity_engine-ui-coroutine_tween-tweenrunner_1-types")]
22pub use __types::*;
23
24#[cfg(feature = "unity_engine-ui-coroutine_tween-tweenrunner_1")]
25#[::unity::methods]
26impl<T0: ::unity::ClassIdentity> TweenRunner_1<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 = "unity_engine-ui-coroutine_tween-tweenrunner_1")]
49impl<T0: ::unity::ClassIdentity> TweenRunner_1<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),
58                ::core::stringify!(new),
59            )
60        });
61        <Self as ITweenRunner_1Methods<T0>>::ctor(this);
62        this
63    }
64}
65
66#[cfg(feature = "unity_engine-ui-coroutine_tween-tweenrunner_1")]
67#[doc(hidden)]
68pub mod prelude {
69    pub use super::{ITweenRunner_1, ITweenRunner_1Methods, TweenRunner_1};
70    pub use crate::system::object::IObject;
71    #[cfg(feature = "system-object")]
72    pub use crate::system::object::IObjectMethods;
73}