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