engage/generated/app/
effectsetting.rs1#[cfg(feature = "app-effectsetting-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/effectsetting/EffectSetting.md"))]
19 #[::unity::class(namespace = "App", name = "EffectSetting")]
20 #[parent(crate::unity_engine::monobehaviour::MonoBehaviour)]
21 pub struct EffectSetting {
22 #[offset(24)]
23 #[rename(name = "m_RandomTime")]
24 pub m_random_time: f32,
25 #[offset(28)]
26 #[rename(name = "m_RandomSpeed")]
27 pub m_random_speed: f32,
28 #[offset(32)]
29 #[rename(name = "m_OnStartEffect")]
30 pub m_on_start_effect: crate::unity_engine::gameobject::GameObject,
31 #[offset(40)]
32 #[rename(name = "m_OnStopEffect")]
33 pub m_on_stop_effect: crate::unity_engine::gameobject::GameObject,
34 }
35}
36
37#[cfg(feature = "app-effectsetting-types")]
38pub use __types::*;
39
40#[cfg(feature = "app-effectsetting")]
41pub trait IEffectSettingMethods: IEffectSetting {
42 #[doc = "`GetRoot()` overload"]
43 fn get_root(self) -> crate::unity_engine::transform::Transform {
44 unsafe {
45 let __receiver = <EffectSetting as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
46 ::unity::il2cpp_call!((::unity::module_base()+0x22d9630usize)as*mut u8,crate::unity_engine::transform::Transform;
47(EffectSetting)__receiver)
48 }
49 }
50 #[doc = "`OnEnable()` overload"]
51 fn on_enable(self) -> () {
52 unsafe {
53 let __receiver = <EffectSetting as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
54 ::unity::il2cpp_call!((::unity::module_base()+0x22d9740usize)as*mut u8,();
55(EffectSetting)__receiver)
56 }
57 }
58 #[doc = "`OnDisable()` overload"]
59 fn on_disable(self) -> () {
60 unsafe {
61 let __receiver = <EffectSetting as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
62 ::unity::il2cpp_call!((::unity::module_base()+0x22d98a0usize)as*mut u8,();
63(EffectSetting)__receiver)
64 }
65 }
66 #[doc = "`Start()` overload"]
67 fn start(self) -> () {
68 unsafe {
69 let __receiver = <EffectSetting as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
70 ::unity::il2cpp_call!((::unity::module_base()+0x22d9a00usize)as*mut u8,();
71(EffectSetting)__receiver)
72 }
73 }
74 #[doc = "`.ctor()` overload"]
75 fn ctor(self) -> () {
76 unsafe {
77 let __receiver = <EffectSetting as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
78 ::unity::il2cpp_call!((::unity::module_base()+0x22d9ba0usize)as*mut u8,();
79(EffectSetting)__receiver)
80 }
81 }
82}
83
84#[cfg(feature = "app-effectsetting")]
85impl<__T: IEffectSetting> IEffectSettingMethods for __T {}
86
87#[cfg(feature = "app-effectsetting")]
88impl EffectSetting {
89 pub fn get_root_method_info() -> &'static ::unity::il2cpp::MethodInfo {
90 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
91 }
92
93 pub fn on_enable_method_info() -> &'static ::unity::il2cpp::MethodInfo {
94 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
95 }
96
97 pub fn on_disable_method_info() -> &'static ::unity::il2cpp::MethodInfo {
98 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
99 }
100
101 pub fn start_method_info() -> &'static ::unity::il2cpp::MethodInfo {
102 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
103 }
104
105 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
106 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
107 }
108}
109
110#[cfg(feature = "app-effectsetting")]
111impl EffectSetting {
112 #[doc = "`.ctor()` — no args"]
113 pub fn new() -> Self {
114 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
115 panic!(
116 "{}
117::{}
118 failed to instantiate",
119 ::core::stringify!(EffectSetting),
120 ::core::stringify!(new),
121 )
122 });
123 <Self as IEffectSettingMethods>::ctor(this);
124 this
125 }
126}
127
128#[cfg(feature = "app-effectsetting")]
129#[doc(hidden)]
130pub mod prelude {
131 pub use super::{EffectSetting, IEffectSetting, IEffectSettingMethods};
132 #[cfg(feature = "system-object")]
133 pub use crate::system::object::IObjectMethods;
134 #[cfg(feature = "unity_engine-behaviour")]
135 pub use crate::unity_engine::behaviour::IBehaviourMethods;
136 #[cfg(feature = "unity_engine-component")]
137 pub use crate::unity_engine::component::IComponentMethods;
138 #[cfg(feature = "unity_engine-monobehaviour")]
139 pub use crate::unity_engine::monobehaviour::IMonoBehaviourMethods;
140 #[cfg(feature = "unity_engine-object_2")]
141 pub use crate::unity_engine::object_2::IObject_2Methods;
142 pub use crate::{
143 system::object::IObject,
144 unity_engine::{behaviour::IBehaviour, component::IComponent, monobehaviour::IMonoBehaviour, object_2::IObject_2},
145 };
146}