Skip to main content

engage/generated/moon_sharp/interpreter/
moonsharpuserdatametamethodattribute.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "moon_sharp-interpreter-moonsharpuserdatametamethodattribute-types")]
4mod __types {
5    #[allow(unused_imports)] use ::unity::prelude::*;
6
7    use super::*;
8
9    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/moon_sharp/interpreter/moonsharpuserdatametamethodattribute/MoonSharpUserDataMetamethodAttribute.md"))]
10    #[::unity::class(namespace = "MoonSharp.Interpreter", name = "MoonSharpUserDataMetamethodAttribute")]
11    pub struct MoonSharpUserDataMetamethodAttribute {}
12}
13
14#[cfg(feature = "moon_sharp-interpreter-moonsharpuserdatametamethodattribute-types")]
15pub use __types::*;
16
17#[cfg(feature = "moon_sharp-interpreter-moonsharpuserdatametamethodattribute")]
18#[doc(hidden)]
19#[allow(non_snake_case, non_camel_case_types, clippy::too_many_arguments)]
20mod __MoonSharpUserDataMetamethodAttribute_unity_raw {
21    use super::*;
22    #[doc(hidden)]
23    #[allow(non_snake_case)]
24    pub mod __lookup_get_name {
25        use super::*;
26        static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
27            let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[];
28            ::unity::lookup::method_info_on_class_with_signature(
29                <MoonSharpUserDataMetamethodAttribute as ::unity::ClassIdentity>::class(),
30                "get_Name",
31                0,
32                param_types,
33                false,
34            )
35        });
36        pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
37            match &*METHOD {
38                ::core::result::Result::Ok(mi) => *mi,
39                ::core::result::Result::Err(e) => {
40                    panic!(
41                        "method lookup failed: {}
42::{}
43: {}
44",
45                        <MoonSharpUserDataMetamethodAttribute as ::unity::ClassIdentity>::NAME,
46                        "get_Name",
47                        e
48                    )
49                },
50            }
51        }
52    }
53    #[doc(hidden)]
54    #[allow(non_snake_case)]
55    pub mod __lookup_set_name {
56        use super::*;
57        static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
58            let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[<::unity::Il2CppString as ::unity::IlType>::il_type()];
59            ::unity::lookup::method_info_on_class_with_signature(
60                <MoonSharpUserDataMetamethodAttribute as ::unity::ClassIdentity>::class(),
61                "set_Name",
62                1,
63                param_types,
64                false,
65            )
66        });
67        pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
68            match &*METHOD {
69                ::core::result::Result::Ok(mi) => *mi,
70                ::core::result::Result::Err(e) => {
71                    panic!(
72                        "method lookup failed: {}
73::{}
74: {}
75",
76                        <MoonSharpUserDataMetamethodAttribute as ::unity::ClassIdentity>::NAME,
77                        "set_Name",
78                        e
79                    )
80                },
81            }
82        }
83    }
84    #[doc(hidden)]
85    #[allow(non_snake_case)]
86    pub mod __lookup_ctor {
87        use super::*;
88        static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
89            let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[<::unity::Il2CppString as ::unity::IlType>::il_type()];
90            ::unity::lookup::method_info_on_class_with_signature(
91                <MoonSharpUserDataMetamethodAttribute as ::unity::ClassIdentity>::class(),
92                ".ctor",
93                1,
94                param_types,
95                false,
96            )
97        });
98        pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
99            match &*METHOD {
100                ::core::result::Result::Ok(mi) => *mi,
101                ::core::result::Result::Err(e) => {
102                    panic!(
103                        "method lookup failed: {}
104::{}
105: {}
106",
107                        <MoonSharpUserDataMetamethodAttribute as ::unity::ClassIdentity>::NAME,
108                        ".ctor",
109                        e
110                    )
111                },
112            }
113        }
114    }
115}
116
117#[cfg(feature = "moon_sharp-interpreter-moonsharpuserdatametamethodattribute")]
118pub trait IMoonSharpUserDataMetamethodAttributeMethods: IMoonSharpUserDataMetamethodAttribute {
119    #[doc = "`get_Name()` overload"]
120    fn get_name(self) -> ::unity::Il2CppString {
121        unsafe {
122            let __receiver = <MoonSharpUserDataMetamethodAttribute as ::unity::FromIlInstance>::from_il_instance(
123                <Self as ::unity::SystemObject>::as_instance(self),
124            );
125            ::unity::il2cpp_call!(__MoonSharpUserDataMetamethodAttribute_unity_raw::__lookup_get_name::get_method_info().method_ptr, ::unity::Il2CppString;
126(MoonSharpUserDataMetamethodAttribute)__receiver)
127        }
128    }
129    #[doc = "`set_Name(::unity::Il2CppString)` overload"]
130    fn set_name(self, value: impl ::core::convert::Into<::unity::Il2CppString>) -> () {
131        unsafe {
132            let __receiver = <MoonSharpUserDataMetamethodAttribute as ::unity::FromIlInstance>::from_il_instance(
133                <Self as ::unity::SystemObject>::as_instance(self),
134            );
135            ::unity::il2cpp_call!(__MoonSharpUserDataMetamethodAttribute_unity_raw::__lookup_set_name::get_method_info().method_ptr,();
136(MoonSharpUserDataMetamethodAttribute)__receiver,(::unity::Il2CppString)::core::convert::Into::into(value))
137        }
138    }
139    #[doc = "`.ctor(::unity::Il2CppString)` overload"]
140    fn ctor(self, name: impl ::core::convert::Into<::unity::Il2CppString>) -> () {
141        unsafe {
142            let __receiver = <MoonSharpUserDataMetamethodAttribute as ::unity::FromIlInstance>::from_il_instance(
143                <Self as ::unity::SystemObject>::as_instance(self),
144            );
145            ::unity::il2cpp_call!(__MoonSharpUserDataMetamethodAttribute_unity_raw::__lookup_ctor::get_method_info().method_ptr,();
146(MoonSharpUserDataMetamethodAttribute)__receiver,(::unity::Il2CppString)::core::convert::Into::into(name))
147        }
148    }
149}
150
151#[cfg(feature = "moon_sharp-interpreter-moonsharpuserdatametamethodattribute")]
152impl<__T: IMoonSharpUserDataMetamethodAttribute> IMoonSharpUserDataMetamethodAttributeMethods for __T {}
153
154#[cfg(feature = "moon_sharp-interpreter-moonsharpuserdatametamethodattribute")]
155impl MoonSharpUserDataMetamethodAttribute {
156    pub fn get_name_method_info() -> &'static ::unity::il2cpp::MethodInfo {
157        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
158    }
159
160    pub fn set_name_method_info() -> &'static ::unity::il2cpp::MethodInfo {
161        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
162    }
163
164    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
165        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
166    }
167}
168
169#[cfg(feature = "moon_sharp-interpreter-moonsharpuserdatametamethodattribute")]
170impl MoonSharpUserDataMetamethodAttribute {
171    #[doc = "`.ctor(::unity::Il2CppString)` — overload selector"]
172    pub fn new(name: ::unity::Il2CppString) -> Self {
173        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
174            panic!(
175                "{}
176::{}
177 failed to instantiate",
178                ::core::stringify!(MoonSharpUserDataMetamethodAttribute),
179                ::core::stringify!(new),
180            )
181        });
182        <Self as IMoonSharpUserDataMetamethodAttributeMethods>::ctor(this, name);
183        this
184    }
185}
186
187#[cfg(feature = "moon_sharp-interpreter-moonsharpuserdatametamethodattribute")]
188#[doc(hidden)]
189pub mod prelude {
190    pub use super::{IMoonSharpUserDataMetamethodAttribute, IMoonSharpUserDataMetamethodAttributeMethods, MoonSharpUserDataMetamethodAttribute};
191}