Skip to main content

engage/generated/root/
skycastle.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "root-skycastle-types")]
4mod __types {
5    #[allow(unused_imports)] use ::unity::prelude::*;
6
7    use super::*;
8    use crate::{
9        app::singletonmonobehaviour_1::{ISingletonMonoBehaviour_1, SingletonMonoBehaviour_1},
10        system::{
11            object::{IObject, Object},
12            r#enum::{Enum, IEnum},
13            valuetype::{IValueType, ValueType},
14        },
15        unity_engine::{
16            behaviour::{Behaviour, IBehaviour},
17            component::{Component, IComponent},
18            monobehaviour::{IMonoBehaviour, MonoBehaviour},
19            object_2::{IObject_2, Object_2},
20        },
21    };
22
23    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/root/skycastle/SkyCastle.md"))]
24    #[::unity::class(namespace = "", name = "SkyCastle")]
25    #[parent(crate::app::singletonmonobehaviour_1::SingletonMonoBehaviour_1<crate::root::skycastle::SkyCastle>)]
26    pub struct SkyCastle {
27        #[offset(32)]
28        #[rename(name = "m_LeftSkyCastleObject")]
29        pub m_left_sky_castle_object: crate::unity_engine::gameobject::GameObject,
30        #[offset(40)]
31        #[rename(name = "m_RightSkyCastleObject")]
32        pub m_right_sky_castle_object: crate::unity_engine::gameobject::GameObject,
33        #[offset(48)]
34        #[rename(name = "m_LeftSkyCastleAnimator")]
35        pub m_left_sky_castle_animator: crate::unity_engine::animator::Animator,
36        #[offset(56)]
37        #[rename(name = "m_RightSkyCastleAnimator")]
38        pub m_right_sky_castle_animator: crate::unity_engine::animator::Animator,
39        #[offset(64)]
40        #[rename(name = "m_SkyCastleEffect")]
41        pub m_sky_castle_effect: ::unity::Array<crate::unity_engine::gameobject::GameObject>,
42        #[offset(72)]
43        #[rename(name = "m_Now")]
44        pub m_now: ::unity::Array<crate::unity_engine::vector3::Vector3>,
45        #[offset(80)]
46        #[rename(name = "m_Old")]
47        pub m_old: ::unity::Array<crate::unity_engine::vector3::Vector3>,
48        #[offset(88)]
49        #[rename(name = "m_Vec")]
50        pub m_vec: ::unity::Array<crate::unity_engine::vector3::Vector3>,
51        #[offset(96)]
52        #[rename(name = "m_IsUpdate")]
53        pub m_is_update: ::unity::Array<bool>,
54    }
55
56    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/root/skycastle/SkyCastle_MovingSkyCastle.md"))]
57    #[repr(C)]
58    #[derive(::core::clone::Clone, ::core::marker::Copy, ::core::fmt::Debug, ::core::cmp::PartialEq, ::core::cmp::Eq)]
59    pub struct SkyCastle_MovingSkyCastle {
60        pub value: i32,
61    }
62    impl ::unity::ClassIdentity for SkyCastle_MovingSkyCastle {
63        const NAME: &'static str = "SkyCastle.MovingSkyCastle";
64        const NAMESPACE: &'static str = "";
65
66        fn class() -> ::unity::Class {
67            static CACHE: ::std::sync::OnceLock<::unity::Class> = ::std::sync::OnceLock::new();
68            *CACHE.get_or_init(|| ::unity::Class::lookup(Self::NAMESPACE, Self::NAME))
69        }
70    }
71    impl ::unity::IlType for SkyCastle_MovingSkyCastle {
72        fn il_type() -> &'static ::unity::il2cpp::Il2CppType {
73            &<Self as ::unity::ClassIdentity>::class().raw()._1.byval_arg
74        }
75    }
76    impl SkyCastle_MovingSkyCastle {
77        pub fn left() -> Self {
78            Self { value: 0 }
79        }
80
81        pub fn right() -> Self {
82            Self { value: 1 }
83        }
84
85        pub fn num() -> Self {
86            Self { value: 2 }
87        }
88    }
89}
90
91#[cfg(feature = "root-skycastle-types")]
92pub use __types::*;
93
94#[cfg(feature = "root-skycastle")]
95pub trait ISkyCastleMethods: ISkyCastle {
96    #[doc = "`Start()` overload"]
97    fn start(self) -> () {
98        unsafe {
99            let __receiver = <SkyCastle as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
100            ::unity::il2cpp_call!((::unity::module_base()+0x1fdc440usize)as*mut u8,();
101(SkyCastle)__receiver)
102        }
103    }
104    #[doc = "`Update()` overload"]
105    fn update(self) -> () {
106        unsafe {
107            let __receiver = <SkyCastle as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
108            ::unity::il2cpp_call!((::unity::module_base()+0x1fdc550usize)as*mut u8,();
109(SkyCastle)__receiver)
110        }
111    }
112    #[doc = "`UpdateSkyCastle(crate::unity_engine::gameobject::GameObject, crate::unity_engine::animator::Animator, i32)` overload"]
113    fn update_sky_castle(
114        self,
115        game_object: impl ::core::convert::Into<crate::unity_engine::gameobject::GameObject>,
116        animator: impl ::core::convert::Into<crate::unity_engine::animator::Animator>,
117        index: impl ::core::convert::Into<i32>,
118    ) -> () {
119        unsafe {
120            let __receiver = <SkyCastle as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
121            ::unity::il2cpp_call!((::unity::module_base()+0x1fdc590usize)as*mut u8,();
122(SkyCastle)__receiver,(crate::unity_engine::gameobject::GameObject)::core::convert::Into::into(game_object),(crate::unity_engine::animator::Animator)::core::convert::Into::into(animator),(i32)::core::convert::Into::into(index))
123        }
124    }
125    #[doc = "`IsPlayingSkyCastle()` overload"]
126    fn is_playing_sky_castle(self) -> bool {
127        unsafe {
128            let __receiver = <SkyCastle as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
129            ::unity::il2cpp_call!((::unity::module_base()+0x1fdc7d0usize)as*mut u8,bool;
130(SkyCastle)__receiver)
131        }
132    }
133    #[doc = "`GetVec(crate::root::skycastle::SkyCastle_MovingSkyCastle)` overload"]
134    fn get_vec(self, index: impl ::core::convert::Into<crate::root::skycastle::SkyCastle_MovingSkyCastle>) -> crate::unity_engine::vector3::Vector3 {
135        unsafe {
136            let __receiver = <SkyCastle as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
137            ::unity::il2cpp_call!((::unity::module_base()+0x1fdc890usize)as*mut u8,crate::unity_engine::vector3::Vector3;
138(SkyCastle)__receiver,(crate::root::skycastle::SkyCastle_MovingSkyCastle)::core::convert::Into::into(index))
139        }
140    }
141    #[doc = "`get_LeftSkyCastleAnimator()` overload"]
142    fn get_left_sky_castle_animator(self) -> crate::unity_engine::animator::Animator {
143        unsafe {
144            let __receiver = <SkyCastle as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
145            ::unity::il2cpp_call!((::unity::module_base()+0x1fdc8d0usize)as*mut u8,crate::unity_engine::animator::Animator;
146(SkyCastle)__receiver)
147        }
148    }
149    #[doc = "`get_RightSkyCastleAnimator()` overload"]
150    fn get_right_sky_castle_animator(self) -> crate::unity_engine::animator::Animator {
151        unsafe {
152            let __receiver = <SkyCastle as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
153            ::unity::il2cpp_call!((::unity::module_base()+0x1fdc8e0usize)as*mut u8,crate::unity_engine::animator::Animator;
154(SkyCastle)__receiver)
155        }
156    }
157    #[doc = "`.ctor()` overload"]
158    fn ctor(self) -> () {
159        unsafe {
160            let __receiver = <SkyCastle as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
161            ::unity::il2cpp_call!((::unity::module_base()+0x1fdc8f0usize)as*mut u8,();
162(SkyCastle)__receiver)
163        }
164    }
165}
166
167#[cfg(feature = "root-skycastle")]
168impl<__T: ISkyCastle> ISkyCastleMethods for __T {}
169
170#[cfg(feature = "root-skycastle")]
171impl SkyCastle {
172    pub fn start_method_info() -> &'static ::unity::il2cpp::MethodInfo {
173        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
174    }
175
176    pub fn update_method_info() -> &'static ::unity::il2cpp::MethodInfo {
177        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
178    }
179
180    pub fn update_sky_castle_method_info() -> &'static ::unity::il2cpp::MethodInfo {
181        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
182    }
183
184    pub fn is_playing_sky_castle_method_info() -> &'static ::unity::il2cpp::MethodInfo {
185        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
186    }
187
188    pub fn get_vec_method_info() -> &'static ::unity::il2cpp::MethodInfo {
189        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
190    }
191
192    pub fn get_left_sky_castle_animator_method_info() -> &'static ::unity::il2cpp::MethodInfo {
193        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
194    }
195
196    pub fn get_right_sky_castle_animator_method_info() -> &'static ::unity::il2cpp::MethodInfo {
197        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
198    }
199
200    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
201        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
202    }
203}
204
205#[cfg(feature = "root-skycastle")]
206impl SkyCastle {
207    #[doc = "`.ctor()` — no args"]
208    pub fn new() -> Self {
209        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
210            panic!(
211                "{}
212::{}
213 failed to instantiate",
214                ::core::stringify!(SkyCastle),
215                ::core::stringify!(new),
216            )
217        });
218        <Self as ISkyCastleMethods>::ctor(this);
219        this
220    }
221}
222
223#[cfg(feature = "root-skycastle")]
224#[doc(hidden)]
225pub mod prelude {
226    pub use super::{ISkyCastle, ISkyCastleMethods, SkyCastle, SkyCastle_MovingSkyCastle};
227    #[cfg(feature = "app-singletonmonobehaviour_1")]
228    pub use crate::app::singletonmonobehaviour_1::ISingletonMonoBehaviour_1Methods;
229    #[cfg(feature = "system-object")]
230    pub use crate::system::object::IObjectMethods;
231    #[cfg(feature = "system-enum")]
232    pub use crate::system::r#enum::IEnumMethods;
233    #[cfg(feature = "system-valuetype")]
234    pub use crate::system::valuetype::IValueTypeMethods;
235    #[cfg(feature = "unity_engine-behaviour")]
236    pub use crate::unity_engine::behaviour::IBehaviourMethods;
237    #[cfg(feature = "unity_engine-component")]
238    pub use crate::unity_engine::component::IComponentMethods;
239    #[cfg(feature = "unity_engine-monobehaviour")]
240    pub use crate::unity_engine::monobehaviour::IMonoBehaviourMethods;
241    #[cfg(feature = "unity_engine-object_2")]
242    pub use crate::unity_engine::object_2::IObject_2Methods;
243    pub use crate::{
244        app::singletonmonobehaviour_1::ISingletonMonoBehaviour_1,
245        system::{object::IObject, r#enum::IEnum, valuetype::IValueType},
246        unity_engine::{behaviour::IBehaviour, component::IComponent, monobehaviour::IMonoBehaviour, object_2::IObject_2},
247    };
248}