engage/generated/app/
lifespanmanager.rs1#[cfg(feature = "app-lifespanmanager-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/app/lifespanmanager/LifespanManager.md"))]
19 #[::unity::class(namespace = "App", name = "LifespanManager")]
20 #[parent(crate::unity_engine::monobehaviour::MonoBehaviour)]
21 pub struct LifespanManager {
22 #[offset(24)]
23 #[rename(name = "m_Life")]
24 pub m_life: f32,
25 #[offset(28)]
26 #[rename(name = "m_Time")]
27 pub m_time: f32,
28 }
29}
30
31#[cfg(feature = "app-lifespanmanager-types")]
32pub use __types::*;
33
34#[cfg(feature = "app-lifespanmanager")]
35pub trait ILifespanManagerMethods: ILifespanManager {
36 #[doc = "`Start()` overload"]
37 fn start(self) -> () {
38 unsafe {
39 let __receiver = <LifespanManager as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
40 ::unity::il2cpp_call!((::unity::module_base()+0x1beb4e0usize)as*mut u8,();
41(LifespanManager)__receiver)
42 }
43 }
44 #[doc = "`Update()` overload"]
45 fn update(self) -> () {
46 unsafe {
47 let __receiver = <LifespanManager as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
48 ::unity::il2cpp_call!((::unity::module_base()+0x1beb4f0usize)as*mut u8,();
49(LifespanManager)__receiver)
50 }
51 }
52 #[doc = "`.ctor()` overload"]
53 fn ctor(self) -> () {
54 unsafe {
55 let __receiver = <LifespanManager as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
56 ::unity::il2cpp_call!((::unity::module_base()+0x1beb5d0usize)as*mut u8,();
57(LifespanManager)__receiver)
58 }
59 }
60}
61
62#[cfg(feature = "app-lifespanmanager")]
63impl<__T: ILifespanManager> ILifespanManagerMethods for __T {}
64
65#[cfg(feature = "app-lifespanmanager")]
66impl LifespanManager {
67 pub fn start_method_info() -> &'static ::unity::il2cpp::MethodInfo {
68 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
69 }
70
71 pub fn update_method_info() -> &'static ::unity::il2cpp::MethodInfo {
72 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
73 }
74
75 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
76 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
77 }
78}
79
80#[cfg(feature = "app-lifespanmanager")]
81impl LifespanManager {
82 #[doc = "`.ctor()` — no args"]
83 pub fn new() -> Self {
84 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
85 panic!(
86 "{}
87::{}
88 failed to instantiate",
89 ::core::stringify!(LifespanManager),
90 ::core::stringify!(new),
91 )
92 });
93 <Self as ILifespanManagerMethods>::ctor(this);
94 this
95 }
96}
97
98#[cfg(feature = "app-lifespanmanager")]
99#[doc(hidden)]
100pub mod prelude {
101 pub use super::{ILifespanManager, ILifespanManagerMethods, LifespanManager};
102 #[cfg(feature = "system-object")]
103 pub use crate::system::object::IObjectMethods;
104 #[cfg(feature = "unity_engine-behaviour")]
105 pub use crate::unity_engine::behaviour::IBehaviourMethods;
106 #[cfg(feature = "unity_engine-component")]
107 pub use crate::unity_engine::component::IComponentMethods;
108 #[cfg(feature = "unity_engine-monobehaviour")]
109 pub use crate::unity_engine::monobehaviour::IMonoBehaviourMethods;
110 #[cfg(feature = "unity_engine-object_2")]
111 pub use crate::unity_engine::object_2::IObject_2Methods;
112 pub use crate::{
113 system::object::IObject,
114 unity_engine::{behaviour::IBehaviour, component::IComponent, monobehaviour::IMonoBehaviour, object_2::IObject_2},
115 };
116}