Skip to main content

engage/generated/app/
skyscroller.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "app-skyscroller-types")]
4mod __types {
5    #[allow(unused_imports)] use ::unity::prelude::*;
6
7    use super::*;
8    use crate::{
9        system::object::{IObject, Object},
10        unity_engine::{
11            behaviour::{Behaviour, IBehaviour},
12            component::{Component, IComponent},
13            monobehaviour::{IMonoBehaviour, MonoBehaviour},
14            object_2::{IObject_2, Object_2},
15        },
16    };
17
18    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/skyscroller/SkyScroller.md"))]
19    #[::unity::class(namespace = "App", name = "SkyScroller")]
20    #[parent(crate::unity_engine::monobehaviour::MonoBehaviour)]
21    pub struct SkyScroller {
22        #[offset(24)]
23        #[rename(name = "ScrollSpeed")]
24        pub scroll_speed: f32,
25        #[offset(32)]
26        #[rename(name = "m_Material")]
27        pub m_material: crate::unity_engine::material::Material,
28    }
29}
30
31#[cfg(feature = "app-skyscroller-types")]
32pub use __types::*;
33
34#[cfg(feature = "app-skyscroller")]
35pub trait ISkyScrollerMethods: ISkyScroller {
36    #[doc = "`ResetSkybox()` overload"]
37    fn reset_skybox(self) -> () {
38        unsafe {
39            let __receiver = <SkyScroller as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
40            ::unity::il2cpp_call!((::unity::module_base()+0x1fdca50usize)as*mut u8,();
41(SkyScroller)__receiver)
42        }
43    }
44    #[doc = "`Start()` overload"]
45    fn start(self) -> () {
46        unsafe {
47            let __receiver = <SkyScroller as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
48            ::unity::il2cpp_call!((::unity::module_base()+0x1fdcb40usize)as*mut u8,();
49(SkyScroller)__receiver)
50        }
51    }
52    #[doc = "`Update()` overload"]
53    fn update(self) -> () {
54        unsafe {
55            let __receiver = <SkyScroller as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
56            ::unity::il2cpp_call!((::unity::module_base()+0x1fdcb50usize)as*mut u8,();
57(SkyScroller)__receiver)
58        }
59    }
60    #[doc = "`.ctor()` overload"]
61    fn ctor(self) -> () {
62        unsafe {
63            let __receiver = <SkyScroller as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
64            ::unity::il2cpp_call!((::unity::module_base()+0x1fdca30usize)as*mut u8,();
65(SkyScroller)__receiver)
66        }
67    }
68}
69
70#[cfg(feature = "app-skyscroller")]
71impl<__T: ISkyScroller> ISkyScrollerMethods for __T {}
72
73#[cfg(feature = "app-skyscroller")]
74impl SkyScroller {
75    pub fn reset_skybox_method_info() -> &'static ::unity::il2cpp::MethodInfo {
76        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
77    }
78
79    pub fn start_method_info() -> &'static ::unity::il2cpp::MethodInfo {
80        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
81    }
82
83    pub fn update_method_info() -> &'static ::unity::il2cpp::MethodInfo {
84        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
85    }
86
87    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
88        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
89    }
90}
91
92#[cfg(feature = "app-skyscroller")]
93impl SkyScroller {
94    #[doc = "`.ctor()` — no args"]
95    pub fn new() -> Self {
96        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
97            panic!(
98                "{}
99::{}
100 failed to instantiate",
101                ::core::stringify!(SkyScroller),
102                ::core::stringify!(new),
103            )
104        });
105        <Self as ISkyScrollerMethods>::ctor(this);
106        this
107    }
108}
109
110#[cfg(feature = "app-skyscroller")]
111#[doc(hidden)]
112pub mod prelude {
113    pub use super::{ISkyScroller, ISkyScrollerMethods, SkyScroller};
114    #[cfg(feature = "system-object")]
115    pub use crate::system::object::IObjectMethods;
116    #[cfg(feature = "unity_engine-behaviour")]
117    pub use crate::unity_engine::behaviour::IBehaviourMethods;
118    #[cfg(feature = "unity_engine-component")]
119    pub use crate::unity_engine::component::IComponentMethods;
120    #[cfg(feature = "unity_engine-monobehaviour")]
121    pub use crate::unity_engine::monobehaviour::IMonoBehaviourMethods;
122    #[cfg(feature = "unity_engine-object_2")]
123    pub use crate::unity_engine::object_2::IObject_2Methods;
124    pub use crate::{
125        system::object::IObject,
126        unity_engine::{behaviour::IBehaviour, component::IComponent, monobehaviour::IMonoBehaviour, object_2::IObject_2},
127    };
128}