Skip to main content

engage/generated/app/
hubmascot.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "app-hubmascot-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/hubmascot/HubMascot.md"))]
11    #[::unity::class(namespace = "App", name = "HubMascot")]
12    #[parent(crate::system::object::Object)]
13    pub struct HubMascot {
14        #[static_field]
15        #[rename(name = "MascotObject")]
16        pub mascot_object: crate::unity_engine::gameobject::GameObject,
17        #[static_field]
18        #[rename(name = "m_CurrentCharacter")]
19        pub m_current_character: crate::combat::character::Character,
20        #[static_field]
21        #[rename(name = "m_LoadingCharacter")]
22        pub m_loading_character: crate::combat::character::Character,
23        #[static_field]
24        #[rename(name = "m_ParentTransform")]
25        pub m_parent_transform: crate::unity_engine::transform::Transform,
26        #[static_field]
27        #[rename(name = "m_PlayerTransform")]
28        pub m_player_transform: crate::unity_engine::transform::Transform,
29        #[static_field]
30        #[rename(name = "m_Position")]
31        pub m_position: crate::unity_engine::vector3::Vector3,
32        #[static_field]
33        #[rename(name = "m_Rotation")]
34        pub m_rotation: crate::unity_engine::quaternion::Quaternion,
35    }
36}
37
38#[cfg(feature = "app-hubmascot-types")]
39pub use __types::*;
40
41#[cfg(feature = "app-hubmascot")]
42impl HubMascot {
43    #[doc = "`Start(crate::unity_engine::transform::Transform, crate::unity_engine::transform::Transform)` overload"]
44    pub fn start(
45        parent: impl ::core::convert::Into<crate::unity_engine::transform::Transform>,
46        player: impl ::core::convert::Into<crate::unity_engine::transform::Transform>,
47    ) -> () {
48        unsafe {
49            ::unity::il2cpp_call!((::unity::module_base()+0x28b1c30usize)as*mut u8,();
50(crate::unity_engine::transform::Transform)::core::convert::Into::into(parent),(crate::unity_engine::transform::Transform)::core::convert::Into::into(player))
51        }
52    }
53
54    #[doc = "`Load(bool)` overload"]
55    pub fn load(request_follow_enable: impl ::core::convert::Into<bool>) -> () {
56        unsafe {
57            ::unity::il2cpp_call!((::unity::module_base()+0x28b2120usize)as*mut u8,();
58(bool)::core::convert::Into::into(request_follow_enable))
59        }
60    }
61
62    #[doc = "`End()` overload"]
63    pub fn end() -> () {
64        unsafe {
65            ::unity::il2cpp_call!((::unity::module_base()+0x28b26a0usize)as*mut u8,();
66            )
67        }
68    }
69
70    #[doc = "`Stop()` overload"]
71    pub fn stop() -> () {
72        unsafe {
73            ::unity::il2cpp_call!((::unity::module_base()+0x28b28c0usize)as*mut u8,();
74            )
75        }
76    }
77
78    #[doc = "`Restart()` overload"]
79    pub fn restart() -> () {
80        unsafe {
81            ::unity::il2cpp_call!((::unity::module_base()+0x28b29a0usize)as*mut u8,();
82            )
83        }
84    }
85
86    #[doc = "`EnablePlayerFollow()` overload"]
87    pub fn enable_player_follow() -> () {
88        unsafe {
89            ::unity::il2cpp_call!((::unity::module_base()+0x28b2aa0usize)as*mut u8,();
90            )
91        }
92    }
93
94    #[doc = "`DisablePlayerFollow()` overload"]
95    pub fn disable_player_follow() -> () {
96        unsafe {
97            ::unity::il2cpp_call!((::unity::module_base()+0x28b2b80usize)as*mut u8,();
98            )
99        }
100    }
101
102    #[doc = "`ChangeMascotColor()` overload"]
103    pub fn change_mascot_color() -> () {
104        unsafe {
105            ::unity::il2cpp_call!((::unity::module_base()+0x28b2c60usize)as*mut u8,();
106            )
107        }
108    }
109
110    #[doc = "`.cctor()` overload"]
111    pub fn cctor() -> () {
112        unsafe {
113            ::unity::il2cpp_call!((::unity::module_base()+0x28b2ea0usize)as*mut u8,();
114            )
115        }
116    }
117}
118
119#[cfg(feature = "app-hubmascot")]
120pub trait IHubMascotMethods: IHubMascot {
121    #[doc = "`.ctor()` overload"]
122    fn ctor(self) -> () {
123        unsafe {
124            let __receiver = <HubMascot as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
125            ::unity::il2cpp_call!((::unity::module_base()+0x28b2e90usize)as*mut u8,();
126(HubMascot)__receiver)
127        }
128    }
129}
130
131#[cfg(feature = "app-hubmascot")]
132impl<__T: IHubMascot> IHubMascotMethods for __T {}
133
134#[cfg(feature = "app-hubmascot")]
135impl HubMascot {
136    pub fn start_method_info() -> &'static ::unity::il2cpp::MethodInfo {
137        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
138    }
139
140    pub fn load_method_info() -> &'static ::unity::il2cpp::MethodInfo {
141        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
142    }
143
144    pub fn end_method_info() -> &'static ::unity::il2cpp::MethodInfo {
145        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
146    }
147
148    pub fn stop_method_info() -> &'static ::unity::il2cpp::MethodInfo {
149        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
150    }
151
152    pub fn restart_method_info() -> &'static ::unity::il2cpp::MethodInfo {
153        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
154    }
155
156    pub fn enable_player_follow_method_info() -> &'static ::unity::il2cpp::MethodInfo {
157        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
158    }
159
160    pub fn disable_player_follow_method_info() -> &'static ::unity::il2cpp::MethodInfo {
161        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
162    }
163
164    pub fn change_mascot_color_method_info() -> &'static ::unity::il2cpp::MethodInfo {
165        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
166    }
167
168    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
169        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
170    }
171
172    pub fn cctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
173        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
174    }
175}
176
177#[cfg(feature = "app-hubmascot")]
178impl HubMascot {
179    #[doc = "`.ctor()` — no args"]
180    pub fn new() -> Self {
181        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
182            panic!(
183                "{}
184::{}
185 failed to instantiate",
186                ::core::stringify!(HubMascot),
187                ::core::stringify!(new),
188            )
189        });
190        <Self as IHubMascotMethods>::ctor(this);
191        this
192    }
193}
194
195#[cfg(feature = "app-hubmascot")]
196#[doc(hidden)]
197pub mod prelude {
198    pub use super::{HubMascot, IHubMascot, IHubMascotMethods};
199    pub use crate::system::object::IObject;
200    #[cfg(feature = "system-object")]
201    pub use crate::system::object::IObjectMethods;
202}