Skip to main content

engage/generated/unity_engine/bindings/
freefunctionattribute.rs

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