Skip to main content

engage/generated/app/
hubanimalcontroller.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "app-hubanimalcontroller-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/hubanimalcontroller/HubAnimalController.md"))]
19    #[::unity::class(namespace = "App", name = "HubAnimalController")]
20    #[parent(crate::unity_engine::monobehaviour::MonoBehaviour)]
21    pub struct HubAnimalController {
22        #[offset(24)]
23        #[rename(name = "m_hubUnit")]
24        pub m_hub_unit: crate::app::hubunitcontroller::HubUnitController,
25        #[offset(32)]
26        #[rename(name = "m_delay")]
27        pub m_delay: f32,
28        #[offset(36)]
29        #[rename(name = "m_isSleep")]
30        pub m_is_sleep: bool,
31        #[offset(37)]
32        #[rename(name = "m_trigger")]
33        pub m_trigger: bool,
34        #[offset(40)]
35        #[rename(name = "m_rangeAction")]
36        pub m_range_action: crate::app::hubrangeaction::HubRangeAction,
37    }
38}
39
40#[cfg(feature = "app-hubanimalcontroller-types")]
41pub use __types::*;
42
43#[cfg(feature = "app-hubanimalcontroller")]
44pub trait IHubAnimalControllerMethods: IHubAnimalController {
45    #[doc = "`Awake()` overload"]
46    fn awake(self) -> () {
47        unsafe {
48            let __receiver = <HubAnimalController as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
49            ::unity::il2cpp_call!((::unity::module_base()+0x2d76600usize)as*mut u8,();
50(HubAnimalController)__receiver)
51        }
52    }
53    #[doc = "`Update()` overload"]
54    fn update(self) -> () {
55        unsafe {
56            let __receiver = <HubAnimalController as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
57            ::unity::il2cpp_call!((::unity::module_base()+0x2d76770usize)as*mut u8,();
58(HubAnimalController)__receiver)
59        }
60    }
61    #[doc = "`EnterRange(crate::app::hubunitcontroller::HubUnitController)` overload"]
62    fn enter_range(self, unit: impl ::core::convert::Into<crate::app::hubunitcontroller::HubUnitController>) -> () {
63        unsafe {
64            let __receiver = <HubAnimalController as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
65            ::unity::il2cpp_call!((::unity::module_base()+0x2d76850usize)as*mut u8,();
66(HubAnimalController)__receiver,(crate::app::hubunitcontroller::HubUnitController)::core::convert::Into::into(unit))
67        }
68    }
69    #[doc = "`LeaveRange(crate::app::hubunitcontroller::HubUnitController)` overload"]
70    fn leave_range(self, unit: impl ::core::convert::Into<crate::app::hubunitcontroller::HubUnitController>) -> () {
71        unsafe {
72            let __receiver = <HubAnimalController as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
73            ::unity::il2cpp_call!((::unity::module_base()+0x2d76860usize)as*mut u8,();
74(HubAnimalController)__receiver,(crate::app::hubunitcontroller::HubUnitController)::core::convert::Into::into(unit))
75        }
76    }
77    #[doc = "`.ctor()` overload"]
78    fn ctor(self) -> () {
79        unsafe {
80            let __receiver = <HubAnimalController as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
81            ::unity::il2cpp_call!((::unity::module_base()+0x2d76880usize)as*mut u8,();
82(HubAnimalController)__receiver)
83        }
84    }
85}
86
87#[cfg(feature = "app-hubanimalcontroller")]
88impl<__T: IHubAnimalController> IHubAnimalControllerMethods for __T {}
89
90#[cfg(feature = "app-hubanimalcontroller")]
91impl HubAnimalController {
92    pub fn awake_method_info() -> &'static ::unity::il2cpp::MethodInfo {
93        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
94    }
95
96    pub fn update_method_info() -> &'static ::unity::il2cpp::MethodInfo {
97        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
98    }
99
100    pub fn enter_range_method_info() -> &'static ::unity::il2cpp::MethodInfo {
101        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
102    }
103
104    pub fn leave_range_method_info() -> &'static ::unity::il2cpp::MethodInfo {
105        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
106    }
107
108    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
109        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
110    }
111}
112
113#[cfg(feature = "app-hubanimalcontroller")]
114impl HubAnimalController {
115    #[doc = "`.ctor()` — no args"]
116    pub fn new() -> Self {
117        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
118            panic!(
119                "{}
120::{}
121 failed to instantiate",
122                ::core::stringify!(HubAnimalController),
123                ::core::stringify!(new),
124            )
125        });
126        <Self as IHubAnimalControllerMethods>::ctor(this);
127        this
128    }
129}
130
131#[cfg(feature = "app-hubanimalcontroller")]
132#[doc(hidden)]
133pub mod prelude {
134    pub use super::{HubAnimalController, IHubAnimalController, IHubAnimalControllerMethods};
135    #[cfg(feature = "system-object")]
136    pub use crate::system::object::IObjectMethods;
137    #[cfg(feature = "unity_engine-behaviour")]
138    pub use crate::unity_engine::behaviour::IBehaviourMethods;
139    #[cfg(feature = "unity_engine-component")]
140    pub use crate::unity_engine::component::IComponentMethods;
141    #[cfg(feature = "unity_engine-monobehaviour")]
142    pub use crate::unity_engine::monobehaviour::IMonoBehaviourMethods;
143    #[cfg(feature = "unity_engine-object_2")]
144    pub use crate::unity_engine::object_2::IObject_2Methods;
145    pub use crate::{
146        system::object::IObject,
147        unity_engine::{behaviour::IBehaviour, component::IComponent, monobehaviour::IMonoBehaviour, object_2::IObject_2},
148    };
149}