Skip to main content

engage/generated/app/
debugoverlap.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "app-debugoverlap-types")]
4mod __types {
5    #[allow(unused_imports)] use ::unity::prelude::*;
6
7    use super::*;
8    use crate::{
9        app::singletonmonobehaviour_1::{ISingletonMonoBehaviour_1, SingletonMonoBehaviour_1},
10        system::object::{IObject, Object},
11        unity_engine::{
12            behaviour::{Behaviour, IBehaviour},
13            component::{Component, IComponent},
14            monobehaviour::{IMonoBehaviour, MonoBehaviour},
15            object_2::{IObject_2, Object_2},
16        },
17    };
18
19    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/debugoverlap/DebugOverlap.md"))]
20    #[::unity::class(namespace = "App", name = "DebugOverlap")]
21    #[parent(crate::app::singletonmonobehaviour_1::SingletonMonoBehaviour_1<crate::app::debugoverlap::DebugOverlap>)]
22    pub struct DebugOverlap {
23        #[offset(32)]
24        #[rename(name = "m_Shader")]
25        pub m_shader: crate::unity_engine::shader::Shader,
26        #[offset(40)]
27        #[rename(name = "m_Camera")]
28        pub m_camera: crate::unity_engine::camera::Camera,
29        #[offset(48)]
30        #[rename(name = "m_ClearFlags")]
31        pub m_clear_flags: crate::unity_engine::cameraclearflags::CameraClearFlags,
32        #[offset(52)]
33        #[rename(name = "m_BackgroundColor")]
34        pub m_background_color: crate::unity_engine::color::Color,
35        #[offset(72)]
36        #[rename(name = "m_Renders")]
37        pub m_renders: crate::system::collections::generic::dictionary_2::Dictionary_2<
38            crate::unity_engine::renderer::Renderer,
39            ::unity::Array<crate::unity_engine::material::Material>,
40        >,
41    }
42}
43
44#[cfg(feature = "app-debugoverlap-types")]
45pub use __types::*;
46
47#[cfg(feature = "app-debugoverlap")]
48pub trait IDebugOverlapMethods: IDebugOverlap {
49    #[doc = "`GetMaterials(crate::unity_engine::renderer::Renderer)` overload"]
50    fn get_materials(
51        self,
52        render: impl ::core::convert::Into<crate::unity_engine::renderer::Renderer>,
53    ) -> ::unity::Array<crate::unity_engine::material::Material> {
54        unsafe {
55            let __receiver = <DebugOverlap as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
56            ::unity::il2cpp_call!((::unity::module_base()+0x2a0ef00usize)as*mut u8, ::unity::Array<crate::unity_engine::material::Material> ;
57(DebugOverlap)__receiver,(crate::unity_engine::renderer::Renderer)::core::convert::Into::into(render))
58        }
59    }
60    #[doc = "`SetMaterials(crate::unity_engine::renderer::Renderer, ::unity::Array<crate::unity_engine::material::Material>)` overload"]
61    fn set_materials(
62        self,
63        render: impl ::core::convert::Into<crate::unity_engine::renderer::Renderer>,
64        materials: impl ::core::convert::Into<::unity::Array<crate::unity_engine::material::Material>>,
65    ) -> () {
66        unsafe {
67            let __receiver = <DebugOverlap as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
68            ::unity::il2cpp_call!((::unity::module_base()+0x2a0efa0usize)as*mut u8,();
69(DebugOverlap)__receiver,(crate::unity_engine::renderer::Renderer)::core::convert::Into::into(render),(::unity::Array<crate::unity_engine::material::Material>)::core::convert::Into::into(materials))
70        }
71    }
72    #[doc = "`OnEnable()` overload"]
73    fn on_enable(self) -> () {
74        unsafe {
75            let __receiver = <DebugOverlap as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
76            ::unity::il2cpp_call!((::unity::module_base()+0x2a0f050usize)as*mut u8,();
77(DebugOverlap)__receiver)
78        }
79    }
80    #[doc = "`OnDisable()` overload"]
81    fn on_disable(self) -> () {
82        unsafe {
83            let __receiver = <DebugOverlap as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
84            ::unity::il2cpp_call!((::unity::module_base()+0x2a0f490usize)as*mut u8,();
85(DebugOverlap)__receiver)
86        }
87    }
88    #[doc = "`.ctor()` overload"]
89    fn ctor(self) -> () {
90        unsafe {
91            let __receiver = <DebugOverlap as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
92            ::unity::il2cpp_call!((::unity::module_base()+0x2a0f6e0usize)as*mut u8,();
93(DebugOverlap)__receiver)
94        }
95    }
96}
97
98#[cfg(feature = "app-debugoverlap")]
99impl<__T: IDebugOverlap> IDebugOverlapMethods for __T {}
100
101#[cfg(feature = "app-debugoverlap")]
102impl DebugOverlap {
103    pub fn get_materials_method_info() -> &'static ::unity::il2cpp::MethodInfo {
104        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
105    }
106
107    pub fn set_materials_method_info() -> &'static ::unity::il2cpp::MethodInfo {
108        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
109    }
110
111    pub fn on_enable_method_info() -> &'static ::unity::il2cpp::MethodInfo {
112        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
113    }
114
115    pub fn on_disable_method_info() -> &'static ::unity::il2cpp::MethodInfo {
116        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
117    }
118
119    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
120        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
121    }
122}
123
124#[cfg(feature = "app-debugoverlap")]
125impl DebugOverlap {
126    #[doc = "`.ctor()` — no args"]
127    pub fn new() -> Self {
128        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
129            panic!(
130                "{}
131::{}
132 failed to instantiate",
133                ::core::stringify!(DebugOverlap),
134                ::core::stringify!(new),
135            )
136        });
137        <Self as IDebugOverlapMethods>::ctor(this);
138        this
139    }
140}
141
142#[cfg(feature = "app-debugoverlap")]
143#[doc(hidden)]
144pub mod prelude {
145    pub use super::{DebugOverlap, IDebugOverlap, IDebugOverlapMethods};
146    #[cfg(feature = "app-singletonmonobehaviour_1")]
147    pub use crate::app::singletonmonobehaviour_1::ISingletonMonoBehaviour_1Methods;
148    #[cfg(feature = "system-object")]
149    pub use crate::system::object::IObjectMethods;
150    #[cfg(feature = "unity_engine-behaviour")]
151    pub use crate::unity_engine::behaviour::IBehaviourMethods;
152    #[cfg(feature = "unity_engine-component")]
153    pub use crate::unity_engine::component::IComponentMethods;
154    #[cfg(feature = "unity_engine-monobehaviour")]
155    pub use crate::unity_engine::monobehaviour::IMonoBehaviourMethods;
156    #[cfg(feature = "unity_engine-object_2")]
157    pub use crate::unity_engine::object_2::IObject_2Methods;
158    pub use crate::{
159        app::singletonmonobehaviour_1::ISingletonMonoBehaviour_1,
160        system::object::IObject,
161        unity_engine::{behaviour::IBehaviour, component::IComponent, monobehaviour::IMonoBehaviour, object_2::IObject_2},
162    };
163}