engage/generated/app/
hubrangeaction.rs1#[cfg(feature = "app-hubrangeaction-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/hubrangeaction/HubRangeAction.md"))]
11 #[::unity::class(namespace = "App", name = "HubRangeAction")]
12 #[parent(crate::system::object::Object)]
13 pub struct HubRangeAction {
14 #[offset(36)]
15 #[rename(name = "m_time")]
16 pub m_time: f32,
17 #[offset(40)]
18 #[rename(name = "m_triggerIn")]
19 pub m_trigger_in: bool,
20 #[offset(41)]
21 #[rename(name = "m_triggerOut")]
22 pub m_trigger_out: bool,
23 #[offset(48)]
24 #[rename(name = "m_funcInRange")]
25 pub m_func_in_range: crate::system::action_1::Action_1<crate::app::hubunitcontroller::HubUnitController>,
26 #[offset(56)]
27 #[rename(name = "m_funcOutRange")]
28 pub m_func_out_range: crate::system::action_1::Action_1<crate::app::hubunitcontroller::HubUnitController>,
29 }
30}
31
32#[cfg(feature = "app-hubrangeaction-types")]
33pub use __types::*;
34
35#[cfg(feature = "app-hubrangeaction")]
36pub trait IHubRangeActionMethods: IHubRangeAction {
37 #[doc = "`get_IsStop()` overload"]
38 fn get_is_stop(self) -> bool {
39 unsafe {
40 let __receiver = <HubRangeAction as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
41 ::unity::il2cpp_call!((::unity::module_base()+0x23e7d40usize)as*mut u8,bool;
42(HubRangeAction)__receiver)
43 }
44 }
45 #[doc = "`set_IsStop(bool)` overload"]
46 fn set_is_stop(self, value: impl ::core::convert::Into<bool>) -> () {
47 unsafe {
48 let __receiver = <HubRangeAction as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
49 ::unity::il2cpp_call!((::unity::module_base()+0x23e7d50usize)as*mut u8,();
50(HubRangeAction)__receiver,(bool)::core::convert::Into::into(value))
51 }
52 }
53 #[doc = "`get_Distance()` overload"]
54 fn get_distance(self) -> f32 {
55 unsafe {
56 let __receiver = <HubRangeAction as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
57 ::unity::il2cpp_call!((::unity::module_base()+0x23e7d60usize)as*mut u8,f32;
58(HubRangeAction)__receiver)
59 }
60 }
61 #[doc = "`set_Distance(f32)` overload"]
62 fn set_distance(self, value: impl ::core::convert::Into<f32>) -> () {
63 unsafe {
64 let __receiver = <HubRangeAction as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
65 ::unity::il2cpp_call!((::unity::module_base()+0x23e7d70usize)as*mut u8,();
66(HubRangeAction)__receiver,(f32)::core::convert::Into::into(value))
67 }
68 }
69 #[doc = "`get_Interval()` overload"]
70 fn get_interval(self) -> f32 {
71 unsafe {
72 let __receiver = <HubRangeAction as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
73 ::unity::il2cpp_call!((::unity::module_base()+0x23e7d80usize)as*mut u8,f32;
74(HubRangeAction)__receiver)
75 }
76 }
77 #[doc = "`set_Interval(f32)` overload"]
78 fn set_interval(self, value: impl ::core::convert::Into<f32>) -> () {
79 unsafe {
80 let __receiver = <HubRangeAction as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
81 ::unity::il2cpp_call!((::unity::module_base()+0x23e7d90usize)as*mut u8,();
82(HubRangeAction)__receiver,(f32)::core::convert::Into::into(value))
83 }
84 }
85 #[doc = "`get_Angle()` overload"]
86 fn get_angle(self) -> f32 {
87 unsafe {
88 let __receiver = <HubRangeAction as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
89 ::unity::il2cpp_call!((::unity::module_base()+0x23e7da0usize)as*mut u8,f32;
90(HubRangeAction)__receiver)
91 }
92 }
93 #[doc = "`set_Angle(f32)` overload"]
94 fn set_angle(self, value: impl ::core::convert::Into<f32>) -> () {
95 unsafe {
96 let __receiver = <HubRangeAction as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
97 ::unity::il2cpp_call!((::unity::module_base()+0x23e7db0usize)as*mut u8,();
98(HubRangeAction)__receiver,(f32)::core::convert::Into::into(value))
99 }
100 }
101 #[doc = "`get_IsStopMain()` overload"]
102 fn get_is_stop_main(self) -> bool {
103 unsafe {
104 let __receiver = <HubRangeAction as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
105 ::unity::il2cpp_call!((::unity::module_base()+0x23e7dc0usize)as*mut u8,bool;
106(HubRangeAction)__receiver)
107 }
108 }
109 #[doc = "`set_IsStopMain(bool)` overload"]
110 fn set_is_stop_main(self, value: impl ::core::convert::Into<bool>) -> () {
111 unsafe {
112 let __receiver = <HubRangeAction as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
113 ::unity::il2cpp_call!((::unity::module_base()+0x23e7dd0usize)as*mut u8,();
114(HubRangeAction)__receiver,(bool)::core::convert::Into::into(value))
115 }
116 }
117 #[doc = "`.ctor(crate::system::action_1::Action_1<crate::app::hubunitcontroller::HubUnitController>, crate::system::action_1::Action_1<crate::app::hubunitcontroller::HubUnitController>)` overload"]
118 fn ctor(
119 self,
120 func_in_range: impl ::core::convert::Into<crate::system::action_1::Action_1<crate::app::hubunitcontroller::HubUnitController>>,
121 func_out_range: impl ::core::convert::Into<crate::system::action_1::Action_1<crate::app::hubunitcontroller::HubUnitController>>,
122 ) -> () {
123 unsafe {
124 let __receiver = <HubRangeAction as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
125 ::unity::il2cpp_call!((::unity::module_base()+0x23e7de0usize)as*mut u8,();
126(HubRangeAction)__receiver,(crate::system::action_1::Action_1<crate::app::hubunitcontroller::HubUnitController>)::core::convert::Into::into(func_in_range),(crate::system::action_1::Action_1<crate::app::hubunitcontroller::HubUnitController>)::core::convert::Into::into(func_out_range))
127 }
128 }
129 #[doc = "`Reset()` overload"]
130 fn reset(self) -> () {
131 unsafe {
132 let __receiver = <HubRangeAction as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
133 ::unity::il2cpp_call!((::unity::module_base()+0x23e7e50usize)as*mut u8,();
134(HubRangeAction)__receiver)
135 }
136 }
137 #[doc = "`Update(crate::app::hubunitcontroller::HubUnitController)` overload"]
138 fn update(self, unit: impl ::core::convert::Into<crate::app::hubunitcontroller::HubUnitController>) -> () {
139 unsafe {
140 let __receiver = <HubRangeAction as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
141 ::unity::il2cpp_call!((::unity::module_base()+0x23e7e60usize)as*mut u8,();
142(HubRangeAction)__receiver,(crate::app::hubunitcontroller::HubUnitController)::core::convert::Into::into(unit))
143 }
144 }
145}
146
147#[cfg(feature = "app-hubrangeaction")]
148impl<__T: IHubRangeAction> IHubRangeActionMethods for __T {}
149
150#[cfg(feature = "app-hubrangeaction")]
151impl HubRangeAction {
152 pub fn get_is_stop_method_info() -> &'static ::unity::il2cpp::MethodInfo {
153 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
154 }
155
156 pub fn set_is_stop_method_info() -> &'static ::unity::il2cpp::MethodInfo {
157 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
158 }
159
160 pub fn get_distance_method_info() -> &'static ::unity::il2cpp::MethodInfo {
161 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
162 }
163
164 pub fn set_distance_method_info() -> &'static ::unity::il2cpp::MethodInfo {
165 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
166 }
167
168 pub fn get_interval_method_info() -> &'static ::unity::il2cpp::MethodInfo {
169 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
170 }
171
172 pub fn set_interval_method_info() -> &'static ::unity::il2cpp::MethodInfo {
173 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
174 }
175
176 pub fn get_angle_method_info() -> &'static ::unity::il2cpp::MethodInfo {
177 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
178 }
179
180 pub fn set_angle_method_info() -> &'static ::unity::il2cpp::MethodInfo {
181 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
182 }
183
184 pub fn get_is_stop_main_method_info() -> &'static ::unity::il2cpp::MethodInfo {
185 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
186 }
187
188 pub fn set_is_stop_main_method_info() -> &'static ::unity::il2cpp::MethodInfo {
189 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
190 }
191
192 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
193 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
194 }
195
196 pub fn reset_method_info() -> &'static ::unity::il2cpp::MethodInfo {
197 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[11]
198 }
199
200 pub fn update_method_info() -> &'static ::unity::il2cpp::MethodInfo {
201 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[12]
202 }
203}
204
205#[cfg(feature = "app-hubrangeaction")]
206impl HubRangeAction {
207 #[doc = "`.ctor(crate::system::action_1::Action_1<crate::app::hubunitcontroller::HubUnitController>, crate::system::action_1::Action_1<crate::app::hubunitcontroller::HubUnitController>)` — overload selector"]
208 pub fn new(
209 func_in_range: crate::system::action_1::Action_1<crate::app::hubunitcontroller::HubUnitController>,
210 func_out_range: crate::system::action_1::Action_1<crate::app::hubunitcontroller::HubUnitController>,
211 ) -> Self {
212 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
213 panic!(
214 "{}
215::{}
216 failed to instantiate",
217 ::core::stringify!(HubRangeAction),
218 ::core::stringify!(new),
219 )
220 });
221 <Self as IHubRangeActionMethods>::ctor(this, func_in_range, func_out_range);
222 this
223 }
224}
225
226#[cfg(feature = "app-hubrangeaction")]
227#[doc(hidden)]
228pub mod prelude {
229 pub use super::{HubRangeAction, IHubRangeAction, IHubRangeActionMethods};
230 pub use crate::system::object::IObject;
231 #[cfg(feature = "system-object")]
232 pub use crate::system::object::IObjectMethods;
233}