1#[cfg(feature = "app-hubmascotcontroller-types")]
4mod __types {
5 #[allow(unused_imports)] use ::unity::prelude::*;
6
7 use super::*;
8 use crate::{
9 system::{
10 object::{IObject, Object},
11 r#enum::{Enum, IEnum},
12 valuetype::{IValueType, ValueType},
13 },
14 unity_engine::{
15 behaviour::{Behaviour, IBehaviour},
16 component::{Component, IComponent},
17 monobehaviour::{IMonoBehaviour, MonoBehaviour},
18 object_2::{IObject_2, Object_2},
19 },
20 };
21
22 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/hubmascotcontroller/HubMascotController_Mode.md"))]
23 #[repr(C)]
24 #[derive(::core::clone::Clone, ::core::marker::Copy, ::core::fmt::Debug, ::core::cmp::PartialEq, ::core::cmp::Eq)]
25 pub struct HubMascotController_Mode {
26 pub value: i32,
27 }
28 impl ::unity::ClassIdentity for HubMascotController_Mode {
29 const NAME: &'static str = "HubMascotController.Mode";
30 const NAMESPACE: &'static str = "App";
31
32 fn class() -> ::unity::Class {
33 static CACHE: ::std::sync::OnceLock<::unity::Class> = ::std::sync::OnceLock::new();
34 *CACHE.get_or_init(|| ::unity::Class::lookup(Self::NAMESPACE, Self::NAME))
35 }
36 }
37 impl ::unity::IlType for HubMascotController_Mode {
38 fn il_type() -> &'static ::unity::il2cpp::Il2CppType {
39 &<Self as ::unity::ClassIdentity>::class().raw()._1.byval_arg
40 }
41 }
42 impl HubMascotController_Mode {
43 pub fn none() -> Self {
44 Self { value: 0 }
45 }
46
47 pub fn pedestal() -> Self {
48 Self { value: 1 }
49 }
50
51 pub fn follow() -> Self {
52 Self { value: 2 }
53 }
54
55 pub fn lost() -> Self {
56 Self { value: 3 }
57 }
58 }
59
60 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/hubmascotcontroller/HubMascotController.md"))]
61 #[::unity::class(namespace = "App", name = "HubMascotController")]
62 #[parent(crate::unity_engine::monobehaviour::MonoBehaviour)]
63 pub struct HubMascotController {
64 #[offset(40)]
65 #[rename(name = "FollowSpeed1")]
66 pub follow_speed1: f32,
67 #[offset(44)]
68 #[rename(name = "FollowSpeed2")]
69 pub follow_speed2: f32,
70 #[offset(48)]
71 #[rename(name = "SpeedRate")]
72 pub speed_rate: f32,
73 #[offset(64)]
74 #[rename(name = "overlapColliders")]
75 pub overlap_colliders: ::unity::Array<crate::unity_engine::collider::Collider>,
76 #[offset(72)]
77 #[rename(name = "results")]
78 pub results: ::unity::Array<crate::unity_engine::raycasthit::RaycastHit>,
79 #[offset(80)]
80 #[rename(name = "m_animator")]
81 pub m_animator: crate::unity_engine::animator::Animator,
82 #[offset(88)]
83 #[rename(name = "m_speed")]
84 pub m_speed: f32,
85 #[offset(92)]
86 #[rename(name = "m_angle")]
87 pub m_angle: f32,
88 #[offset(96)]
89 #[rename(name = "m_lastAngle")]
90 pub m_last_angle: f32,
91 #[offset(100)]
92 #[rename(name = "m_reactionCounter")]
93 pub m_reaction_counter: f32,
94 #[offset(104)]
95 #[rename(name = "m_moveDelay")]
96 pub m_move_delay: f32,
97 #[offset(108)]
98 #[rename(name = "m_distanceTime")]
99 pub m_distance_time: f32,
100 #[offset(112)]
101 #[rename(name = "m_keepAway")]
102 pub m_keep_away: bool,
103 #[offset(113)]
104 #[rename(name = "m_reactionFirst")]
105 pub m_reaction_first: bool,
106 #[offset(116)]
107 #[rename(name = "m_findLast")]
108 pub m_find_last: crate::unity_engine::vector3::Vector3,
109 #[offset(128)]
110 #[rename(name = "m_agent")]
111 pub m_agent: crate::unity_engine::ai::navmeshagent::NavMeshAgent,
112 #[offset(136)]
113 #[rename(name = "m_path")]
114 pub m_path: crate::unity_engine::ai::navmeshpath::NavMeshPath,
115 #[offset(144)]
116 #[rename(name = "ObjectCollisionLayerMask")]
117 pub object_collision_layer_mask: i32,
118 #[offset(148)]
119 #[rename(name = "GroundCollisionLayerMask")]
120 pub ground_collision_layer_mask: i32,
121 }
122}
123
124#[cfg(feature = "app-hubmascotcontroller-types")]
125pub use __types::*;
126
127#[cfg(feature = "app-hubmascotcontroller")]
128pub trait IHubMascotControllerMethods: IHubMascotController {
129 #[doc = "`get_CurrentMode()` overload"]
130 fn get_current_mode(self) -> crate::app::hubmascotcontroller::HubMascotController_Mode {
131 unsafe {
132 let __receiver = <HubMascotController as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
133 ::unity::il2cpp_call!((::unity::module_base()+0x28b3900usize)as*mut u8,crate::app::hubmascotcontroller::HubMascotController_Mode;
134(HubMascotController)__receiver)
135 }
136 }
137 #[doc = "`set_CurrentMode(crate::app::hubmascotcontroller::HubMascotController_Mode)` overload"]
138 fn set_current_mode(self, value: impl ::core::convert::Into<crate::app::hubmascotcontroller::HubMascotController_Mode>) -> () {
139 unsafe {
140 let __receiver = <HubMascotController as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
141 ::unity::il2cpp_call!((::unity::module_base()+0x28b3910usize)as*mut u8,();
142(HubMascotController)__receiver,(crate::app::hubmascotcontroller::HubMascotController_Mode)::core::convert::Into::into(value))
143 }
144 }
145 #[doc = "`get_Agent()` overload"]
146 fn get_agent(self) -> crate::unity_engine::ai::navmeshagent::NavMeshAgent {
147 unsafe {
148 let __receiver = <HubMascotController as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
149 ::unity::il2cpp_call!((::unity::module_base()+0x28b3920usize)as*mut u8,crate::unity_engine::ai::navmeshagent::NavMeshAgent;
150(HubMascotController)__receiver)
151 }
152 }
153 #[doc = "`get_Follow()` overload"]
154 fn get_follow(self) -> crate::unity_engine::transform::Transform {
155 unsafe {
156 let __receiver = <HubMascotController as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
157 ::unity::il2cpp_call!((::unity::module_base()+0x28b3930usize)as*mut u8,crate::unity_engine::transform::Transform;
158(HubMascotController)__receiver)
159 }
160 }
161 #[doc = "`set_Follow(crate::unity_engine::transform::Transform)` overload"]
162 fn set_follow(self, value: impl ::core::convert::Into<crate::unity_engine::transform::Transform>) -> () {
163 unsafe {
164 let __receiver = <HubMascotController as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
165 ::unity::il2cpp_call!((::unity::module_base()+0x28b3940usize)as*mut u8,();
166(HubMascotController)__receiver,(crate::unity_engine::transform::Transform)::core::convert::Into::into(value))
167 }
168 }
169 #[doc = "`get_IsStop()` overload"]
170 fn get_is_stop(self) -> bool {
171 unsafe {
172 let __receiver = <HubMascotController as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
173 ::unity::il2cpp_call!((::unity::module_base()+0x28b3950usize)as*mut u8,bool;
174(HubMascotController)__receiver)
175 }
176 }
177 #[doc = "`set_IsStop(bool)` overload"]
178 fn set_is_stop(self, value: impl ::core::convert::Into<bool>) -> () {
179 unsafe {
180 let __receiver = <HubMascotController as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
181 ::unity::il2cpp_call!((::unity::module_base()+0x28b3960usize)as*mut u8,();
182(HubMascotController)__receiver,(bool)::core::convert::Into::into(value))
183 }
184 }
185 #[doc = "`get_DefaultLookAtTarget()` overload"]
186 fn get_default_look_at_target(self) -> crate::unity_engine::gameobject::GameObject {
187 unsafe {
188 let __receiver = <HubMascotController as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
189 ::unity::il2cpp_call!((::unity::module_base()+0x28b3970usize)as*mut u8,crate::unity_engine::gameobject::GameObject;
190(HubMascotController)__receiver)
191 }
192 }
193 #[doc = "`set_DefaultLookAtTarget(crate::unity_engine::gameobject::GameObject)` overload"]
194 fn set_default_look_at_target(self, value: impl ::core::convert::Into<crate::unity_engine::gameobject::GameObject>) -> () {
195 unsafe {
196 let __receiver = <HubMascotController as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
197 ::unity::il2cpp_call!((::unity::module_base()+0x28b3980usize)as*mut u8,();
198(HubMascotController)__receiver,(crate::unity_engine::gameobject::GameObject)::core::convert::Into::into(value))
199 }
200 }
201 #[doc = "`Awake()` overload"]
202 fn awake(self) -> () {
203 unsafe {
204 let __receiver = <HubMascotController as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
205 ::unity::il2cpp_call!((::unity::module_base()+0x28b3990usize)as*mut u8,();
206(HubMascotController)__receiver)
207 }
208 }
209 #[doc = "`Start()` overload"]
210 fn start(self) -> () {
211 unsafe {
212 let __receiver = <HubMascotController as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
213 ::unity::il2cpp_call!((::unity::module_base()+0x28b3a80usize)as*mut u8,();
214(HubMascotController)__receiver)
215 }
216 }
217 #[doc = "`SetBool(::unity::Il2CppString, bool)` overload"]
218 fn set_bool(self, param_name: impl ::core::convert::Into<::unity::Il2CppString>, value: impl ::core::convert::Into<bool>) -> () {
219 unsafe {
220 let __receiver = <HubMascotController as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
221 ::unity::il2cpp_call!((::unity::module_base()+0x28b3c30usize)as*mut u8,();
222(HubMascotController)__receiver,(::unity::Il2CppString)::core::convert::Into::into(param_name),(bool)::core::convert::Into::into(value))
223 }
224 }
225 #[doc = "`Play(::unity::Il2CppString, bool)` overload"]
226 fn play(self, anim_name: impl ::core::convert::Into<::unity::Il2CppString>, forced: impl ::core::convert::Into<bool>) -> () {
227 unsafe {
228 let __receiver = <HubMascotController as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
229 ::unity::il2cpp_call!((::unity::module_base()+0x28b3c40usize)as*mut u8,();
230(HubMascotController)__receiver,(::unity::Il2CppString)::core::convert::Into::into(anim_name),(bool)::core::convert::Into::into(forced))
231 }
232 }
233 #[doc = "`Update()` overload"]
234 fn update(self) -> () {
235 unsafe {
236 let __receiver = <HubMascotController as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
237 ::unity::il2cpp_call!((::unity::module_base()+0x28b3d40usize)as*mut u8,();
238(HubMascotController)__receiver)
239 }
240 }
241 #[doc = "`UpdateAgent()` overload"]
242 fn update_agent(self) -> () {
243 unsafe {
244 let __receiver = <HubMascotController as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
245 ::unity::il2cpp_call!((::unity::module_base()+0x28b3d90usize)as*mut u8,();
246(HubMascotController)__receiver)
247 }
248 }
249 #[doc = "`UpdateTrace()` overload"]
250 fn update_trace(self) -> () {
251 unsafe {
252 let __receiver = <HubMascotController as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
253 ::unity::il2cpp_call!((::unity::module_base()+0x28b3dd0usize)as*mut u8,();
254(HubMascotController)__receiver)
255 }
256 }
257 #[doc = "`.ctor()` overload"]
258 fn ctor(self) -> () {
259 unsafe {
260 let __receiver = <HubMascotController as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
261 ::unity::il2cpp_call!((::unity::module_base()+0x28b4b10usize)as*mut u8,();
262(HubMascotController)__receiver)
263 }
264 }
265}
266
267#[cfg(feature = "app-hubmascotcontroller")]
268impl<__T: IHubMascotController> IHubMascotControllerMethods for __T {}
269
270#[cfg(feature = "app-hubmascotcontroller")]
271impl HubMascotController {
272 pub fn get_current_mode_method_info() -> &'static ::unity::il2cpp::MethodInfo {
273 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
274 }
275
276 pub fn set_current_mode_method_info() -> &'static ::unity::il2cpp::MethodInfo {
277 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
278 }
279
280 pub fn get_agent_method_info() -> &'static ::unity::il2cpp::MethodInfo {
281 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
282 }
283
284 pub fn get_follow_method_info() -> &'static ::unity::il2cpp::MethodInfo {
285 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
286 }
287
288 pub fn set_follow_method_info() -> &'static ::unity::il2cpp::MethodInfo {
289 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
290 }
291
292 pub fn get_is_stop_method_info() -> &'static ::unity::il2cpp::MethodInfo {
293 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
294 }
295
296 pub fn set_is_stop_method_info() -> &'static ::unity::il2cpp::MethodInfo {
297 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
298 }
299
300 pub fn get_default_look_at_target_method_info() -> &'static ::unity::il2cpp::MethodInfo {
301 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
302 }
303
304 pub fn set_default_look_at_target_method_info() -> &'static ::unity::il2cpp::MethodInfo {
305 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
306 }
307
308 pub fn awake_method_info() -> &'static ::unity::il2cpp::MethodInfo {
309 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
310 }
311
312 pub fn start_method_info() -> &'static ::unity::il2cpp::MethodInfo {
313 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
314 }
315
316 pub fn set_bool_method_info() -> &'static ::unity::il2cpp::MethodInfo {
317 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[11]
318 }
319
320 pub fn play_method_info() -> &'static ::unity::il2cpp::MethodInfo {
321 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[12]
322 }
323
324 pub fn update_method_info() -> &'static ::unity::il2cpp::MethodInfo {
325 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[13]
326 }
327
328 pub fn update_agent_method_info() -> &'static ::unity::il2cpp::MethodInfo {
329 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[14]
330 }
331
332 pub fn update_trace_method_info() -> &'static ::unity::il2cpp::MethodInfo {
333 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[15]
334 }
335
336 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
337 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[16]
338 }
339}
340
341#[cfg(feature = "app-hubmascotcontroller")]
342impl HubMascotController {
343 #[doc = "`.ctor()` — no args"]
344 pub fn new() -> Self {
345 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
346 panic!(
347 "{}
348::{}
349 failed to instantiate",
350 ::core::stringify!(HubMascotController),
351 ::core::stringify!(new),
352 )
353 });
354 <Self as IHubMascotControllerMethods>::ctor(this);
355 this
356 }
357}
358
359#[cfg(feature = "app-hubmascotcontroller")]
360#[doc(hidden)]
361pub mod prelude {
362 pub use super::{HubMascotController, HubMascotController_Mode, IHubMascotController, IHubMascotControllerMethods};
363 #[cfg(feature = "system-object")]
364 pub use crate::system::object::IObjectMethods;
365 #[cfg(feature = "system-enum")]
366 pub use crate::system::r#enum::IEnumMethods;
367 #[cfg(feature = "system-valuetype")]
368 pub use crate::system::valuetype::IValueTypeMethods;
369 #[cfg(feature = "unity_engine-behaviour")]
370 pub use crate::unity_engine::behaviour::IBehaviourMethods;
371 #[cfg(feature = "unity_engine-component")]
372 pub use crate::unity_engine::component::IComponentMethods;
373 #[cfg(feature = "unity_engine-monobehaviour")]
374 pub use crate::unity_engine::monobehaviour::IMonoBehaviourMethods;
375 #[cfg(feature = "unity_engine-object_2")]
376 pub use crate::unity_engine::object_2::IObject_2Methods;
377 pub use crate::{
378 system::{object::IObject, r#enum::IEnum, valuetype::IValueType},
379 unity_engine::{behaviour::IBehaviour, component::IComponent, monobehaviour::IMonoBehaviour, object_2::IObject_2},
380 };
381}