Skip to main content

engage/generated/unity_engine/
spaceattribute.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "unity_engine-spaceattribute-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::propertyattribute::{IPropertyAttribute, PropertyAttribute},
11    };
12
13    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/unity_engine/spaceattribute/SpaceAttribute.md"))]
14    #[::unity::class(namespace = "UnityEngine", name = "SpaceAttribute")]
15    #[parent(crate::unity_engine::propertyattribute::PropertyAttribute)]
16    pub struct SpaceAttribute {
17        #[offset(16)]
18        #[rename(name = "height")]
19        pub height: f32,
20    }
21}
22
23#[cfg(feature = "unity_engine-spaceattribute-types")]
24pub use __types::*;
25
26#[cfg(feature = "unity_engine-spaceattribute")]
27pub trait ISpaceAttributeMethods: ISpaceAttribute {
28    #[doc = "`.ctor()` overload"]
29    fn ctor(self) -> () {
30        unsafe {
31            let __receiver = <SpaceAttribute as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
32            ::unity::il2cpp_call!((::unity::module_base()+0x2f94c30usize)as*mut u8,();
33(SpaceAttribute)__receiver)
34        }
35    }
36    #[doc = "`.ctor(f32)` overload"]
37    fn ctor_2(self, height: impl ::core::convert::Into<f32>) -> () {
38        unsafe {
39            let __receiver = <SpaceAttribute as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
40            ::unity::il2cpp_call!((::unity::module_base()+0x2f94c60usize)as*mut u8,();
41(SpaceAttribute)__receiver,(f32)::core::convert::Into::into(height))
42        }
43    }
44}
45
46#[cfg(feature = "unity_engine-spaceattribute")]
47impl<__T: ISpaceAttribute> ISpaceAttributeMethods for __T {}
48
49#[cfg(feature = "unity_engine-spaceattribute")]
50impl SpaceAttribute {
51    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
52        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
53    }
54
55    pub fn ctor_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
56        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
57    }
58}
59
60#[cfg(feature = "unity_engine-spaceattribute")]
61impl SpaceAttribute {
62    #[doc = "`.ctor()` — no args"]
63    pub fn new() -> Self {
64        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
65            panic!(
66                "{}
67::{}
68 failed to instantiate",
69                ::core::stringify!(SpaceAttribute),
70                ::core::stringify!(new),
71            )
72        });
73        <Self as ISpaceAttributeMethods>::ctor(this);
74        this
75    }
76
77    #[doc = "`.ctor(f32)` — overload selector"]
78    pub fn new_2(height: f32) -> Self {
79        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
80            panic!(
81                "{}
82::{}
83 failed to instantiate",
84                ::core::stringify!(SpaceAttribute),
85                ::core::stringify!(new_2),
86            )
87        });
88        <Self as ISpaceAttributeMethods>::ctor_2(this, height);
89        this
90    }
91}
92
93#[cfg(feature = "unity_engine-spaceattribute")]
94#[doc(hidden)]
95pub mod prelude {
96    pub use super::{ISpaceAttribute, ISpaceAttributeMethods, SpaceAttribute};
97    #[cfg(feature = "system-object")]
98    pub use crate::system::object::IObjectMethods;
99    #[cfg(feature = "unity_engine-propertyattribute")]
100    pub use crate::unity_engine::propertyattribute::IPropertyAttributeMethods;
101    pub use crate::{system::object::IObject, unity_engine::propertyattribute::IPropertyAttribute};
102}