Skip to main content

engage/generated/moon_sharp/interpreter/interop/
moonsharpvisibleattribute.rs

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