Skip to main content

engage/generated/combat/
effecthandle.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "combat-effecthandle-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/combat/effecthandle/EffectHandle.md"))]
19    #[::unity::class(namespace = "Combat", name = "EffectHandle")]
20    #[parent(crate::unity_engine::monobehaviour::MonoBehaviour)]
21    pub struct EffectHandle {
22        #[offset(24)]
23        #[rename(name = "m_ParticleSystem")]
24        pub m_particle_system: crate::unity_engine::particlesystem::ParticleSystem,
25    }
26}
27
28#[cfg(feature = "combat-effecthandle-types")]
29pub use __types::*;
30
31#[cfg(feature = "combat-effecthandle")]
32impl EffectHandle {
33    #[doc = "`Create(crate::unity_engine::gameobject::GameObject, crate::unity_engine::transform::Transform, bool)` overload"]
34    pub fn create(
35        prefab: impl ::core::convert::Into<crate::unity_engine::gameobject::GameObject>,
36        parent: impl ::core::convert::Into<crate::unity_engine::transform::Transform>,
37        uncached: impl ::core::convert::Into<bool>,
38    ) -> crate::unity_engine::gameobject::GameObject {
39        unsafe {
40            ::unity::il2cpp_call!((::unity::module_base()+0x22d7060usize)as*mut u8,crate::unity_engine::gameobject::GameObject;
41(crate::unity_engine::gameobject::GameObject)::core::convert::Into::into(prefab),(crate::unity_engine::transform::Transform)::core::convert::Into::into(parent),(bool)::core::convert::Into::into(uncached))
42        }
43    }
44}
45
46#[cfg(feature = "combat-effecthandle")]
47pub trait IEffectHandleMethods: IEffectHandle {
48    #[doc = "`IsAlive()` overload"]
49    fn is_alive(self) -> bool {
50        unsafe {
51            let __receiver = <EffectHandle as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
52            ::unity::il2cpp_call!((::unity::module_base()+0x22d8910usize)as*mut u8,bool;
53(EffectHandle)__receiver)
54        }
55    }
56    #[doc = "`Awake()` overload"]
57    fn awake(self) -> () {
58        unsafe {
59            let __receiver = <EffectHandle as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
60            ::unity::il2cpp_call!((::unity::module_base()+0x22d89b0usize)as*mut u8,();
61(EffectHandle)__receiver)
62        }
63    }
64    #[doc = "`LateUpdate()` overload"]
65    fn late_update(self) -> () {
66        unsafe {
67            let __receiver = <EffectHandle as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
68            ::unity::il2cpp_call!((::unity::module_base()+0x22d8b40usize)as*mut u8,();
69(EffectHandle)__receiver)
70        }
71    }
72    #[doc = "`Stop()` overload"]
73    fn stop(self) -> () {
74        unsafe {
75            let __receiver = <EffectHandle as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
76            ::unity::il2cpp_call!((::unity::module_base()+0x22d8c60usize)as*mut u8,();
77(EffectHandle)__receiver)
78        }
79    }
80    #[doc = "`StopAndClear()` overload"]
81    fn stop_and_clear(self) -> () {
82        unsafe {
83            let __receiver = <EffectHandle as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
84            ::unity::il2cpp_call!((::unity::module_base()+0x22d8c80usize)as*mut u8,();
85(EffectHandle)__receiver)
86        }
87    }
88    #[doc = "`.ctor()` overload"]
89    fn ctor(self) -> () {
90        unsafe {
91            let __receiver = <EffectHandle as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
92            ::unity::il2cpp_call!((::unity::module_base()+0x22d8ca0usize)as*mut u8,();
93(EffectHandle)__receiver)
94        }
95    }
96}
97
98#[cfg(feature = "combat-effecthandle")]
99impl<__T: IEffectHandle> IEffectHandleMethods for __T {}
100
101#[cfg(feature = "combat-effecthandle")]
102impl EffectHandle {
103    pub fn create_method_info() -> &'static ::unity::il2cpp::MethodInfo {
104        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
105    }
106
107    pub fn is_alive_method_info() -> &'static ::unity::il2cpp::MethodInfo {
108        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
109    }
110
111    pub fn awake_method_info() -> &'static ::unity::il2cpp::MethodInfo {
112        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
113    }
114
115    pub fn late_update_method_info() -> &'static ::unity::il2cpp::MethodInfo {
116        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
117    }
118
119    pub fn stop_method_info() -> &'static ::unity::il2cpp::MethodInfo {
120        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
121    }
122
123    pub fn stop_and_clear_method_info() -> &'static ::unity::il2cpp::MethodInfo {
124        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
125    }
126
127    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
128        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
129    }
130}
131
132#[cfg(feature = "combat-effecthandle")]
133impl EffectHandle {
134    #[doc = "`.ctor()` — no args"]
135    pub fn new() -> Self {
136        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
137            panic!(
138                "{}
139::{}
140 failed to instantiate",
141                ::core::stringify!(EffectHandle),
142                ::core::stringify!(new),
143            )
144        });
145        <Self as IEffectHandleMethods>::ctor(this);
146        this
147    }
148}
149
150#[cfg(feature = "combat-effecthandle")]
151#[doc(hidden)]
152pub mod prelude {
153    pub use super::{EffectHandle, IEffectHandle, IEffectHandleMethods};
154    #[cfg(feature = "system-object")]
155    pub use crate::system::object::IObjectMethods;
156    #[cfg(feature = "unity_engine-behaviour")]
157    pub use crate::unity_engine::behaviour::IBehaviourMethods;
158    #[cfg(feature = "unity_engine-component")]
159    pub use crate::unity_engine::component::IComponentMethods;
160    #[cfg(feature = "unity_engine-monobehaviour")]
161    pub use crate::unity_engine::monobehaviour::IMonoBehaviourMethods;
162    #[cfg(feature = "unity_engine-object_2")]
163    pub use crate::unity_engine::object_2::IObject_2Methods;
164    pub use crate::{
165        system::object::IObject,
166        unity_engine::{behaviour::IBehaviour, component::IComponent, monobehaviour::IMonoBehaviour, object_2::IObject_2},
167    };
168}