engage/generated/app/
gmaplightcolortable.rs1#[cfg(feature = "app-gmaplightcolortable-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/gmaplightcolortable/GmapLightColorTable.md"))]
19 #[::unity::class(namespace = "App", name = "GmapLightColorTable")]
20 #[parent(crate::unity_engine::monobehaviour::MonoBehaviour)]
21 pub struct GmapLightColorTable {
22 #[offset(24)]
23 #[rename(name = "m_LightColorTable")]
24 pub m_light_color_table: ::unity::Array<crate::unity_engine::color::Color>,
25 }
26}
27
28#[cfg(feature = "app-gmaplightcolortable-types")]
29pub use __types::*;
30
31#[cfg(feature = "app-gmaplightcolortable")]
32pub trait IGmapLightColorTableMethods: IGmapLightColorTable {
33 #[doc = "`.ctor()` overload"]
34 fn ctor(self) -> () {
35 unsafe {
36 let __receiver = <GmapLightColorTable as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
37 ::unity::il2cpp_call!((::unity::module_base()+0x2528bc0usize)as*mut u8,();
38(GmapLightColorTable)__receiver)
39 }
40 }
41}
42
43#[cfg(feature = "app-gmaplightcolortable")]
44impl<__T: IGmapLightColorTable> IGmapLightColorTableMethods for __T {}
45
46#[cfg(feature = "app-gmaplightcolortable")]
47impl GmapLightColorTable {
48 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
49 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
50 }
51}
52
53#[cfg(feature = "app-gmaplightcolortable")]
54impl GmapLightColorTable {
55 #[doc = "`.ctor()` — no args"]
56 pub fn new() -> Self {
57 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
58 panic!(
59 "{}
60::{}
61 failed to instantiate",
62 ::core::stringify!(GmapLightColorTable),
63 ::core::stringify!(new),
64 )
65 });
66 <Self as IGmapLightColorTableMethods>::ctor(this);
67 this
68 }
69}
70
71#[cfg(feature = "app-gmaplightcolortable")]
72#[doc(hidden)]
73pub mod prelude {
74 pub use super::{GmapLightColorTable, IGmapLightColorTable, IGmapLightColorTableMethods};
75 #[cfg(feature = "system-object")]
76 pub use crate::system::object::IObjectMethods;
77 #[cfg(feature = "unity_engine-behaviour")]
78 pub use crate::unity_engine::behaviour::IBehaviourMethods;
79 #[cfg(feature = "unity_engine-component")]
80 pub use crate::unity_engine::component::IComponentMethods;
81 #[cfg(feature = "unity_engine-monobehaviour")]
82 pub use crate::unity_engine::monobehaviour::IMonoBehaviourMethods;
83 #[cfg(feature = "unity_engine-object_2")]
84 pub use crate::unity_engine::object_2::IObject_2Methods;
85 pub use crate::{
86 system::object::IObject,
87 unity_engine::{behaviour::IBehaviour, component::IComponent, monobehaviour::IMonoBehaviour, object_2::IObject_2},
88 };
89}