Skip to main content

engage/generated/app/water/
reflectioncamera.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "app-water-reflectioncamera-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/reflectioncamera/ReflectionCamera.md"))]
19    #[::unity::class(namespace = "App.Water", name = "ReflectionCamera")]
20    #[parent(crate::unity_engine::monobehaviour::MonoBehaviour)]
21    pub struct ReflectionCamera {
22        #[offset(24)]
23        #[rename(name = "m_id")]
24        pub m_id: i16,
25        #[offset(32)]
26        #[rename(name = "m_camera")]
27        pub m_camera: crate::unity_engine::camera::Camera,
28        #[offset(40)]
29        #[rename(name = "m_cameraOriginal")]
30        pub m_camera_original: crate::unity_engine::camera::Camera,
31        #[offset(48)]
32        #[rename(name = "renderTextureSize")]
33        pub render_texture_size_field: crate::unity_engine::vector2::Vector2,
34        #[offset(56)]
35        #[rename(name = "farClip")]
36        pub far_clip: f32,
37        #[offset(60)]
38        #[rename(name = "clipPlaneOffset")]
39        pub clip_plane_offset: f32,
40    }
41}
42
43#[cfg(feature = "app-water-reflectioncamera-types")]
44pub use __types::*;
45
46#[cfg(feature = "app-water-reflectioncamera")]
47pub trait IReflectionCameraMethods: IReflectionCamera {
48    #[doc = "`CameraSetting(crate::unity_engine::camera::Camera)` overload"]
49    fn camera_setting(self, cam: impl ::core::convert::Into<crate::unity_engine::camera::Camera>) -> () {
50        unsafe {
51            let __receiver = <ReflectionCamera as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
52            ::unity::il2cpp_call!((::unity::module_base()+0x22b5d70usize)as*mut u8,();
53(ReflectionCamera)__receiver,(crate::unity_engine::camera::Camera)::core::convert::Into::into(cam))
54        }
55    }
56    #[doc = "`SetRenderTextureSize(f32, f32)` overload"]
57    fn set_render_texture_size(self, width: impl ::core::convert::Into<f32>, height: impl ::core::convert::Into<f32>) -> () {
58        unsafe {
59            let __receiver = <ReflectionCamera as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
60            ::unity::il2cpp_call!((::unity::module_base()+0x22b6110usize)as*mut u8,();
61(ReflectionCamera)__receiver,(f32)::core::convert::Into::into(width),(f32)::core::convert::Into::into(height))
62        }
63    }
64    #[doc = "`CreateTexture()` overload"]
65    fn create_texture(self) -> () {
66        unsafe {
67            let __receiver = <ReflectionCamera as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
68            ::unity::il2cpp_call!((::unity::module_base()+0x22b6120usize)as*mut u8,();
69(ReflectionCamera)__receiver)
70        }
71    }
72    #[doc = "`RenderReflection(crate::unity_engine::transform::Transform)` overload"]
73    fn render_reflection(self, transform_mesh: impl ::core::convert::Into<crate::unity_engine::transform::Transform>) -> () {
74        unsafe {
75            let __receiver = <ReflectionCamera as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
76            ::unity::il2cpp_call!((::unity::module_base()+0x22b6230usize)as*mut u8,();
77(ReflectionCamera)__receiver,(crate::unity_engine::transform::Transform)::core::convert::Into::into(transform_mesh))
78        }
79    }
80    #[doc = "`SetCameraTransform(crate::unity_engine::transform::Transform)` overload"]
81    fn set_camera_transform(self, transform_mesh: impl ::core::convert::Into<crate::unity_engine::transform::Transform>) -> () {
82        unsafe {
83            let __receiver = <ReflectionCamera as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
84            ::unity::il2cpp_call!((::unity::module_base()+0x22b6300usize)as*mut u8,();
85(ReflectionCamera)__receiver,(crate::unity_engine::transform::Transform)::core::convert::Into::into(transform_mesh))
86        }
87    }
88    #[doc = "`CalculateObliqueMatrix(crate::unity_engine::matrix4x4::Matrix4x4, crate::unity_engine::vector4::Vector4)` overload"]
89    fn calculate_oblique_matrix(
90        self,
91        projection: impl ::core::convert::Into<crate::unity_engine::matrix4x4::Matrix4x4>,
92        clip_plane: impl ::core::convert::Into<crate::unity_engine::vector4::Vector4>,
93    ) -> crate::unity_engine::matrix4x4::Matrix4x4 {
94        unsafe {
95            let __receiver = <ReflectionCamera as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
96            ::unity::il2cpp_call!((::unity::module_base()+0x22b6a40usize)as*mut u8,crate::unity_engine::matrix4x4::Matrix4x4;
97(ReflectionCamera)__receiver,(crate::unity_engine::matrix4x4::Matrix4x4)::core::convert::Into::into(projection),(crate::unity_engine::vector4::Vector4)::core::convert::Into::into(clip_plane))
98        }
99    }
100    #[doc = "`CalculateReflectionMatrix(crate::unity_engine::matrix4x4::Matrix4x4, crate::unity_engine::vector4::Vector4)` overload"]
101    fn calculate_reflection_matrix(
102        self,
103        reflection_mat: impl ::core::convert::Into<crate::unity_engine::matrix4x4::Matrix4x4>,
104        plane: impl ::core::convert::Into<crate::unity_engine::vector4::Vector4>,
105    ) -> crate::unity_engine::matrix4x4::Matrix4x4 {
106        unsafe {
107            let __receiver = <ReflectionCamera as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
108            ::unity::il2cpp_call!((::unity::module_base()+0x22b6640usize)as*mut u8,crate::unity_engine::matrix4x4::Matrix4x4;
109(ReflectionCamera)__receiver,(crate::unity_engine::matrix4x4::Matrix4x4)::core::convert::Into::into(reflection_mat),(crate::unity_engine::vector4::Vector4)::core::convert::Into::into(plane))
110        }
111    }
112    #[doc = "`Sgn(f32)` overload"]
113    fn sgn(self, a: impl ::core::convert::Into<f32>) -> f32 {
114        unsafe {
115            let __receiver = <ReflectionCamera as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
116            ::unity::il2cpp_call!((::unity::module_base()+0x22b6c40usize)as*mut u8,f32;
117(ReflectionCamera)__receiver,(f32)::core::convert::Into::into(a))
118        }
119    }
120    #[doc = "`CameraSpacePlane(crate::unity_engine::camera::Camera, crate::unity_engine::vector3::Vector3, crate::unity_engine::vector3::Vector3, f32)` overload"]
121    fn camera_space_plane(
122        self,
123        cam: impl ::core::convert::Into<crate::unity_engine::camera::Camera>,
124        pos: impl ::core::convert::Into<crate::unity_engine::vector3::Vector3>,
125        normal: impl ::core::convert::Into<crate::unity_engine::vector3::Vector3>,
126        side_sign: impl ::core::convert::Into<f32>,
127    ) -> crate::unity_engine::vector4::Vector4 {
128        unsafe {
129            let __receiver = <ReflectionCamera as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
130            ::unity::il2cpp_call!((::unity::module_base()+0x22b6910usize)as*mut u8,crate::unity_engine::vector4::Vector4;
131(ReflectionCamera)__receiver,(crate::unity_engine::camera::Camera)::core::convert::Into::into(cam),(crate::unity_engine::vector3::Vector3)::core::convert::Into::into(pos),(crate::unity_engine::vector3::Vector3)::core::convert::Into::into(normal),(f32)::core::convert::Into::into(side_sign))
132        }
133    }
134    #[doc = "`.ctor()` overload"]
135    fn ctor(self) -> () {
136        unsafe {
137            let __receiver = <ReflectionCamera as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
138            ::unity::il2cpp_call!((::unity::module_base()+0x22b6c60usize)as*mut u8,();
139(ReflectionCamera)__receiver)
140        }
141    }
142}
143
144#[cfg(feature = "app-water-reflectioncamera")]
145impl<__T: IReflectionCamera> IReflectionCameraMethods for __T {}
146
147#[cfg(feature = "app-water-reflectioncamera")]
148impl ReflectionCamera {
149    pub fn camera_setting_method_info() -> &'static ::unity::il2cpp::MethodInfo {
150        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
151    }
152
153    pub fn set_render_texture_size_method_info() -> &'static ::unity::il2cpp::MethodInfo {
154        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
155    }
156
157    pub fn create_texture_method_info() -> &'static ::unity::il2cpp::MethodInfo {
158        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
159    }
160
161    pub fn render_reflection_method_info() -> &'static ::unity::il2cpp::MethodInfo {
162        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
163    }
164
165    pub fn set_camera_transform_method_info() -> &'static ::unity::il2cpp::MethodInfo {
166        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
167    }
168
169    pub fn calculate_oblique_matrix_method_info() -> &'static ::unity::il2cpp::MethodInfo {
170        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
171    }
172
173    pub fn calculate_reflection_matrix_method_info() -> &'static ::unity::il2cpp::MethodInfo {
174        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
175    }
176
177    pub fn sgn_method_info() -> &'static ::unity::il2cpp::MethodInfo {
178        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
179    }
180
181    pub fn camera_space_plane_method_info() -> &'static ::unity::il2cpp::MethodInfo {
182        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
183    }
184
185    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
186        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
187    }
188}
189
190#[cfg(feature = "app-water-reflectioncamera")]
191impl ReflectionCamera {
192    #[doc = "`.ctor()` — no args"]
193    pub fn new() -> Self {
194        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
195            panic!(
196                "{}
197::{}
198 failed to instantiate",
199                ::core::stringify!(ReflectionCamera),
200                ::core::stringify!(new),
201            )
202        });
203        <Self as IReflectionCameraMethods>::ctor(this);
204        this
205    }
206}
207
208#[cfg(feature = "app-water-reflectioncamera")]
209#[doc(hidden)]
210pub mod prelude {
211    pub use super::{IReflectionCamera, IReflectionCameraMethods, ReflectionCamera};
212    #[cfg(feature = "system-object")]
213    pub use crate::system::object::IObjectMethods;
214    #[cfg(feature = "unity_engine-behaviour")]
215    pub use crate::unity_engine::behaviour::IBehaviourMethods;
216    #[cfg(feature = "unity_engine-component")]
217    pub use crate::unity_engine::component::IComponentMethods;
218    #[cfg(feature = "unity_engine-monobehaviour")]
219    pub use crate::unity_engine::monobehaviour::IMonoBehaviourMethods;
220    #[cfg(feature = "unity_engine-object_2")]
221    pub use crate::unity_engine::object_2::IObject_2Methods;
222    pub use crate::{
223        system::object::IObject,
224        unity_engine::{behaviour::IBehaviour, component::IComponent, monobehaviour::IMonoBehaviour, object_2::IObject_2},
225    };
226}