engage/generated/root/
sandbox.rs1#[cfg(feature = "root-sandbox-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/root/sandbox/SandBox.md"))]
19 #[::unity::class(namespace = "", name = "SandBox")]
20 #[parent(crate::unity_engine::monobehaviour::MonoBehaviour)]
21 pub struct SandBox {
22 #[offset(24)]
23 #[rename(name = "m_Color")]
24 pub m_color: crate::unity_engine::color::Color,
25 #[offset(40)]
26 #[rename(name = "m_Property")]
27 pub m_property: crate::unity_engine::materialpropertyblock::MaterialPropertyBlock,
28 }
29}
30
31#[cfg(feature = "root-sandbox-types")]
32pub use __types::*;
33
34#[cfg(feature = "root-sandbox")]
35pub trait ISandBoxMethods: ISandBox {
36 #[doc = "`Start()` overload"]
37 fn start(self) -> () {
38 unsafe {
39 let __receiver = <SandBox as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
40 ::unity::il2cpp_call!((::unity::module_base()+0x1ec4710usize)as*mut u8,();
41(SandBox)__receiver)
42 }
43 }
44 #[doc = "`TryCreateProperty()` overload"]
45 fn try_create_property(self) -> () {
46 unsafe {
47 let __receiver = <SandBox as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
48 ::unity::il2cpp_call!((::unity::module_base()+0x1ec4860usize)as*mut u8,();
49(SandBox)__receiver)
50 }
51 }
52 #[doc = "`Update()` overload"]
53 fn update(self) -> () {
54 unsafe {
55 let __receiver = <SandBox as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
56 ::unity::il2cpp_call!((::unity::module_base()+0x1ec48e0usize)as*mut u8,();
57(SandBox)__receiver)
58 }
59 }
60 #[doc = "`UpdateColor()` overload"]
61 fn update_color(self) -> () {
62 unsafe {
63 let __receiver = <SandBox as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
64 ::unity::il2cpp_call!((::unity::module_base()+0x1ec4720usize)as*mut u8,();
65(SandBox)__receiver)
66 }
67 }
68 #[doc = "`.ctor()` overload"]
69 fn ctor(self) -> () {
70 unsafe {
71 let __receiver = <SandBox as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
72 ::unity::il2cpp_call!((::unity::module_base()+0x1ec48f0usize)as*mut u8,();
73(SandBox)__receiver)
74 }
75 }
76}
77
78#[cfg(feature = "root-sandbox")]
79impl<__T: ISandBox> ISandBoxMethods for __T {}
80
81#[cfg(feature = "root-sandbox")]
82impl SandBox {
83 pub fn start_method_info() -> &'static ::unity::il2cpp::MethodInfo {
84 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
85 }
86
87 pub fn try_create_property_method_info() -> &'static ::unity::il2cpp::MethodInfo {
88 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
89 }
90
91 pub fn update_method_info() -> &'static ::unity::il2cpp::MethodInfo {
92 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
93 }
94
95 pub fn update_color_method_info() -> &'static ::unity::il2cpp::MethodInfo {
96 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
97 }
98
99 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
100 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
101 }
102}
103
104#[cfg(feature = "root-sandbox")]
105impl SandBox {
106 #[doc = "`.ctor()` — no args"]
107 pub fn new() -> Self {
108 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
109 panic!(
110 "{}
111::{}
112 failed to instantiate",
113 ::core::stringify!(SandBox),
114 ::core::stringify!(new),
115 )
116 });
117 <Self as ISandBoxMethods>::ctor(this);
118 this
119 }
120}
121
122#[cfg(feature = "root-sandbox")]
123#[doc(hidden)]
124pub mod prelude {
125 pub use super::{ISandBox, ISandBoxMethods, SandBox};
126 #[cfg(feature = "system-object")]
127 pub use crate::system::object::IObjectMethods;
128 #[cfg(feature = "unity_engine-behaviour")]
129 pub use crate::unity_engine::behaviour::IBehaviourMethods;
130 #[cfg(feature = "unity_engine-component")]
131 pub use crate::unity_engine::component::IComponentMethods;
132 #[cfg(feature = "unity_engine-monobehaviour")]
133 pub use crate::unity_engine::monobehaviour::IMonoBehaviourMethods;
134 #[cfg(feature = "unity_engine-object_2")]
135 pub use crate::unity_engine::object_2::IObject_2Methods;
136 pub use crate::{
137 system::object::IObject,
138 unity_engine::{behaviour::IBehaviour, component::IComponent, monobehaviour::IMonoBehaviour, object_2::IObject_2},
139 };
140}