Skip to main content

engage/generated/root/
windactor.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "root-windactor-types")]
4mod __types {
5    #[allow(unused_imports)] use ::unity::prelude::*;
6
7    use super::*;
8    use crate::{
9        system::{
10            delegate::{Delegate, IDelegate},
11            multicastdelegate::{IMulticastDelegate, MulticastDelegate},
12            object::{IObject, Object},
13            r#enum::{Enum, IEnum},
14            valuetype::{IValueType, ValueType},
15        },
16        unity_engine::{
17            behaviour::{Behaviour, IBehaviour},
18            component::{Component, IComponent},
19            monobehaviour::{IMonoBehaviour, MonoBehaviour},
20            object_2::{IObject_2, Object_2},
21        },
22    };
23
24    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/root/windactor/WindActor_Func.md"))]
25    #[::unity::class(namespace = "", name = "WindActor.Func")]
26    #[parent(crate::system::multicastdelegate::MulticastDelegate)]
27    pub struct WindActor_Func {}
28
29    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/root/windactor/WindActor.md"))]
30    #[::unity::class(namespace = "", name = "WindActor")]
31    #[parent(crate::unity_engine::monobehaviour::MonoBehaviour)]
32    pub struct WindActor {
33        #[offset(24)]
34        #[rename(name = "m_Kind")]
35        pub m_kind: crate::root::windactor::WindActor_Kind,
36        #[offset(28)]
37        #[rename(name = "m_Power")]
38        pub m_power: f32,
39        #[offset(32)]
40        #[rename(name = "m_Radius")]
41        pub m_radius: f32,
42        #[offset(36)]
43        #[rename(name = "m_Life")]
44        pub m_life: f32,
45        #[offset(40)]
46        #[rename(name = "m_Speed")]
47        pub m_speed: f32,
48        #[offset(44)]
49        #[rename(name = "m_Angle")]
50        pub m_angle: f32,
51        #[offset(48)]
52        #[rename(name = "m_Range")]
53        pub m_range: crate::unity_engine::vector2::Vector2,
54        #[offset(56)]
55        #[rename(name = "m_Time")]
56        pub m_time: f32,
57        #[offset(64)]
58        #[rename(name = "m_Funcs")]
59        pub m_funcs: ::unity::Array<crate::root::windactor::WindActor_Func>,
60    }
61
62    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/root/windactor/WindActor_Kind.md"))]
63    #[repr(C)]
64    #[derive(::core::clone::Clone, ::core::marker::Copy, ::core::fmt::Debug, ::core::cmp::PartialEq, ::core::cmp::Eq)]
65    pub struct WindActor_Kind {
66        pub value: i32,
67    }
68    impl ::unity::ClassIdentity for WindActor_Kind {
69        const NAME: &'static str = "WindActor.Kind";
70        const NAMESPACE: &'static str = "";
71
72        fn class() -> ::unity::Class {
73            static CACHE: ::std::sync::OnceLock<::unity::Class> = ::std::sync::OnceLock::new();
74            *CACHE.get_or_init(|| ::unity::Class::lookup(Self::NAMESPACE, Self::NAME))
75        }
76    }
77    impl ::unity::IlType for WindActor_Kind {
78        fn il_type() -> &'static ::unity::il2cpp::Il2CppType {
79            &<Self as ::unity::ClassIdentity>::class().raw()._1.byval_arg
80        }
81    }
82    impl WindActor_Kind {
83        pub fn none() -> Self {
84            Self { value: 0 }
85        }
86
87        pub fn directional() -> Self {
88            Self { value: 1 }
89        }
90
91        pub fn sphere() -> Self {
92            Self { value: 2 }
93        }
94    }
95}
96
97#[cfg(feature = "root-windactor-types")]
98pub use __types::*;
99
100#[cfg(feature = "root-windactor")]
101pub trait IWindActor_FuncMethods: IWindActor_Func {
102    #[doc = "`.ctor(crate::system::object::Object, ::unity::IntPtr)` overload"]
103    fn ctor(self, object: impl ::core::convert::Into<crate::system::object::Object>, method: impl ::core::convert::Into<::unity::IntPtr>) -> () {
104        unsafe {
105            let __receiver = <WindActor_Func as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
106            ::unity::il2cpp_call!((::unity::module_base()+0x1b2dcf0usize)as*mut u8,();
107(WindActor_Func)__receiver,(crate::system::object::Object)::core::convert::Into::into(object),(::unity::IntPtr)::core::convert::Into::into(method))
108        }
109    }
110    #[doc = "`Invoke(crate::unity_engine::vector3::Vector3)` overload"]
111    fn invoke(self, pos: impl ::core::convert::Into<crate::unity_engine::vector3::Vector3>) -> crate::unity_engine::vector3::Vector3 {
112        unsafe {
113            let __receiver = <WindActor_Func as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
114            {
115                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
116                let __vi = *__vt.get(13usize).unwrap_or_else(|| {
117                    panic!(
118                        "unity: virtual slot {}
119 out of range (vtable len {}
120) on the runtime class behind {}
121 (method `{}
122`)",
123                        13usize,
124                        __vt.len(),
125                        <WindActor_Func as ::unity::ClassIdentity>::NAME,
126                        "Invoke",
127                    )
128                });
129                let __inner: extern "C" fn(
130                    WindActor_Func,
131                    crate::unity_engine::vector3::Vector3,
132                    ::unity::OptionalMethod,
133                ) -> crate::unity_engine::vector3::Vector3 = ::core::mem::transmute(__vi.method_ptr);
134                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
135                __inner(__receiver, ::core::convert::Into::into(pos), __mi)
136            }
137        }
138    }
139}
140
141#[cfg(feature = "root-windactor")]
142impl<__T: IWindActor_Func> IWindActor_FuncMethods for __T {}
143
144#[cfg(feature = "root-windactor")]
145impl WindActor_Func {
146    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
147        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
148    }
149
150    pub fn invoke_method_info() -> &'static ::unity::il2cpp::MethodInfo {
151        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
152    }
153}
154
155#[cfg(feature = "root-windactor")]
156impl WindActor_Func {
157    #[doc = "Direct (non-virtual) call to `WindActor_Func`'s own `Invoke`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
158    pub unsafe fn invoke(
159        this: impl ::core::convert::Into<::unity::IlInstance>,
160        pos: crate::unity_engine::vector3::Vector3,
161    ) -> crate::unity_engine::vector3::Vector3 {
162        let __mi = Self::invoke_method_info();
163        let __inner: extern "C" fn(
164            ::unity::IlInstance,
165            crate::unity_engine::vector3::Vector3,
166            ::unity::OptionalMethod,
167        ) -> crate::unity_engine::vector3::Vector3 = ::core::mem::transmute(__mi.method_ptr);
168        __inner(this.into(), pos, ::core::option::Option::None)
169    }
170}
171
172#[cfg(feature = "root-windactor")]
173impl WindActor_Func {
174    #[doc = "`.ctor(crate::system::object::Object, ::unity::IntPtr)` — overload selector"]
175    pub fn new(object: crate::system::object::Object, method: ::unity::IntPtr) -> Self {
176        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
177            panic!(
178                "{}
179::{}
180 failed to instantiate",
181                ::core::stringify!(WindActor_Func),
182                ::core::stringify!(new),
183            )
184        });
185        <Self as IWindActor_FuncMethods>::ctor(this, object, method);
186        this
187    }
188}
189
190#[cfg(feature = "root-windactor")]
191impl WindActor {
192    #[doc = "`DrawWind(crate::unity_engine::vector3::Vector3, crate::unity_engine::vector3::Vector3, crate::unity_engine::color::Color)` overload"]
193    pub fn draw_wind(
194        pos: impl ::core::convert::Into<crate::unity_engine::vector3::Vector3>,
195        dir: impl ::core::convert::Into<crate::unity_engine::vector3::Vector3>,
196        color: impl ::core::convert::Into<crate::unity_engine::color::Color>,
197    ) -> () {
198        unsafe {
199            ::unity::il2cpp_call!((::unity::module_base()+0x293edf0usize)as*mut u8,();
200(crate::unity_engine::vector3::Vector3)::core::convert::Into::into(pos),(crate::unity_engine::vector3::Vector3)::core::convert::Into::into(dir),(crate::unity_engine::color::Color)::core::convert::Into::into(color))
201        }
202    }
203}
204
205#[cfg(feature = "root-windactor")]
206pub trait IWindActorMethods: IWindActor {
207    #[doc = "`FuncNone(crate::unity_engine::vector3::Vector3)` overload"]
208    fn func_none(self, pos: impl ::core::convert::Into<crate::unity_engine::vector3::Vector3>) -> crate::unity_engine::vector3::Vector3 {
209        unsafe {
210            let __receiver = <WindActor as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
211            ::unity::il2cpp_call!((::unity::module_base()+0x293e5f0usize)as*mut u8,crate::unity_engine::vector3::Vector3;
212(WindActor)__receiver,(crate::unity_engine::vector3::Vector3)::core::convert::Into::into(pos))
213        }
214    }
215    #[doc = "`FuncDirectional(crate::unity_engine::vector3::Vector3)` overload"]
216    fn func_directional(self, pos: impl ::core::convert::Into<crate::unity_engine::vector3::Vector3>) -> crate::unity_engine::vector3::Vector3 {
217        unsafe {
218            let __receiver = <WindActor as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
219            ::unity::il2cpp_call!((::unity::module_base()+0x293e600usize)as*mut u8,crate::unity_engine::vector3::Vector3;
220(WindActor)__receiver,(crate::unity_engine::vector3::Vector3)::core::convert::Into::into(pos))
221        }
222    }
223    #[doc = "`FuncSphere(crate::unity_engine::vector3::Vector3)` overload"]
224    fn func_sphere(self, pos: impl ::core::convert::Into<crate::unity_engine::vector3::Vector3>) -> crate::unity_engine::vector3::Vector3 {
225        unsafe {
226            let __receiver = <WindActor as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
227            ::unity::il2cpp_call!((::unity::module_base()+0x293e7b0usize)as*mut u8,crate::unity_engine::vector3::Vector3;
228(WindActor)__receiver,(crate::unity_engine::vector3::Vector3)::core::convert::Into::into(pos))
229        }
230    }
231    #[doc = "`Awake()` overload"]
232    fn awake(self) -> () {
233        unsafe {
234            let __receiver = <WindActor as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
235            ::unity::il2cpp_call!((::unity::module_base()+0x293e970usize)as*mut u8,();
236(WindActor)__receiver)
237        }
238    }
239    #[doc = "`Start()` overload"]
240    fn start(self) -> () {
241        unsafe {
242            let __receiver = <WindActor as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
243            ::unity::il2cpp_call!((::unity::module_base()+0x293eb40usize)as*mut u8,();
244(WindActor)__receiver)
245        }
246    }
247    #[doc = "`Update()` overload"]
248    fn update(self) -> () {
249        unsafe {
250            let __receiver = <WindActor as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
251            ::unity::il2cpp_call!((::unity::module_base()+0x293eb50usize)as*mut u8,();
252(WindActor)__receiver)
253        }
254    }
255    #[doc = "`Calculate(crate::unity_engine::vector3::Vector3)` overload"]
256    fn calculate(self, pos: impl ::core::convert::Into<crate::unity_engine::vector3::Vector3>) -> crate::unity_engine::vector3::Vector3 {
257        unsafe {
258            let __receiver = <WindActor as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
259            ::unity::il2cpp_call!((::unity::module_base()+0x293ec60usize)as*mut u8,crate::unity_engine::vector3::Vector3;
260(WindActor)__receiver,(crate::unity_engine::vector3::Vector3)::core::convert::Into::into(pos))
261        }
262    }
263    #[doc = "`OnDrawGizmos()` overload"]
264    fn on_draw_gizmos(self) -> () {
265        unsafe {
266            let __receiver = <WindActor as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
267            ::unity::il2cpp_call!((::unity::module_base()+0x293eca0usize)as*mut u8,();
268(WindActor)__receiver)
269        }
270    }
271    #[doc = "`OnEnable()` overload"]
272    fn on_enable(self) -> () {
273        unsafe {
274            let __receiver = <WindActor as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
275            ::unity::il2cpp_call!((::unity::module_base()+0x293f070usize)as*mut u8,();
276(WindActor)__receiver)
277        }
278    }
279    #[doc = "`OnDisable()` overload"]
280    fn on_disable(self) -> () {
281        unsafe {
282            let __receiver = <WindActor as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
283            ::unity::il2cpp_call!((::unity::module_base()+0x293f1a0usize)as*mut u8,();
284(WindActor)__receiver)
285        }
286    }
287    #[doc = "`.ctor()` overload"]
288    fn ctor(self) -> () {
289        unsafe {
290            let __receiver = <WindActor as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
291            ::unity::il2cpp_call!((::unity::module_base()+0x293f2d0usize)as*mut u8,();
292(WindActor)__receiver)
293        }
294    }
295}
296
297#[cfg(feature = "root-windactor")]
298impl<__T: IWindActor> IWindActorMethods for __T {}
299
300#[cfg(feature = "root-windactor")]
301impl WindActor {
302    pub fn func_none_method_info() -> &'static ::unity::il2cpp::MethodInfo {
303        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
304    }
305
306    pub fn func_directional_method_info() -> &'static ::unity::il2cpp::MethodInfo {
307        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
308    }
309
310    pub fn func_sphere_method_info() -> &'static ::unity::il2cpp::MethodInfo {
311        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
312    }
313
314    pub fn awake_method_info() -> &'static ::unity::il2cpp::MethodInfo {
315        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
316    }
317
318    pub fn start_method_info() -> &'static ::unity::il2cpp::MethodInfo {
319        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
320    }
321
322    pub fn update_method_info() -> &'static ::unity::il2cpp::MethodInfo {
323        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
324    }
325
326    pub fn calculate_method_info() -> &'static ::unity::il2cpp::MethodInfo {
327        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
328    }
329
330    pub fn on_draw_gizmos_method_info() -> &'static ::unity::il2cpp::MethodInfo {
331        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
332    }
333
334    pub fn on_enable_method_info() -> &'static ::unity::il2cpp::MethodInfo {
335        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
336    }
337
338    pub fn on_disable_method_info() -> &'static ::unity::il2cpp::MethodInfo {
339        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
340    }
341
342    pub fn draw_wind_method_info() -> &'static ::unity::il2cpp::MethodInfo {
343        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
344    }
345
346    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
347        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[11]
348    }
349}
350
351#[cfg(feature = "root-windactor")]
352impl WindActor {
353    #[doc = "`.ctor()` — no args"]
354    pub fn new() -> Self {
355        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
356            panic!(
357                "{}
358::{}
359 failed to instantiate",
360                ::core::stringify!(WindActor),
361                ::core::stringify!(new),
362            )
363        });
364        <Self as IWindActorMethods>::ctor(this);
365        this
366    }
367}
368
369#[cfg(feature = "root-windactor")]
370#[doc(hidden)]
371pub mod prelude {
372    pub use super::{IWindActor, IWindActorMethods, IWindActor_Func, IWindActor_FuncMethods, WindActor, WindActor_Func, WindActor_Kind};
373    #[cfg(feature = "system-delegate")]
374    pub use crate::system::delegate::IDelegateMethods;
375    #[cfg(feature = "system-multicastdelegate")]
376    pub use crate::system::multicastdelegate::IMulticastDelegateMethods;
377    #[cfg(feature = "system-object")]
378    pub use crate::system::object::IObjectMethods;
379    #[cfg(feature = "system-enum")]
380    pub use crate::system::r#enum::IEnumMethods;
381    #[cfg(feature = "system-valuetype")]
382    pub use crate::system::valuetype::IValueTypeMethods;
383    #[cfg(feature = "unity_engine-behaviour")]
384    pub use crate::unity_engine::behaviour::IBehaviourMethods;
385    #[cfg(feature = "unity_engine-component")]
386    pub use crate::unity_engine::component::IComponentMethods;
387    #[cfg(feature = "unity_engine-monobehaviour")]
388    pub use crate::unity_engine::monobehaviour::IMonoBehaviourMethods;
389    #[cfg(feature = "unity_engine-object_2")]
390    pub use crate::unity_engine::object_2::IObject_2Methods;
391    pub use crate::{
392        system::{delegate::IDelegate, multicastdelegate::IMulticastDelegate, object::IObject, r#enum::IEnum, valuetype::IValueType},
393        unity_engine::{behaviour::IBehaviour, component::IComponent, monobehaviour::IMonoBehaviour, object_2::IObject_2},
394    };
395}