Skip to main content

engage/generated/unity_engine/bindings/
nativepropertyattribute.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "unity_engine-bindings-nativepropertyattribute-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::bindings::nativemethodattribute::{INativeMethodAttribute, NativeMethodAttribute},
11    };
12
13    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/unity_engine/bindings/nativepropertyattribute/NativePropertyAttribute.md"))]
14    #[::unity::class(namespace = "UnityEngine.Bindings", name = "NativePropertyAttribute")]
15    #[parent(crate::unity_engine::bindings::nativemethodattribute::NativeMethodAttribute)]
16    pub struct NativePropertyAttribute {}
17}
18
19#[cfg(feature = "unity_engine-bindings-nativepropertyattribute-types")]
20pub use __types::*;
21
22#[cfg(feature = "unity_engine-bindings-nativepropertyattribute")]
23pub trait INativePropertyAttributeMethods: INativePropertyAttribute {
24    #[doc = "`set_TargetType(crate::unity_engine::bindings::targettype::TargetType)` overload"]
25    fn set_target_type(self, value: impl ::core::convert::Into<crate::unity_engine::bindings::targettype::TargetType>) -> () {
26        unsafe {
27            let __receiver =
28                <NativePropertyAttribute as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
29            ::unity::il2cpp_call!((::unity::module_base()+0x3f381c0usize)as*mut u8,();
30(NativePropertyAttribute)__receiver,(crate::unity_engine::bindings::targettype::TargetType)::core::convert::Into::into(value))
31        }
32    }
33    #[doc = "`.ctor()` overload"]
34    fn ctor(self) -> () {
35        unsafe {
36            let __receiver =
37                <NativePropertyAttribute as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
38            ::unity::il2cpp_call!((::unity::module_base()+0x3f381d0usize)as*mut u8,();
39(NativePropertyAttribute)__receiver)
40        }
41    }
42    #[doc = "`.ctor(::unity::Il2CppString)` overload"]
43    fn ctor_2(self, name: impl ::core::convert::Into<::unity::Il2CppString>) -> () {
44        unsafe {
45            let __receiver =
46                <NativePropertyAttribute as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
47            ::unity::il2cpp_call!((::unity::module_base()+0x3f381e0usize)as*mut u8,();
48(NativePropertyAttribute)__receiver,(::unity::Il2CppString)::core::convert::Into::into(name))
49        }
50    }
51    #[doc = "`.ctor(::unity::Il2CppString, bool, crate::unity_engine::bindings::targettype::TargetType)` overload"]
52    fn ctor_3(
53        self,
54        name: impl ::core::convert::Into<::unity::Il2CppString>,
55        is_free: impl ::core::convert::Into<bool>,
56        target_type: impl ::core::convert::Into<crate::unity_engine::bindings::targettype::TargetType>,
57    ) -> () {
58        unsafe {
59            let __receiver =
60                <NativePropertyAttribute as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
61            ::unity::il2cpp_call!((::unity::module_base()+0x3f381f0usize)as*mut u8,();
62(NativePropertyAttribute)__receiver,(::unity::Il2CppString)::core::convert::Into::into(name),(bool)::core::convert::Into::into(is_free),(crate::unity_engine::bindings::targettype::TargetType)::core::convert::Into::into(target_type))
63        }
64    }
65}
66
67#[cfg(feature = "unity_engine-bindings-nativepropertyattribute")]
68impl<__T: INativePropertyAttribute> INativePropertyAttributeMethods for __T {}
69
70#[cfg(feature = "unity_engine-bindings-nativepropertyattribute")]
71impl NativePropertyAttribute {
72    pub fn set_target_type_method_info() -> &'static ::unity::il2cpp::MethodInfo {
73        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
74    }
75
76    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
77        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
78    }
79
80    pub fn ctor_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
81        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
82    }
83
84    pub fn ctor_3_method_info() -> &'static ::unity::il2cpp::MethodInfo {
85        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
86    }
87}
88
89#[cfg(feature = "unity_engine-bindings-nativepropertyattribute")]
90impl NativePropertyAttribute {
91    #[doc = "`.ctor()` — no args"]
92    pub fn new() -> Self {
93        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
94            panic!(
95                "{}
96::{}
97 failed to instantiate",
98                ::core::stringify!(NativePropertyAttribute),
99                ::core::stringify!(new),
100            )
101        });
102        <Self as INativePropertyAttributeMethods>::ctor(this);
103        this
104    }
105
106    #[doc = "`.ctor(::unity::Il2CppString)` — overload selector"]
107    pub fn new_2(name: ::unity::Il2CppString) -> Self {
108        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
109            panic!(
110                "{}
111::{}
112 failed to instantiate",
113                ::core::stringify!(NativePropertyAttribute),
114                ::core::stringify!(new_2),
115            )
116        });
117        <Self as INativePropertyAttributeMethods>::ctor_2(this, name);
118        this
119    }
120
121    #[doc = "`.ctor(::unity::Il2CppString, bool, crate::unity_engine::bindings::targettype::TargetType)` — overload selector"]
122    pub fn new_3(name: ::unity::Il2CppString, is_free: bool, target_type: crate::unity_engine::bindings::targettype::TargetType) -> Self {
123        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
124            panic!(
125                "{}
126::{}
127 failed to instantiate",
128                ::core::stringify!(NativePropertyAttribute),
129                ::core::stringify!(new_3),
130            )
131        });
132        <Self as INativePropertyAttributeMethods>::ctor_3(this, name, is_free, target_type);
133        this
134    }
135}
136
137#[cfg(feature = "unity_engine-bindings-nativepropertyattribute")]
138#[doc(hidden)]
139pub mod prelude {
140    pub use super::{INativePropertyAttribute, INativePropertyAttributeMethods, NativePropertyAttribute};
141    #[cfg(feature = "system-object")]
142    pub use crate::system::object::IObjectMethods;
143    #[cfg(feature = "unity_engine-bindings-nativemethodattribute")]
144    pub use crate::unity_engine::bindings::nativemethodattribute::INativeMethodAttributeMethods;
145    pub use crate::{system::object::IObject, unity_engine::bindings::nativemethodattribute::INativeMethodAttribute};
146}