Skip to main content

engage/generated/app/
mascotpresentationroot.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "app-mascotpresentationroot-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/mascotpresentationroot/MascotPresentationRoot.md"))]
11    #[::unity::class(namespace = "App", name = "MascotPresentationRoot")]
12    #[parent(crate::system::object::Object)]
13    pub struct MascotPresentationRoot {
14        #[offset(16)]
15        #[rename(name = "Root")]
16        pub root: crate::unity_engine::gameobject::GameObject,
17        #[offset(24)]
18        #[rename(name = "MascotRoot")]
19        pub mascot_root: crate::unity_engine::gameobject::GameObject,
20        #[offset(32)]
21        #[rename(name = "PlayerRoot")]
22        pub player_root: crate::unity_engine::gameobject::GameObject,
23        #[offset(40)]
24        #[rename(name = "CameraRoot")]
25        pub camera_root: crate::unity_engine::gameobject::GameObject,
26        #[offset(48)]
27        #[rename(name = "PlayerReserveRoot")]
28        pub player_reserve_root: crate::unity_engine::transform::Transform,
29        #[offset(56)]
30        #[rename(name = "PlayerReservePosition")]
31        pub player_reserve_position: crate::unity_engine::vector3::Vector3,
32        #[offset(68)]
33        #[rename(name = "PlayerReserveRotationY")]
34        pub player_reserve_rotation_y: f32,
35        #[offset(72)]
36        #[rename(name = "MascotReserveRoot")]
37        pub mascot_reserve_root: crate::unity_engine::transform::Transform,
38        #[offset(80)]
39        #[rename(name = "MascotReservePosition")]
40        pub mascot_reserve_position: crate::unity_engine::vector3::Vector3,
41        #[offset(92)]
42        #[rename(name = "MascotReserveRotation")]
43        pub mascot_reserve_rotation: crate::unity_engine::quaternion::Quaternion,
44        #[offset(112)]
45        #[rename(name = "CameraReserveRoot")]
46        pub camera_reserve_root: crate::unity_engine::transform::Transform,
47        #[offset(120)]
48        #[rename(name = "m_Apply")]
49        pub m_apply: bool,
50    }
51}
52
53#[cfg(feature = "app-mascotpresentationroot-types")]
54pub use __types::*;
55
56#[cfg(feature = "app-mascotpresentationroot")]
57impl MascotPresentationRoot {
58    #[doc = "`GetLocation()` overload"]
59    pub fn get_location() -> crate::unity_engine::vector3::Vector3 {
60        unsafe {
61            ::unity::il2cpp_call!((::unity::module_base()+0x20358f0usize)as*mut u8,crate::unity_engine::vector3::Vector3;
62            )
63        }
64    }
65
66    #[doc = "`GetRotation()` overload"]
67    pub fn get_rotation() -> crate::unity_engine::quaternion::Quaternion {
68        unsafe {
69            ::unity::il2cpp_call!((::unity::module_base()+0x2035a60usize)as*mut u8,crate::unity_engine::quaternion::Quaternion;
70            )
71        }
72    }
73}
74
75#[cfg(feature = "app-mascotpresentationroot")]
76pub trait IMascotPresentationRootMethods: IMascotPresentationRoot {
77    #[doc = "`Setup(crate::unity_engine::gameobject::GameObject)` overload"]
78    fn setup(self, root: impl ::core::convert::Into<crate::unity_engine::gameobject::GameObject>) -> () {
79        unsafe {
80            let __receiver =
81                <MascotPresentationRoot as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
82            ::unity::il2cpp_call!((::unity::module_base()+0x2039b90usize)as*mut u8,();
83(MascotPresentationRoot)__receiver,(crate::unity_engine::gameobject::GameObject)::core::convert::Into::into(root))
84        }
85    }
86    #[doc = "`Apply()` overload"]
87    fn apply(self) -> () {
88        unsafe {
89            let __receiver =
90                <MascotPresentationRoot as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
91            ::unity::il2cpp_call!((::unity::module_base()+0x2035b20usize)as*mut u8,();
92(MascotPresentationRoot)__receiver)
93        }
94    }
95    #[doc = "`Revert()` overload"]
96    fn revert(self) -> () {
97        unsafe {
98            let __receiver =
99                <MascotPresentationRoot as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
100            ::unity::il2cpp_call!((::unity::module_base()+0x2036570usize)as*mut u8,();
101(MascotPresentationRoot)__receiver)
102        }
103    }
104    #[doc = "`get_PlayerController()` overload"]
105    fn get_player_controller(self) -> crate::app::hubplayercontroller::HubPlayerController {
106        unsafe {
107            let __receiver =
108                <MascotPresentationRoot as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
109            ::unity::il2cpp_call!((::unity::module_base()+0x203d9b0usize)as*mut u8,crate::app::hubplayercontroller::HubPlayerController;
110(MascotPresentationRoot)__receiver)
111        }
112    }
113    #[doc = "`get_MascotController()` overload"]
114    fn get_mascot_controller(self) -> crate::app::hubmascotcontroller::HubMascotController {
115        unsafe {
116            let __receiver =
117                <MascotPresentationRoot as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
118            ::unity::il2cpp_call!((::unity::module_base()+0x203d9c0usize)as*mut u8,crate::app::hubmascotcontroller::HubMascotController;
119(MascotPresentationRoot)__receiver)
120        }
121    }
122    #[doc = "`.ctor()` overload"]
123    fn ctor(self) -> () {
124        unsafe {
125            let __receiver =
126                <MascotPresentationRoot as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
127            ::unity::il2cpp_call!((::unity::module_base()+0x203d7b0usize)as*mut u8,();
128(MascotPresentationRoot)__receiver)
129        }
130    }
131}
132
133#[cfg(feature = "app-mascotpresentationroot")]
134impl<__T: IMascotPresentationRoot> IMascotPresentationRootMethods for __T {}
135
136#[cfg(feature = "app-mascotpresentationroot")]
137impl MascotPresentationRoot {
138    pub fn setup_method_info() -> &'static ::unity::il2cpp::MethodInfo {
139        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
140    }
141
142    pub fn apply_method_info() -> &'static ::unity::il2cpp::MethodInfo {
143        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
144    }
145
146    pub fn revert_method_info() -> &'static ::unity::il2cpp::MethodInfo {
147        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
148    }
149
150    pub fn get_player_controller_method_info() -> &'static ::unity::il2cpp::MethodInfo {
151        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
152    }
153
154    pub fn get_mascot_controller_method_info() -> &'static ::unity::il2cpp::MethodInfo {
155        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
156    }
157
158    pub fn get_location_method_info() -> &'static ::unity::il2cpp::MethodInfo {
159        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
160    }
161
162    pub fn get_rotation_method_info() -> &'static ::unity::il2cpp::MethodInfo {
163        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
164    }
165
166    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
167        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
168    }
169}
170
171#[cfg(feature = "app-mascotpresentationroot")]
172impl MascotPresentationRoot {
173    #[doc = "`.ctor()` — no args"]
174    pub fn new() -> Self {
175        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
176            panic!(
177                "{}
178::{}
179 failed to instantiate",
180                ::core::stringify!(MascotPresentationRoot),
181                ::core::stringify!(new),
182            )
183        });
184        <Self as IMascotPresentationRootMethods>::ctor(this);
185        this
186    }
187}
188
189#[cfg(feature = "app-mascotpresentationroot")]
190#[doc(hidden)]
191pub mod prelude {
192    pub use super::{IMascotPresentationRoot, IMascotPresentationRootMethods, MascotPresentationRoot};
193    pub use crate::system::object::IObject;
194    #[cfg(feature = "system-object")]
195    pub use crate::system::object::IObjectMethods;
196}