Skip to main content

engage/generated/app/
mapprojector.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "app-mapprojector-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/mapprojector/MapProjector.md"))]
19    #[::unity::class(namespace = "App", name = "MapProjector")]
20    #[parent(crate::unity_engine::monobehaviour::MonoBehaviour)]
21    pub struct MapProjector {
22        #[offset(24)]
23        #[rename(name = "m_Material")]
24        pub m_material: crate::unity_engine::material::Material,
25        #[offset(32)]
26        #[rename(name = "m_Texture")]
27        pub m_texture: crate::unity_engine::texture2d::Texture2D,
28        #[offset(40)]
29        #[rename(name = "m_Color")]
30        pub m_color: crate::unity_engine::color::Color,
31        #[offset(56)]
32        #[rename(name = "m_Scale")]
33        pub m_scale: f32,
34        #[offset(60)]
35        #[rename(name = "m_DirectionX")]
36        pub m_direction_x: f32,
37        #[offset(64)]
38        #[rename(name = "m_DirectionY")]
39        pub m_direction_y: f32,
40        #[offset(68)]
41        #[rename(name = "m_Speed")]
42        pub m_speed: f32,
43        #[offset(72)]
44        #[rename(name = "m_OffsetX")]
45        pub m_offset_x: f32,
46        #[offset(76)]
47        #[rename(name = "m_OffsetY")]
48        pub m_offset_y: f32,
49        #[offset(80)]
50        #[rename(name = "m_Instance")]
51        pub m_instance: crate::unity_engine::material::Material,
52        #[offset(88)]
53        #[rename(name = "m_ScrollX")]
54        pub m_scroll_x: f32,
55        #[offset(92)]
56        #[rename(name = "m_ScrollY")]
57        pub m_scroll_y: f32,
58    }
59}
60
61#[cfg(feature = "app-mapprojector-types")]
62pub use __types::*;
63
64#[cfg(feature = "app-mapprojector")]
65pub trait IMapProjectorMethods: IMapProjector {
66    #[doc = "`TryCreateInstance()` overload"]
67    fn try_create_instance(self) -> () {
68        unsafe {
69            let __receiver = <MapProjector as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
70            ::unity::il2cpp_call!((::unity::module_base()+0x235c930usize)as*mut u8,();
71(MapProjector)__receiver)
72        }
73    }
74    #[doc = "`Start()` overload"]
75    fn start(self) -> () {
76        unsafe {
77            let __receiver = <MapProjector as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
78            ::unity::il2cpp_call!((::unity::module_base()+0x235cc40usize)as*mut u8,();
79(MapProjector)__receiver)
80        }
81    }
82    #[doc = "`Update()` overload"]
83    fn update(self) -> () {
84        unsafe {
85            let __receiver = <MapProjector as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
86            ::unity::il2cpp_call!((::unity::module_base()+0x235cc50usize)as*mut u8,();
87(MapProjector)__receiver)
88        }
89    }
90    #[doc = "`UpdateScroll()` overload"]
91    fn update_scroll(self) -> () {
92        unsafe {
93            let __receiver = <MapProjector as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
94            ::unity::il2cpp_call!((::unity::module_base()+0x235cc80usize)as*mut u8,();
95(MapProjector)__receiver)
96        }
97    }
98    #[doc = "`UpdateMaterial()` overload"]
99    fn update_material(self) -> () {
100        unsafe {
101            let __receiver = <MapProjector as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
102            ::unity::il2cpp_call!((::unity::module_base()+0x235cb20usize)as*mut u8,();
103(MapProjector)__receiver)
104        }
105    }
106    #[doc = "`.ctor()` overload"]
107    fn ctor(self) -> () {
108        unsafe {
109            let __receiver = <MapProjector as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
110            ::unity::il2cpp_call!((::unity::module_base()+0x235cd60usize)as*mut u8,();
111(MapProjector)__receiver)
112        }
113    }
114}
115
116#[cfg(feature = "app-mapprojector")]
117impl<__T: IMapProjector> IMapProjectorMethods for __T {}
118
119#[cfg(feature = "app-mapprojector")]
120impl MapProjector {
121    pub fn try_create_instance_method_info() -> &'static ::unity::il2cpp::MethodInfo {
122        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
123    }
124
125    pub fn start_method_info() -> &'static ::unity::il2cpp::MethodInfo {
126        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
127    }
128
129    pub fn update_method_info() -> &'static ::unity::il2cpp::MethodInfo {
130        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
131    }
132
133    pub fn update_scroll_method_info() -> &'static ::unity::il2cpp::MethodInfo {
134        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
135    }
136
137    pub fn update_material_method_info() -> &'static ::unity::il2cpp::MethodInfo {
138        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
139    }
140
141    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
142        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
143    }
144}
145
146#[cfg(feature = "app-mapprojector")]
147impl MapProjector {
148    #[doc = "`.ctor()` — no args"]
149    pub fn new() -> Self {
150        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
151            panic!(
152                "{}
153::{}
154 failed to instantiate",
155                ::core::stringify!(MapProjector),
156                ::core::stringify!(new),
157            )
158        });
159        <Self as IMapProjectorMethods>::ctor(this);
160        this
161    }
162}
163
164#[cfg(feature = "app-mapprojector")]
165#[doc(hidden)]
166pub mod prelude {
167    pub use super::{IMapProjector, IMapProjectorMethods, MapProjector};
168    #[cfg(feature = "system-object")]
169    pub use crate::system::object::IObjectMethods;
170    #[cfg(feature = "unity_engine-behaviour")]
171    pub use crate::unity_engine::behaviour::IBehaviourMethods;
172    #[cfg(feature = "unity_engine-component")]
173    pub use crate::unity_engine::component::IComponentMethods;
174    #[cfg(feature = "unity_engine-monobehaviour")]
175    pub use crate::unity_engine::monobehaviour::IMonoBehaviourMethods;
176    #[cfg(feature = "unity_engine-object_2")]
177    pub use crate::unity_engine::object_2::IObject_2Methods;
178    pub use crate::{
179        system::object::IObject,
180        unity_engine::{behaviour::IBehaviour, component::IComponent, monobehaviour::IMonoBehaviour, object_2::IObject_2},
181    };
182}