Skip to main content

engage/generated/moon_sharp/interpreter/
moonsharpmodulemethodattribute.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "moon_sharp-interpreter-moonsharpmodulemethodattribute-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/moonsharpmodulemethodattribute/MoonSharpModuleMethodAttribute.md"))]
10    #[::unity::class(namespace = "MoonSharp.Interpreter", name = "MoonSharpModuleMethodAttribute")]
11    pub struct MoonSharpModuleMethodAttribute {}
12}
13
14#[cfg(feature = "moon_sharp-interpreter-moonsharpmodulemethodattribute-types")]
15pub use __types::*;
16
17#[cfg(feature = "moon_sharp-interpreter-moonsharpmodulemethodattribute")]
18#[doc(hidden)]
19#[allow(non_snake_case, non_camel_case_types, clippy::too_many_arguments)]
20mod __MoonSharpModuleMethodAttribute_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                <MoonSharpModuleMethodAttribute 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                        <MoonSharpModuleMethodAttribute 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                <MoonSharpModuleMethodAttribute 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                        <MoonSharpModuleMethodAttribute 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] = &[];
90            ::unity::lookup::method_info_on_class_with_signature(
91                <MoonSharpModuleMethodAttribute as ::unity::ClassIdentity>::class(),
92                ".ctor",
93                0,
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                        <MoonSharpModuleMethodAttribute as ::unity::ClassIdentity>::NAME,
108                        ".ctor",
109                        e
110                    )
111                },
112            }
113        }
114    }
115}
116
117#[cfg(feature = "moon_sharp-interpreter-moonsharpmodulemethodattribute")]
118pub trait IMoonSharpModuleMethodAttributeMethods: IMoonSharpModuleMethodAttribute {
119    #[doc = "`get_Name()` overload"]
120    fn get_name(self) -> ::unity::Il2CppString {
121        unsafe {
122            let __receiver =
123                <MoonSharpModuleMethodAttribute as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
124            ::unity::il2cpp_call!(__MoonSharpModuleMethodAttribute_unity_raw::__lookup_get_name::get_method_info().method_ptr, ::unity::Il2CppString;
125(MoonSharpModuleMethodAttribute)__receiver)
126        }
127    }
128    #[doc = "`set_Name(::unity::Il2CppString)` overload"]
129    fn set_name(self, value: impl ::core::convert::Into<::unity::Il2CppString>) -> () {
130        unsafe {
131            let __receiver =
132                <MoonSharpModuleMethodAttribute as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
133            ::unity::il2cpp_call!(__MoonSharpModuleMethodAttribute_unity_raw::__lookup_set_name::get_method_info().method_ptr,();
134(MoonSharpModuleMethodAttribute)__receiver,(::unity::Il2CppString)::core::convert::Into::into(value))
135        }
136    }
137    #[doc = "`.ctor()` overload"]
138    fn ctor(self) -> () {
139        unsafe {
140            let __receiver =
141                <MoonSharpModuleMethodAttribute as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
142            ::unity::il2cpp_call!(__MoonSharpModuleMethodAttribute_unity_raw::__lookup_ctor::get_method_info().method_ptr,();
143(MoonSharpModuleMethodAttribute)__receiver)
144        }
145    }
146}
147
148#[cfg(feature = "moon_sharp-interpreter-moonsharpmodulemethodattribute")]
149impl<__T: IMoonSharpModuleMethodAttribute> IMoonSharpModuleMethodAttributeMethods for __T {}
150
151#[cfg(feature = "moon_sharp-interpreter-moonsharpmodulemethodattribute")]
152impl MoonSharpModuleMethodAttribute {
153    pub fn get_name_method_info() -> &'static ::unity::il2cpp::MethodInfo {
154        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
155    }
156
157    pub fn set_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-moonsharpmodulemethodattribute")]
167impl MoonSharpModuleMethodAttribute {
168    #[doc = "`.ctor()` — no args"]
169    pub fn new() -> Self {
170        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
171            panic!(
172                "{}
173::{}
174 failed to instantiate",
175                ::core::stringify!(MoonSharpModuleMethodAttribute),
176                ::core::stringify!(new),
177            )
178        });
179        <Self as IMoonSharpModuleMethodAttributeMethods>::ctor(this);
180        this
181    }
182}
183
184#[cfg(feature = "moon_sharp-interpreter-moonsharpmodulemethodattribute")]
185#[doc(hidden)]
186pub mod prelude {
187    pub use super::{IMoonSharpModuleMethodAttribute, IMoonSharpModuleMethodAttributeMethods, MoonSharpModuleMethodAttribute};
188}