engage/generated/moon_sharp/interpreter/interop/
interopregistrationpolicy.rs1#[cfg(feature = "moon_sharp-interpreter-interop-interopregistrationpolicy-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/interop/interopregistrationpolicy/InteropRegistrationPolicy.md"))]
11 #[::unity::class(namespace = "MoonSharp.Interpreter.Interop", name = "InteropRegistrationPolicy")]
12 #[parent(crate::system::object::Object)]
13 pub struct InteropRegistrationPolicy {}
14}
15
16#[cfg(feature = "moon_sharp-interpreter-interop-interopregistrationpolicy-types")]
17pub use __types::*;
18
19#[cfg(feature = "moon_sharp-interpreter-interop-interopregistrationpolicy")]
20#[doc(hidden)]
21#[allow(non_snake_case, non_camel_case_types, clippy::too_many_arguments)]
22mod __InteropRegistrationPolicy_unity_raw {
23 use super::*;
24 #[doc(hidden)]
25 #[allow(non_snake_case)]
26 pub mod __lookup_get_default {
27 use super::*;
28 static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
29 let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[];
30 ::unity::lookup::method_info_on_class_with_signature(
31 <InteropRegistrationPolicy as ::unity::ClassIdentity>::class(),
32 "get_Default",
33 0,
34 param_types,
35 true,
36 )
37 });
38 pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
39 match &*METHOD {
40 ::core::result::Result::Ok(mi) => *mi,
41 ::core::result::Result::Err(e) => {
42 panic!(
43 "method lookup failed: {}
44::{}
45: {}
46",
47 <InteropRegistrationPolicy as ::unity::ClassIdentity>::NAME,
48 "get_Default",
49 e
50 )
51 },
52 }
53 }
54 }
55 #[doc(hidden)]
56 #[allow(non_snake_case)]
57 pub mod __lookup_get_explicit {
58 use super::*;
59 static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
60 let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[];
61 ::unity::lookup::method_info_on_class_with_signature(
62 <InteropRegistrationPolicy as ::unity::ClassIdentity>::class(),
63 "get_Explicit",
64 0,
65 param_types,
66 true,
67 )
68 });
69 pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
70 match &*METHOD {
71 ::core::result::Result::Ok(mi) => *mi,
72 ::core::result::Result::Err(e) => {
73 panic!(
74 "method lookup failed: {}
75::{}
76: {}
77",
78 <InteropRegistrationPolicy as ::unity::ClassIdentity>::NAME,
79 "get_Explicit",
80 e
81 )
82 },
83 }
84 }
85 }
86 #[doc(hidden)]
87 #[allow(non_snake_case)]
88 pub mod __lookup_get_automatic {
89 use super::*;
90 static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
91 let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[];
92 ::unity::lookup::method_info_on_class_with_signature(
93 <InteropRegistrationPolicy as ::unity::ClassIdentity>::class(),
94 "get_Automatic",
95 0,
96 param_types,
97 true,
98 )
99 });
100 pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
101 match &*METHOD {
102 ::core::result::Result::Ok(mi) => *mi,
103 ::core::result::Result::Err(e) => {
104 panic!(
105 "method lookup failed: {}
106::{}
107: {}
108",
109 <InteropRegistrationPolicy as ::unity::ClassIdentity>::NAME,
110 "get_Automatic",
111 e
112 )
113 },
114 }
115 }
116 }
117}
118
119#[cfg(feature = "moon_sharp-interpreter-interop-interopregistrationpolicy")]
120impl InteropRegistrationPolicy {
121 #[doc = "`get_Default()` overload"]
122 pub fn get_default() -> crate::moon_sharp::interpreter::interop::registration_policies::iregistrationpolicy::IRegistrationPolicy {
123 unsafe {
124 ::unity::il2cpp_call!(__InteropRegistrationPolicy_unity_raw::__lookup_get_default::get_method_info().method_ptr,crate::moon_sharp::interpreter::interop::registration_policies::iregistrationpolicy::IRegistrationPolicy;
125 )
126 }
127 }
128
129 #[doc = "`get_Explicit()` overload"]
130 pub fn get_explicit() -> crate::moon_sharp::interpreter::interop::registration_policies::iregistrationpolicy::IRegistrationPolicy {
131 unsafe {
132 ::unity::il2cpp_call!(__InteropRegistrationPolicy_unity_raw::__lookup_get_explicit::get_method_info().method_ptr,crate::moon_sharp::interpreter::interop::registration_policies::iregistrationpolicy::IRegistrationPolicy;
133 )
134 }
135 }
136
137 #[doc = "`get_Automatic()` overload"]
138 pub fn get_automatic() -> crate::moon_sharp::interpreter::interop::registration_policies::iregistrationpolicy::IRegistrationPolicy {
139 unsafe {
140 ::unity::il2cpp_call!(__InteropRegistrationPolicy_unity_raw::__lookup_get_automatic::get_method_info().method_ptr,crate::moon_sharp::interpreter::interop::registration_policies::iregistrationpolicy::IRegistrationPolicy;
141 )
142 }
143 }
144}
145
146#[cfg(feature = "moon_sharp-interpreter-interop-interopregistrationpolicy")]
147impl InteropRegistrationPolicy {
148 pub fn get_default_method_info() -> &'static ::unity::il2cpp::MethodInfo {
149 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
150 }
151
152 pub fn get_explicit_method_info() -> &'static ::unity::il2cpp::MethodInfo {
153 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
154 }
155
156 pub fn get_automatic_method_info() -> &'static ::unity::il2cpp::MethodInfo {
157 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
158 }
159}
160
161#[cfg(feature = "moon_sharp-interpreter-interop-interopregistrationpolicy")]
162#[doc(hidden)]
163pub mod prelude {
164 pub use super::{IInteropRegistrationPolicy, InteropRegistrationPolicy};
165 pub use crate::system::object::IObject;
166 #[cfg(feature = "system-object")]
167 pub use crate::system::object::IObjectMethods;
168}