Skip to main content

engage/generated/app/water/
reflectionmanager.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "app-water-reflectionmanager-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/water/reflectionmanager/ReflectionManager.md"))]
19    #[::unity::class(namespace = "App.Water", name = "ReflectionManager")]
20    #[parent(crate::unity_engine::monobehaviour::MonoBehaviour)]
21    pub struct ReflectionManager {
22        #[offset(24)]
23        #[rename(name = "WaterMeshRoot")]
24        pub water_mesh_root: crate::unity_engine::gameobject::GameObject,
25        #[offset(32)]
26        #[rename(name = "m_renderedList")]
27        pub m_rendered_list: crate::system::collections::generic::list_1::List_1<::unity::Il2CppString>,
28    }
29}
30
31#[cfg(feature = "app-water-reflectionmanager-types")]
32pub use __types::*;
33
34#[cfg(feature = "app-water-reflectionmanager")]
35pub trait IReflectionManagerMethods: IReflectionManager {
36    #[doc = "`Start()` overload"]
37    fn start(self) -> () {
38        unsafe {
39            let __receiver = <ReflectionManager as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
40            ::unity::il2cpp_call!((::unity::module_base()+0x22b6cc0usize)as*mut u8,();
41(ReflectionManager)__receiver)
42        }
43    }
44    #[doc = "`Update()` overload"]
45    fn update(self) -> () {
46        unsafe {
47            let __receiver = <ReflectionManager as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
48            ::unity::il2cpp_call!((::unity::module_base()+0x22b6da0usize)as*mut u8,();
49(ReflectionManager)__receiver)
50        }
51    }
52    #[doc = "`LateUpdate()` overload"]
53    fn late_update(self) -> () {
54        unsafe {
55            let __receiver = <ReflectionManager as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
56            ::unity::il2cpp_call!((::unity::module_base()+0x22b7620usize)as*mut u8,();
57(ReflectionManager)__receiver)
58        }
59    }
60    #[doc = "`RemoveNonReferenceCamera()` overload"]
61    fn remove_non_reference_camera(self) -> () {
62        unsafe {
63            let __receiver = <ReflectionManager as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
64            ::unity::il2cpp_call!((::unity::module_base()+0x22b6e00usize)as*mut u8,();
65(ReflectionManager)__receiver)
66        }
67    }
68    #[doc = "`ClearRenderedList()` overload"]
69    fn clear_rendered_list(self) -> () {
70        unsafe {
71            let __receiver = <ReflectionManager as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
72            ::unity::il2cpp_call!((::unity::module_base()+0x22b75c0usize)as*mut u8,();
73(ReflectionManager)__receiver)
74        }
75    }
76    #[doc = "`RenderReflection(crate::unity_engine::transform::Transform, crate::unity_engine::camera::Camera, i16)` overload"]
77    fn render_reflection(
78        self,
79        tr: impl ::core::convert::Into<crate::unity_engine::transform::Transform>,
80        cam: impl ::core::convert::Into<crate::unity_engine::camera::Camera>,
81        number: impl ::core::convert::Into<i16>,
82    ) -> bool {
83        unsafe {
84            let __receiver = <ReflectionManager as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
85            ::unity::il2cpp_call!((::unity::module_base()+0x22b76f0usize)as*mut u8,bool;
86(ReflectionManager)__receiver,(crate::unity_engine::transform::Transform)::core::convert::Into::into(tr),(crate::unity_engine::camera::Camera)::core::convert::Into::into(cam),(i16)::core::convert::Into::into(number))
87        }
88    }
89    #[doc = "`AddReflectionCamera(crate::unity_engine::gameobject::GameObject)` overload"]
90    fn add_reflection_camera(
91        self,
92        obj_camera: impl ::core::convert::Into<crate::unity_engine::gameobject::GameObject>,
93    ) -> crate::app::water::reflectioncamera::ReflectionCamera {
94        unsafe {
95            let __receiver = <ReflectionManager as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
96            {
97                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
98                let __vi = *__vt.get(4usize).unwrap_or_else(|| {
99                    panic!(
100                        "unity: virtual slot {}
101 out of range (vtable len {}
102) on the runtime class behind {}
103 (method `{}
104`)",
105                        4usize,
106                        __vt.len(),
107                        <ReflectionManager as ::unity::ClassIdentity>::NAME,
108                        "AddReflectionCamera",
109                    )
110                });
111                let __inner: extern "C" fn(
112                    ReflectionManager,
113                    crate::unity_engine::gameobject::GameObject,
114                    ::unity::OptionalMethod,
115                ) -> crate::app::water::reflectioncamera::ReflectionCamera = ::core::mem::transmute(__vi.method_ptr);
116                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
117                __inner(__receiver, ::core::convert::Into::into(obj_camera), __mi)
118            }
119        }
120    }
121    #[doc = "`GetReflectionTexture(i16)` overload"]
122    fn get_reflection_texture(self, number: impl ::core::convert::Into<i16>) -> crate::unity_engine::rendertexture::RenderTexture {
123        unsafe {
124            let __receiver = <ReflectionManager as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
125            ::unity::il2cpp_call!((::unity::module_base()+0x22b7b20usize)as*mut u8,crate::unity_engine::rendertexture::RenderTexture;
126(ReflectionManager)__receiver,(i16)::core::convert::Into::into(number))
127        }
128    }
129    #[doc = "`GetCameraName(i16)` overload"]
130    fn get_camera_name(self, number: impl ::core::convert::Into<i16>) -> ::unity::Il2CppString {
131        unsafe {
132            let __receiver = <ReflectionManager as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
133            ::unity::il2cpp_call!((::unity::module_base()+0x22b7680usize)as*mut u8, ::unity::Il2CppString;
134(ReflectionManager)__receiver,(i16)::core::convert::Into::into(number))
135        }
136    }
137    #[doc = "`.ctor()` overload"]
138    fn ctor(self) -> () {
139        unsafe {
140            let __receiver = <ReflectionManager as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
141            ::unity::il2cpp_call!((::unity::module_base()+0x22b7bd0usize)as*mut u8,();
142(ReflectionManager)__receiver)
143        }
144    }
145}
146
147#[cfg(feature = "app-water-reflectionmanager")]
148impl<__T: IReflectionManager> IReflectionManagerMethods for __T {}
149
150#[cfg(feature = "app-water-reflectionmanager")]
151impl ReflectionManager {
152    pub fn start_method_info() -> &'static ::unity::il2cpp::MethodInfo {
153        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
154    }
155
156    pub fn update_method_info() -> &'static ::unity::il2cpp::MethodInfo {
157        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
158    }
159
160    pub fn late_update_method_info() -> &'static ::unity::il2cpp::MethodInfo {
161        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
162    }
163
164    pub fn remove_non_reference_camera_method_info() -> &'static ::unity::il2cpp::MethodInfo {
165        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
166    }
167
168    pub fn clear_rendered_list_method_info() -> &'static ::unity::il2cpp::MethodInfo {
169        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
170    }
171
172    pub fn render_reflection_method_info() -> &'static ::unity::il2cpp::MethodInfo {
173        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
174    }
175
176    pub fn add_reflection_camera_method_info() -> &'static ::unity::il2cpp::MethodInfo {
177        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
178    }
179
180    pub fn get_reflection_texture_method_info() -> &'static ::unity::il2cpp::MethodInfo {
181        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
182    }
183
184    pub fn get_camera_name_method_info() -> &'static ::unity::il2cpp::MethodInfo {
185        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
186    }
187
188    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
189        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
190    }
191}
192
193#[cfg(feature = "app-water-reflectionmanager")]
194impl ReflectionManager {
195    #[doc = "Direct (non-virtual) call to `ReflectionManager`'s own `AddReflectionCamera`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
196    pub unsafe fn add_reflection_camera(
197        this: impl ::core::convert::Into<::unity::IlInstance>,
198        obj_camera: crate::unity_engine::gameobject::GameObject,
199    ) -> crate::app::water::reflectioncamera::ReflectionCamera {
200        let __mi = Self::add_reflection_camera_method_info();
201        let __inner: extern "C" fn(
202            ::unity::IlInstance,
203            crate::unity_engine::gameobject::GameObject,
204            ::unity::OptionalMethod,
205        ) -> crate::app::water::reflectioncamera::ReflectionCamera = ::core::mem::transmute(__mi.method_ptr);
206        __inner(this.into(), obj_camera, ::core::option::Option::None)
207    }
208}
209
210#[cfg(feature = "app-water-reflectionmanager")]
211impl ReflectionManager {
212    #[doc = "`.ctor()` — no args"]
213    pub fn new() -> Self {
214        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
215            panic!(
216                "{}
217::{}
218 failed to instantiate",
219                ::core::stringify!(ReflectionManager),
220                ::core::stringify!(new),
221            )
222        });
223        <Self as IReflectionManagerMethods>::ctor(this);
224        this
225    }
226}
227
228#[cfg(feature = "app-water-reflectionmanager")]
229#[doc(hidden)]
230pub mod prelude {
231    pub use super::{IReflectionManager, IReflectionManagerMethods, ReflectionManager};
232    #[cfg(feature = "system-object")]
233    pub use crate::system::object::IObjectMethods;
234    #[cfg(feature = "unity_engine-behaviour")]
235    pub use crate::unity_engine::behaviour::IBehaviourMethods;
236    #[cfg(feature = "unity_engine-component")]
237    pub use crate::unity_engine::component::IComponentMethods;
238    #[cfg(feature = "unity_engine-monobehaviour")]
239    pub use crate::unity_engine::monobehaviour::IMonoBehaviourMethods;
240    #[cfg(feature = "unity_engine-object_2")]
241    pub use crate::unity_engine::object_2::IObject_2Methods;
242    pub use crate::{
243        system::object::IObject,
244        unity_engine::{behaviour::IBehaviour, component::IComponent, monobehaviour::IMonoBehaviour, object_2::IObject_2},
245    };
246}