engage/generated/moon_sharp/interpreter/
moonsharphiddenattribute.rs1#[cfg(feature = "moon_sharp-interpreter-moonsharphiddenattribute-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/moonsharphiddenattribute/MoonSharpHiddenAttribute.md"))]
10 #[::unity::class(namespace = "MoonSharp.Interpreter", name = "MoonSharpHiddenAttribute")]
11 pub struct MoonSharpHiddenAttribute {}
12}
13
14#[cfg(feature = "moon_sharp-interpreter-moonsharphiddenattribute-types")]
15pub use __types::*;
16
17#[cfg(feature = "moon_sharp-interpreter-moonsharphiddenattribute")]
18#[doc(hidden)]
19#[allow(non_snake_case, non_camel_case_types, clippy::too_many_arguments)]
20mod __MoonSharpHiddenAttribute_unity_raw {
21 use super::*;
22 #[doc(hidden)]
23 #[allow(non_snake_case)]
24 pub mod __lookup_ctor {
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 <MoonSharpHiddenAttribute as ::unity::ClassIdentity>::class(),
30 ".ctor",
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 <MoonSharpHiddenAttribute as ::unity::ClassIdentity>::NAME,
46 ".ctor",
47 e
48 )
49 },
50 }
51 }
52 }
53}
54
55#[cfg(feature = "moon_sharp-interpreter-moonsharphiddenattribute")]
56pub trait IMoonSharpHiddenAttributeMethods: IMoonSharpHiddenAttribute {
57 #[doc = "`.ctor()` overload"]
58 fn ctor(self) -> () {
59 unsafe {
60 let __receiver =
61 <MoonSharpHiddenAttribute as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
62 ::unity::il2cpp_call!(__MoonSharpHiddenAttribute_unity_raw::__lookup_ctor::get_method_info().method_ptr,();
63(MoonSharpHiddenAttribute)__receiver)
64 }
65 }
66}
67
68#[cfg(feature = "moon_sharp-interpreter-moonsharphiddenattribute")]
69impl<__T: IMoonSharpHiddenAttribute> IMoonSharpHiddenAttributeMethods for __T {}
70
71#[cfg(feature = "moon_sharp-interpreter-moonsharphiddenattribute")]
72impl MoonSharpHiddenAttribute {
73 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
74 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
75 }
76}
77
78#[cfg(feature = "moon_sharp-interpreter-moonsharphiddenattribute")]
79impl MoonSharpHiddenAttribute {
80 #[doc = "`.ctor()` — no args"]
81 pub fn new() -> Self {
82 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
83 panic!(
84 "{}
85::{}
86 failed to instantiate",
87 ::core::stringify!(MoonSharpHiddenAttribute),
88 ::core::stringify!(new),
89 )
90 });
91 <Self as IMoonSharpHiddenAttributeMethods>::ctor(this);
92 this
93 }
94}
95
96#[cfg(feature = "moon_sharp-interpreter-moonsharphiddenattribute")]
97#[doc(hidden)]
98pub mod prelude {
99 pub use super::{IMoonSharpHiddenAttribute, IMoonSharpHiddenAttributeMethods, MoonSharpHiddenAttribute};
100}