Skip to main content

engage/generated/moon_sharp/interpreter/
moonsharphidememberattribute.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "moon_sharp-interpreter-moonsharphidememberattribute-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/moonsharphidememberattribute/MoonSharpHideMemberAttribute.md"))]
10    #[::unity::class(namespace = "MoonSharp.Interpreter", name = "MoonSharpHideMemberAttribute")]
11    pub struct MoonSharpHideMemberAttribute {}
12}
13
14#[cfg(feature = "moon_sharp-interpreter-moonsharphidememberattribute-types")]
15pub use __types::*;
16
17#[cfg(feature = "moon_sharp-interpreter-moonsharphidememberattribute")]
18#[doc(hidden)]
19#[allow(non_snake_case, non_camel_case_types, clippy::too_many_arguments)]
20mod __MoonSharpHideMemberAttribute_unity_raw {
21    use super::*;
22    #[doc(hidden)]
23    #[allow(non_snake_case)]
24    pub mod __lookup_get_member_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                <MoonSharpHideMemberAttribute as ::unity::ClassIdentity>::class(),
30                "get_MemberName",
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                        <MoonSharpHideMemberAttribute as ::unity::ClassIdentity>::NAME,
46                        "get_MemberName",
47                        e
48                    )
49                },
50            }
51        }
52    }
53    #[doc(hidden)]
54    #[allow(non_snake_case)]
55    pub mod __lookup_set_member_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                <MoonSharpHideMemberAttribute as ::unity::ClassIdentity>::class(),
61                "set_MemberName",
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                        <MoonSharpHideMemberAttribute as ::unity::ClassIdentity>::NAME,
77                        "set_MemberName",
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                <MoonSharpHideMemberAttribute 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                        <MoonSharpHideMemberAttribute as ::unity::ClassIdentity>::NAME,
108                        ".ctor",
109                        e
110                    )
111                },
112            }
113        }
114    }
115}
116
117#[cfg(feature = "moon_sharp-interpreter-moonsharphidememberattribute")]
118pub trait IMoonSharpHideMemberAttributeMethods: IMoonSharpHideMemberAttribute {
119    #[doc = "`get_MemberName()` overload"]
120    fn get_member_name(self) -> ::unity::Il2CppString {
121        unsafe {
122            let __receiver =
123                <MoonSharpHideMemberAttribute as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
124            ::unity::il2cpp_call!(__MoonSharpHideMemberAttribute_unity_raw::__lookup_get_member_name::get_method_info().method_ptr, ::unity::Il2CppString;
125(MoonSharpHideMemberAttribute)__receiver)
126        }
127    }
128    #[doc = "`set_MemberName(::unity::Il2CppString)` overload"]
129    fn set_member_name(self, value: impl ::core::convert::Into<::unity::Il2CppString>) -> () {
130        unsafe {
131            let __receiver =
132                <MoonSharpHideMemberAttribute as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
133            ::unity::il2cpp_call!(__MoonSharpHideMemberAttribute_unity_raw::__lookup_set_member_name::get_method_info().method_ptr,();
134(MoonSharpHideMemberAttribute)__receiver,(::unity::Il2CppString)::core::convert::Into::into(value))
135        }
136    }
137    #[doc = "`.ctor(::unity::Il2CppString)` overload"]
138    fn ctor(self, member_name: impl ::core::convert::Into<::unity::Il2CppString>) -> () {
139        unsafe {
140            let __receiver =
141                <MoonSharpHideMemberAttribute as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
142            ::unity::il2cpp_call!(__MoonSharpHideMemberAttribute_unity_raw::__lookup_ctor::get_method_info().method_ptr,();
143(MoonSharpHideMemberAttribute)__receiver,(::unity::Il2CppString)::core::convert::Into::into(member_name))
144        }
145    }
146}
147
148#[cfg(feature = "moon_sharp-interpreter-moonsharphidememberattribute")]
149impl<__T: IMoonSharpHideMemberAttribute> IMoonSharpHideMemberAttributeMethods for __T {}
150
151#[cfg(feature = "moon_sharp-interpreter-moonsharphidememberattribute")]
152impl MoonSharpHideMemberAttribute {
153    pub fn get_member_name_method_info() -> &'static ::unity::il2cpp::MethodInfo {
154        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
155    }
156
157    pub fn set_member_name_method_info() -> &'static ::unity::il2cpp::MethodInfo {
158        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
159    }
160
161    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
162        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
163    }
164}
165
166#[cfg(feature = "moon_sharp-interpreter-moonsharphidememberattribute")]
167impl MoonSharpHideMemberAttribute {
168    #[doc = "`.ctor(::unity::Il2CppString)` — overload selector"]
169    pub fn new(member_name: ::unity::Il2CppString) -> Self {
170        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
171            panic!(
172                "{}
173::{}
174 failed to instantiate",
175                ::core::stringify!(MoonSharpHideMemberAttribute),
176                ::core::stringify!(new),
177            )
178        });
179        <Self as IMoonSharpHideMemberAttributeMethods>::ctor(this, member_name);
180        this
181    }
182}
183
184#[cfg(feature = "moon_sharp-interpreter-moonsharphidememberattribute")]
185#[doc(hidden)]
186pub mod prelude {
187    pub use super::{IMoonSharpHideMemberAttribute, IMoonSharpHideMemberAttributeMethods, MoonSharpHideMemberAttribute};
188}