Skip to main content

engage/generated/combat/
cameraboundingbox.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "combat-cameraboundingbox-types")]
4mod __types {
5    #[allow(unused_imports)] use ::unity::prelude::*;
6
7    use super::*;
8    use crate::system::object::{IObject, Object};
9
10    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/combat/cameraboundingbox/CameraBoundingBox.md"))]
11    #[::unity::class(namespace = "Combat", name = "CameraBoundingBox")]
12    #[parent(crate::system::object::Object)]
13    pub struct CameraBoundingBox {
14        #[offset(16)]
15        #[rename(name = "m_CameraDirection")]
16        pub m_camera_direction: crate::unity_engine::vector3::Vector3,
17        #[offset(28)]
18        #[rename(name = "m_MatrixWorldToCamera")]
19        pub m_matrix_world_to_camera: crate::unity_engine::matrix4x4::Matrix4x4,
20        #[offset(92)]
21        #[rename(name = "m_MatrixCameraToWorld")]
22        pub m_matrix_camera_to_world: crate::unity_engine::matrix4x4::Matrix4x4,
23        #[offset(156)]
24        #[rename(name = "m_Box")]
25        pub m_box: crate::unity_engine::bounds::Bounds,
26        #[offset(192)]
27        #[rename(name = "m_ScreenSpaceReprojectionRatio")]
28        pub m_screen_space_reprojection_ratio: f32,
29        #[offset(196)]
30        #[rename(name = "m_IsFinalized")]
31        pub m_is_finalized: bool,
32    }
33}
34
35#[cfg(feature = "combat-cameraboundingbox-types")]
36pub use __types::*;
37
38#[cfg(feature = "combat-cameraboundingbox")]
39pub trait ICameraBoundingBoxMethods: ICameraBoundingBox {
40    #[doc = "`.ctor(crate::unity_engine::vector3::Vector3, crate::unity_engine::vector3::Vector3, f32)` overload"]
41    fn ctor(
42        self,
43        follow_pos: impl ::core::convert::Into<crate::unity_engine::vector3::Vector3>,
44        look_at_pos: impl ::core::convert::Into<crate::unity_engine::vector3::Vector3>,
45        screen_space_reprojection_ratio: impl ::core::convert::Into<f32>,
46    ) -> () {
47        unsafe {
48            let __receiver = <CameraBoundingBox as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
49            ::unity::il2cpp_call!((::unity::module_base()+0x2994020usize)as*mut u8,();
50(CameraBoundingBox)__receiver,(crate::unity_engine::vector3::Vector3)::core::convert::Into::into(follow_pos),(crate::unity_engine::vector3::Vector3)::core::convert::Into::into(look_at_pos),(f32)::core::convert::Into::into(screen_space_reprojection_ratio))
51        }
52    }
53    #[doc = "`Append(crate::unity_engine::vector3::Vector3, f32)` overload"]
54    fn append(self, pos: impl ::core::convert::Into<crate::unity_engine::vector3::Vector3>, size: impl ::core::convert::Into<f32>) -> () {
55        unsafe {
56            let __receiver = <CameraBoundingBox as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
57            ::unity::il2cpp_call!((::unity::module_base()+0x29942a0usize)as*mut u8,();
58(CameraBoundingBox)__receiver,(crate::unity_engine::vector3::Vector3)::core::convert::Into::into(pos),(f32)::core::convert::Into::into(size))
59        }
60    }
61    #[doc = "`CreateBox()` overload"]
62    fn create_box(self) -> () {
63        unsafe {
64            let __receiver = <CameraBoundingBox as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
65            ::unity::il2cpp_call!((::unity::module_base()+0x2994390usize)as*mut u8,();
66(CameraBoundingBox)__receiver)
67        }
68    }
69    #[doc = "`GetBoxCenter()` overload"]
70    fn get_box_center(self) -> crate::unity_engine::vector3::Vector3 {
71        unsafe {
72            let __receiver = <CameraBoundingBox as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
73            ::unity::il2cpp_call!((::unity::module_base()+0x2994640usize)as*mut u8,crate::unity_engine::vector3::Vector3;
74(CameraBoundingBox)__receiver)
75        }
76    }
77    #[doc = "`GetNearestDistance(f32)` overload"]
78    fn get_nearest_distance(self, fov: impl ::core::convert::Into<f32>) -> f32 {
79        unsafe {
80            let __receiver = <CameraBoundingBox as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
81            ::unity::il2cpp_call!((::unity::module_base()+0x29946a0usize)as*mut u8,f32;
82(CameraBoundingBox)__receiver,(f32)::core::convert::Into::into(fov))
83        }
84    }
85    #[doc = "`PosInCamera(crate::unity_engine::vector3::Vector3)` overload"]
86    fn pos_in_camera(self, pos: impl ::core::convert::Into<crate::unity_engine::vector3::Vector3>) -> crate::unity_engine::vector3::Vector3 {
87        unsafe {
88            let __receiver = <CameraBoundingBox as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
89            ::unity::il2cpp_call!((::unity::module_base()+0x2994830usize)as*mut u8,crate::unity_engine::vector3::Vector3;
90(CameraBoundingBox)__receiver,(crate::unity_engine::vector3::Vector3)::core::convert::Into::into(pos))
91        }
92    }
93}
94
95#[cfg(feature = "combat-cameraboundingbox")]
96impl<__T: ICameraBoundingBox> ICameraBoundingBoxMethods for __T {}
97
98#[cfg(feature = "combat-cameraboundingbox")]
99impl CameraBoundingBox {
100    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
101        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
102    }
103
104    pub fn append_method_info() -> &'static ::unity::il2cpp::MethodInfo {
105        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
106    }
107
108    pub fn create_box_method_info() -> &'static ::unity::il2cpp::MethodInfo {
109        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
110    }
111
112    pub fn get_box_center_method_info() -> &'static ::unity::il2cpp::MethodInfo {
113        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
114    }
115
116    pub fn get_nearest_distance_method_info() -> &'static ::unity::il2cpp::MethodInfo {
117        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
118    }
119
120    pub fn pos_in_camera_method_info() -> &'static ::unity::il2cpp::MethodInfo {
121        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
122    }
123}
124
125#[cfg(feature = "combat-cameraboundingbox")]
126impl CameraBoundingBox {
127    #[doc = "`.ctor(crate::unity_engine::vector3::Vector3, crate::unity_engine::vector3::Vector3, f32)` — overload selector"]
128    pub fn new(
129        follow_pos: crate::unity_engine::vector3::Vector3,
130        look_at_pos: crate::unity_engine::vector3::Vector3,
131        screen_space_reprojection_ratio: f32,
132    ) -> Self {
133        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
134            panic!(
135                "{}
136::{}
137 failed to instantiate",
138                ::core::stringify!(CameraBoundingBox),
139                ::core::stringify!(new),
140            )
141        });
142        <Self as ICameraBoundingBoxMethods>::ctor(this, follow_pos, look_at_pos, screen_space_reprojection_ratio);
143        this
144    }
145}
146
147#[cfg(feature = "combat-cameraboundingbox")]
148#[doc(hidden)]
149pub mod prelude {
150    pub use super::{CameraBoundingBox, ICameraBoundingBox, ICameraBoundingBoxMethods};
151    pub use crate::system::object::IObject;
152    #[cfg(feature = "system-object")]
153    pub use crate::system::object::IObjectMethods;
154}