Skip to main content

engage/generated/app/
mappaneldebug.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "app-mappaneldebug-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        root::mappanelbase_1::{IMapPanelBase_1, MapPanelBase_1},
11        system::{
12            object::{IObject, Object},
13            valuetype::{IValueType, ValueType},
14        },
15        unity_engine::{
16            behaviour::{Behaviour, IBehaviour},
17            component::{Component, IComponent},
18            monobehaviour::{IMonoBehaviour, MonoBehaviour},
19            object_2::{IObject_2, Object_2},
20        },
21    };
22
23    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/mappaneldebug/MapPanelDebug_Entity.md"))]
24    #[repr(C)]
25    #[derive(::core::clone::Clone, ::core::marker::Copy)]
26    pub struct MapPanelDebug_Entity {
27        pub x: i32,
28        pub z: i32,
29        pub color: crate::unity_engine::color::Color,
30    }
31    impl ::unity::ClassIdentity for MapPanelDebug_Entity {
32        const NAME: &'static str = "MapPanelDebug.Entity";
33        const NAMESPACE: &'static str = "App";
34
35        fn class() -> ::unity::Class {
36            static CACHE: ::std::sync::OnceLock<::unity::Class> = ::std::sync::OnceLock::new();
37            *CACHE.get_or_init(|| ::unity::Class::lookup(Self::NAMESPACE, Self::NAME))
38        }
39    }
40    impl ::unity::IlType for MapPanelDebug_Entity {
41        fn il_type() -> &'static ::unity::il2cpp::Il2CppType {
42            &<Self as ::unity::ClassIdentity>::class().raw()._1.byval_arg
43        }
44    }
45
46    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/mappaneldebug/MapPanelDebug.md"))]
47    #[::unity::class(namespace = "App", name = "MapPanelDebug")]
48    #[parent(crate::root::mappanelbase_1::MapPanelBase_1<crate::app::mappaneldebug::MapPanelDebug>)]
49    pub struct MapPanelDebug {
50        #[offset(64)]
51        #[rename(name = "m_Entitys")]
52        pub m_entitys: crate::system::collections::generic::list_1::List_1<crate::app::mappaneldebug::MapPanelDebug_Entity>,
53    }
54}
55
56#[cfg(feature = "app-mappaneldebug-types")]
57pub use __types::*;
58
59#[cfg(feature = "app-mappaneldebug")]
60impl MapPanelDebug {
61    #[doc = "`Draw(i32, i32, crate::unity_engine::color::Color)` overload"]
62    pub fn draw(
63        x: impl ::core::convert::Into<i32>,
64        z: impl ::core::convert::Into<i32>,
65        color: impl ::core::convert::Into<crate::unity_engine::color::Color>,
66    ) -> () {
67        unsafe {
68            ::unity::il2cpp_call!((::unity::module_base()+0x234e530usize)as*mut u8,();
69(i32)::core::convert::Into::into(x),(i32)::core::convert::Into::into(z),(crate::unity_engine::color::Color)::core::convert::Into::into(color))
70        }
71    }
72}
73
74#[cfg(feature = "app-mappaneldebug")]
75pub trait IMapPanelDebugMethods: IMapPanelDebug {
76    #[doc = "`.ctor()` overload"]
77    fn ctor(self) -> () {
78        unsafe {
79            let __receiver = <MapPanelDebug as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
80            ::unity::il2cpp_call!((::unity::module_base()+0x234e540usize)as*mut u8,();
81(MapPanelDebug)__receiver)
82        }
83    }
84}
85
86#[cfg(feature = "app-mappaneldebug")]
87impl<__T: IMapPanelDebug> IMapPanelDebugMethods for __T {}
88
89#[cfg(feature = "app-mappaneldebug")]
90impl MapPanelDebug {
91    pub fn draw_method_info() -> &'static ::unity::il2cpp::MethodInfo {
92        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
93    }
94
95    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
96        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
97    }
98}
99
100#[cfg(feature = "app-mappaneldebug")]
101impl MapPanelDebug {
102    #[doc = "`.ctor()` — no args"]
103    pub fn new() -> Self {
104        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
105            panic!(
106                "{}
107::{}
108 failed to instantiate",
109                ::core::stringify!(MapPanelDebug),
110                ::core::stringify!(new),
111            )
112        });
113        <Self as IMapPanelDebugMethods>::ctor(this);
114        this
115    }
116}
117
118#[cfg(feature = "app-mappaneldebug")]
119#[doc(hidden)]
120pub mod prelude {
121    pub use super::{IMapPanelDebug, IMapPanelDebugMethods, MapPanelDebug, MapPanelDebug_Entity};
122    #[cfg(feature = "app-singletonmonobehaviour_1")]
123    pub use crate::app::singletonmonobehaviour_1::ISingletonMonoBehaviour_1Methods;
124    #[cfg(feature = "root-mappanelbase_1")]
125    pub use crate::root::mappanelbase_1::IMapPanelBase_1Methods;
126    #[cfg(feature = "system-object")]
127    pub use crate::system::object::IObjectMethods;
128    #[cfg(feature = "system-valuetype")]
129    pub use crate::system::valuetype::IValueTypeMethods;
130    #[cfg(feature = "unity_engine-behaviour")]
131    pub use crate::unity_engine::behaviour::IBehaviourMethods;
132    #[cfg(feature = "unity_engine-component")]
133    pub use crate::unity_engine::component::IComponentMethods;
134    #[cfg(feature = "unity_engine-monobehaviour")]
135    pub use crate::unity_engine::monobehaviour::IMonoBehaviourMethods;
136    #[cfg(feature = "unity_engine-object_2")]
137    pub use crate::unity_engine::object_2::IObject_2Methods;
138    pub use crate::{
139        app::singletonmonobehaviour_1::ISingletonMonoBehaviour_1,
140        root::mappanelbase_1::IMapPanelBase_1,
141        system::{object::IObject, valuetype::IValueType},
142        unity_engine::{behaviour::IBehaviour, component::IComponent, monobehaviour::IMonoBehaviour, object_2::IObject_2},
143    };
144}