Skip to main content

engage/generated/app/
hubmovecontroller.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "app-hubmovecontroller-types")]
4mod __types {
5    #[allow(unused_imports)] use ::unity::prelude::*;
6
7    use super::*;
8    use crate::system::object::{IObject, Object};
9
10    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/hubmovecontroller/HubMoveController.md"))]
11    #[::unity::class(namespace = "App", name = "HubMoveController")]
12    #[parent(crate::system::object::Object)]
13    pub struct HubMoveController {
14        #[offset(24)]
15        #[rename(name = "m_unit")]
16        pub m_unit: crate::app::hubunitcontroller::HubUnitController,
17        #[offset(32)]
18        #[rename(name = "m_State")]
19        pub m_state: crate::system::collections::generic::list_1::List_1<crate::app::hubmovestate::HubMoveState>,
20        #[offset(40)]
21        #[rename(name = "m_current")]
22        pub m_current: crate::app::hubmovestate::HubMoveState,
23        #[offset(48)]
24        #[rename(name = "m_ActiveIndex")]
25        pub m_active_index: i32,
26    }
27}
28
29#[cfg(feature = "app-hubmovecontroller-types")]
30pub use __types::*;
31
32#[cfg(feature = "app-hubmovecontroller")]
33pub trait IHubMoveControllerMethods: IHubMoveController {
34    #[doc = "`get_IsPause()` overload"]
35    fn get_is_pause(self) -> bool {
36        unsafe {
37            let __receiver = <HubMoveController as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
38            ::unity::il2cpp_call!((::unity::module_base()+0x28bea30usize)as*mut u8,bool;
39(HubMoveController)__receiver)
40        }
41    }
42    #[doc = "`set_IsPause(bool)` overload"]
43    fn set_is_pause(self, value: impl ::core::convert::Into<bool>) -> () {
44        unsafe {
45            let __receiver = <HubMoveController as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
46            ::unity::il2cpp_call!((::unity::module_base()+0x28bea40usize)as*mut u8,();
47(HubMoveController)__receiver,(bool)::core::convert::Into::into(value))
48        }
49    }
50    #[doc = "`.ctor(crate::app::hubunitcontroller::HubUnitController, crate::app::structdataarraylist_1::StructDataArrayList_1<crate::app::hubmovedata::HubMoveData>)` overload"]
51    fn ctor(
52        self,
53        unit: impl ::core::convert::Into<crate::app::hubunitcontroller::HubUnitController>,
54        move_data: impl ::core::convert::Into<crate::app::structdataarraylist_1::StructDataArrayList_1<crate::app::hubmovedata::HubMoveData>>,
55    ) -> () {
56        unsafe {
57            let __receiver = <HubMoveController as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
58            ::unity::il2cpp_call!((::unity::module_base()+0x28bea50usize)as*mut u8,();
59(HubMoveController)__receiver,(crate::app::hubunitcontroller::HubUnitController)::core::convert::Into::into(unit),(crate::app::structdataarraylist_1::StructDataArrayList_1<crate::app::hubmovedata::HubMoveData>)::core::convert::Into::into(move_data))
60        }
61    }
62    #[doc = "`Update()` overload"]
63    fn update(self) -> () {
64        unsafe {
65            let __receiver = <HubMoveController as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
66            ::unity::il2cpp_call!((::unity::module_base()+0x28bf3d0usize)as*mut u8,();
67(HubMoveController)__receiver)
68        }
69    }
70    #[doc = "`Pause(bool)` overload"]
71    fn pause(self, force: impl ::core::convert::Into<bool>) -> () {
72        unsafe {
73            let __receiver = <HubMoveController as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
74            ::unity::il2cpp_call!((::unity::module_base()+0x28bf500usize)as*mut u8,();
75(HubMoveController)__receiver,(bool)::core::convert::Into::into(force))
76        }
77    }
78    #[doc = "`Resume()` overload"]
79    fn resume(self) -> () {
80        unsafe {
81            let __receiver = <HubMoveController as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
82            ::unity::il2cpp_call!((::unity::module_base()+0x28bf5a0usize)as*mut u8,();
83(HubMoveController)__receiver)
84        }
85    }
86    #[doc = "`SelectState()` overload"]
87    fn select_state(self) -> crate::app::hubmovestate::HubMoveState {
88        unsafe {
89            let __receiver = <HubMoveController as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
90            ::unity::il2cpp_call!((::unity::module_base()+0x28bf310usize)as*mut u8,crate::app::hubmovestate::HubMoveState;
91(HubMoveController)__receiver)
92        }
93    }
94    #[doc = "`TryGetPosition(::unity::Il2CppString)` overload"]
95    fn try_get_position(self, locator_name: impl ::core::convert::Into<::unity::Il2CppString>) -> crate::unity_engine::vector3::Vector3 {
96        unsafe {
97            let __receiver = <HubMoveController as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
98            ::unity::il2cpp_call!((::unity::module_base()+0x28bf0a0usize)as*mut u8,crate::unity_engine::vector3::Vector3;
99(HubMoveController)__receiver,(::unity::Il2CppString)::core::convert::Into::into(locator_name))
100        }
101    }
102    #[doc = "`GetState(crate::app::hubmovedata::HubMoveData)` overload"]
103    fn get_state(self, data: impl ::core::convert::Into<crate::app::hubmovedata::HubMoveData>) -> crate::app::hubmovestate::HubMoveState {
104        unsafe {
105            let __receiver = <HubMoveController as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
106            ::unity::il2cpp_call!((::unity::module_base()+0x28bf150usize)as*mut u8,crate::app::hubmovestate::HubMoveState;
107(HubMoveController)__receiver,(crate::app::hubmovedata::HubMoveData)::core::convert::Into::into(data))
108        }
109    }
110    #[doc = "`OnDrawGizmos()` overload"]
111    fn on_draw_gizmos(self) -> () {
112        unsafe {
113            let __receiver = <HubMoveController as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
114            ::unity::il2cpp_call!((::unity::module_base()+0x28bf690usize)as*mut u8,();
115(HubMoveController)__receiver)
116        }
117    }
118}
119
120#[cfg(feature = "app-hubmovecontroller")]
121impl<__T: IHubMoveController> IHubMoveControllerMethods for __T {}
122
123#[cfg(feature = "app-hubmovecontroller")]
124impl HubMoveController {
125    pub fn get_is_pause_method_info() -> &'static ::unity::il2cpp::MethodInfo {
126        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
127    }
128
129    pub fn set_is_pause_method_info() -> &'static ::unity::il2cpp::MethodInfo {
130        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
131    }
132
133    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
134        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
135    }
136
137    pub fn update_method_info() -> &'static ::unity::il2cpp::MethodInfo {
138        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
139    }
140
141    pub fn pause_method_info() -> &'static ::unity::il2cpp::MethodInfo {
142        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
143    }
144
145    pub fn resume_method_info() -> &'static ::unity::il2cpp::MethodInfo {
146        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
147    }
148
149    pub fn select_state_method_info() -> &'static ::unity::il2cpp::MethodInfo {
150        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
151    }
152
153    pub fn try_get_position_method_info() -> &'static ::unity::il2cpp::MethodInfo {
154        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
155    }
156
157    pub fn get_state_method_info() -> &'static ::unity::il2cpp::MethodInfo {
158        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
159    }
160
161    pub fn on_draw_gizmos_method_info() -> &'static ::unity::il2cpp::MethodInfo {
162        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
163    }
164}
165
166#[cfg(feature = "app-hubmovecontroller")]
167impl HubMoveController {
168    #[doc = "`.ctor(crate::app::hubunitcontroller::HubUnitController, crate::app::structdataarraylist_1::StructDataArrayList_1<crate::app::hubmovedata::HubMoveData>)` — overload selector"]
169    pub fn new(
170        unit: crate::app::hubunitcontroller::HubUnitController,
171        move_data: crate::app::structdataarraylist_1::StructDataArrayList_1<crate::app::hubmovedata::HubMoveData>,
172    ) -> Self {
173        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
174            panic!(
175                "{}
176::{}
177 failed to instantiate",
178                ::core::stringify!(HubMoveController),
179                ::core::stringify!(new),
180            )
181        });
182        <Self as IHubMoveControllerMethods>::ctor(this, unit, move_data);
183        this
184    }
185}
186
187#[cfg(feature = "app-hubmovecontroller")]
188#[doc(hidden)]
189pub mod prelude {
190    pub use super::{HubMoveController, IHubMoveController, IHubMoveControllerMethods};
191    pub use crate::system::object::IObject;
192    #[cfg(feature = "system-object")]
193    pub use crate::system::object::IObjectMethods;
194}