Skip to main content

engage/generated/moon_sharp/interpreter/compatibility/
framework.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "moon_sharp-interpreter-compatibility-framework-types")]
4mod __types {
5    #[allow(unused_imports)] use ::unity::prelude::*;
6
7    use super::*;
8    use crate::system::object::{IObject, Object};
9
10    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/moon_sharp/interpreter/compatibility/framework/Framework.md"))]
11    #[::unity::class(namespace = "MoonSharp.Interpreter.Compatibility", name = "Framework")]
12    #[parent(crate::system::object::Object)]
13    pub struct Framework {
14        #[static_field]
15        #[rename(name = "s_FrameworkCurrent")]
16        pub s_framework_current: crate::moon_sharp::interpreter::compatibility::frameworks::frameworkcurrent::FrameworkCurrent,
17    }
18}
19
20#[cfg(feature = "moon_sharp-interpreter-compatibility-framework-types")]
21pub use __types::*;
22
23#[cfg(feature = "moon_sharp-interpreter-compatibility-framework")]
24#[doc(hidden)]
25#[allow(non_snake_case, non_camel_case_types, clippy::too_many_arguments)]
26mod __Framework_unity_raw {
27    use super::*;
28    #[doc(hidden)]
29    #[allow(non_snake_case)]
30    pub mod __lookup_get_do {
31        use super::*;
32        static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
33            let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[];
34            ::unity::lookup::method_info_on_class_with_signature(<Framework as ::unity::ClassIdentity>::class(), "get_Do", 0, param_types, true)
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                        <Framework as ::unity::ClassIdentity>::NAME,
46                        "get_Do",
47                        e
48                    )
49                },
50            }
51        }
52    }
53    #[doc(hidden)]
54    #[allow(non_snake_case)]
55    pub mod __lookup_cctor {
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] = &[];
59            ::unity::lookup::method_info_on_class_with_signature(<Framework as ::unity::ClassIdentity>::class(), ".cctor", 0, param_types, true)
60        });
61        pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
62            match &*METHOD {
63                ::core::result::Result::Ok(mi) => *mi,
64                ::core::result::Result::Err(e) => {
65                    panic!(
66                        "method lookup failed: {}
67::{}
68: {}
69",
70                        <Framework as ::unity::ClassIdentity>::NAME,
71                        ".cctor",
72                        e
73                    )
74                },
75            }
76        }
77    }
78}
79
80#[cfg(feature = "moon_sharp-interpreter-compatibility-framework")]
81impl Framework {
82    #[doc = "`get_Do()` overload"]
83    pub fn get_do() -> crate::moon_sharp::interpreter::compatibility::frameworks::frameworkbase::FrameworkBase {
84        unsafe {
85            ::unity::il2cpp_call!(__Framework_unity_raw::__lookup_get_do::get_method_info().method_ptr,crate::moon_sharp::interpreter::compatibility::frameworks::frameworkbase::FrameworkBase;
86            )
87        }
88    }
89
90    #[doc = "`.cctor()` overload"]
91    pub fn cctor() -> () {
92        unsafe {
93            ::unity::il2cpp_call!(__Framework_unity_raw::__lookup_cctor::get_method_info().method_ptr,();
94            )
95        }
96    }
97}
98
99#[cfg(feature = "moon_sharp-interpreter-compatibility-framework")]
100impl Framework {
101    pub fn get_do_method_info() -> &'static ::unity::il2cpp::MethodInfo {
102        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
103    }
104
105    pub fn cctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
106        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
107    }
108}
109
110#[cfg(feature = "moon_sharp-interpreter-compatibility-framework")]
111#[doc(hidden)]
112pub mod prelude {
113    pub use super::{Framework, IFramework};
114    pub use crate::system::object::IObject;
115    #[cfg(feature = "system-object")]
116    pub use crate::system::object::IObjectMethods;
117}