Skip to main content

engage/generated/moon_sharp/interpreter/
scriptprivateresource_extension.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "moon_sharp-interpreter-scriptprivateresource_extension-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/scriptprivateresource_extension/ScriptPrivateResource_Extension.md"))]
11    #[::unity::class(namespace = "MoonSharp.Interpreter", name = "ScriptPrivateResource_Extension")]
12    #[parent(crate::system::object::Object)]
13    pub struct ScriptPrivateResource_Extension {}
14}
15
16#[cfg(feature = "moon_sharp-interpreter-scriptprivateresource_extension-types")]
17pub use __types::*;
18
19#[cfg(feature = "moon_sharp-interpreter-scriptprivateresource_extension")]
20#[doc(hidden)]
21#[allow(non_snake_case, non_camel_case_types, clippy::too_many_arguments)]
22mod __ScriptPrivateResource_Extension_unity_raw {
23    use super::*;
24    #[doc(hidden)]
25    #[allow(non_snake_case)]
26    pub mod __lookup_check_script_ownership {
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                <crate::moon_sharp::interpreter::iscriptprivateresource::IScriptPrivateResource as ::unity::IlType>::il_type(),
31                <::unity::Array<crate::moon_sharp::interpreter::dynvalue::DynValue> as ::unity::IlType>::il_type(),
32            ];
33            ::unity::lookup::method_info_on_class_with_signature(
34                <ScriptPrivateResource_Extension as ::unity::ClassIdentity>::class(),
35                "CheckScriptOwnership",
36                2,
37                param_types,
38                true,
39            )
40        });
41        pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
42            match &*METHOD {
43                ::core::result::Result::Ok(mi) => *mi,
44                ::core::result::Result::Err(e) => {
45                    panic!(
46                        "method lookup failed: {}
47::{}
48: {}
49",
50                        <ScriptPrivateResource_Extension as ::unity::ClassIdentity>::NAME,
51                        "CheckScriptOwnership",
52                        e
53                    )
54                },
55            }
56        }
57    }
58    #[doc(hidden)]
59    #[allow(non_snake_case)]
60    pub mod __lookup_check_script_ownership_2 {
61        use super::*;
62        static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
63            let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[
64                <crate::moon_sharp::interpreter::iscriptprivateresource::IScriptPrivateResource as ::unity::IlType>::il_type(),
65                <crate::moon_sharp::interpreter::dynvalue::DynValue as ::unity::IlType>::il_type(),
66            ];
67            ::unity::lookup::method_info_on_class_with_signature(
68                <ScriptPrivateResource_Extension as ::unity::ClassIdentity>::class(),
69                "CheckScriptOwnership",
70                2,
71                param_types,
72                true,
73            )
74        });
75        pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
76            match &*METHOD {
77                ::core::result::Result::Ok(mi) => *mi,
78                ::core::result::Result::Err(e) => {
79                    panic!(
80                        "method lookup failed: {}
81::{}
82: {}
83",
84                        <ScriptPrivateResource_Extension as ::unity::ClassIdentity>::NAME,
85                        "CheckScriptOwnership",
86                        e
87                    )
88                },
89            }
90        }
91    }
92    #[doc(hidden)]
93    #[allow(non_snake_case)]
94    pub mod __lookup_check_script_ownership_3 {
95        use super::*;
96        static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
97            let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[
98                <crate::moon_sharp::interpreter::iscriptprivateresource::IScriptPrivateResource as ::unity::IlType>::il_type(),
99                <crate::moon_sharp::interpreter::script::Script as ::unity::IlType>::il_type(),
100            ];
101            ::unity::lookup::method_info_on_class_with_signature(
102                <ScriptPrivateResource_Extension as ::unity::ClassIdentity>::class(),
103                "CheckScriptOwnership",
104                2,
105                param_types,
106                true,
107            )
108        });
109        pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
110            match &*METHOD {
111                ::core::result::Result::Ok(mi) => *mi,
112                ::core::result::Result::Err(e) => {
113                    panic!(
114                        "method lookup failed: {}
115::{}
116: {}
117",
118                        <ScriptPrivateResource_Extension as ::unity::ClassIdentity>::NAME,
119                        "CheckScriptOwnership",
120                        e
121                    )
122                },
123            }
124        }
125    }
126    #[doc(hidden)]
127    #[allow(non_snake_case)]
128    pub mod __lookup_check_script_ownership_4 {
129        use super::*;
130        static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
131            let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[
132                <crate::moon_sharp::interpreter::iscriptprivateresource::IScriptPrivateResource as ::unity::IlType>::il_type(),
133                <crate::moon_sharp::interpreter::iscriptprivateresource::IScriptPrivateResource as ::unity::IlType>::il_type(),
134            ];
135            ::unity::lookup::method_info_on_class_with_signature(
136                <ScriptPrivateResource_Extension as ::unity::ClassIdentity>::class(),
137                "CheckScriptOwnership",
138                2,
139                param_types,
140                true,
141            )
142        });
143        pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
144            match &*METHOD {
145                ::core::result::Result::Ok(mi) => *mi,
146                ::core::result::Result::Err(e) => {
147                    panic!(
148                        "method lookup failed: {}
149::{}
150: {}
151",
152                        <ScriptPrivateResource_Extension as ::unity::ClassIdentity>::NAME,
153                        "CheckScriptOwnership",
154                        e
155                    )
156                },
157            }
158        }
159    }
160}
161
162#[cfg(feature = "moon_sharp-interpreter-scriptprivateresource_extension")]
163impl ScriptPrivateResource_Extension {
164    #[doc = "`CheckScriptOwnership(crate::moon_sharp::interpreter::iscriptprivateresource::IScriptPrivateResource, ::unity::Array<crate::moon_sharp::interpreter::dynvalue::DynValue>)` overload"]
165    pub fn check_script_ownership(
166        containing_resource: impl ::core::convert::Into<crate::moon_sharp::interpreter::iscriptprivateresource::IScriptPrivateResource>,
167        values: impl ::core::convert::Into<::unity::Array<crate::moon_sharp::interpreter::dynvalue::DynValue>>,
168    ) -> () {
169        unsafe {
170            ::unity::il2cpp_call!(__ScriptPrivateResource_Extension_unity_raw::__lookup_check_script_ownership::get_method_info().method_ptr,();
171(crate::moon_sharp::interpreter::iscriptprivateresource::IScriptPrivateResource)::core::convert::Into::into(containing_resource),(::unity::Array<crate::moon_sharp::interpreter::dynvalue::DynValue>)::core::convert::Into::into(values))
172        }
173    }
174
175    #[doc = "`CheckScriptOwnership(crate::moon_sharp::interpreter::iscriptprivateresource::IScriptPrivateResource, crate::moon_sharp::interpreter::dynvalue::DynValue)` overload"]
176    pub fn check_script_ownership_2(
177        containing_resource: impl ::core::convert::Into<crate::moon_sharp::interpreter::iscriptprivateresource::IScriptPrivateResource>,
178        value: impl ::core::convert::Into<crate::moon_sharp::interpreter::dynvalue::DynValue>,
179    ) -> () {
180        unsafe {
181            ::unity::il2cpp_call!(__ScriptPrivateResource_Extension_unity_raw::__lookup_check_script_ownership_2::get_method_info().method_ptr,();
182(crate::moon_sharp::interpreter::iscriptprivateresource::IScriptPrivateResource)::core::convert::Into::into(containing_resource),(crate::moon_sharp::interpreter::dynvalue::DynValue)::core::convert::Into::into(value))
183        }
184    }
185
186    #[doc = "`CheckScriptOwnership(crate::moon_sharp::interpreter::iscriptprivateresource::IScriptPrivateResource, crate::moon_sharp::interpreter::script::Script)` overload"]
187    pub fn check_script_ownership_3(
188        resource: impl ::core::convert::Into<crate::moon_sharp::interpreter::iscriptprivateresource::IScriptPrivateResource>,
189        script: impl ::core::convert::Into<crate::moon_sharp::interpreter::script::Script>,
190    ) -> () {
191        unsafe {
192            ::unity::il2cpp_call!(__ScriptPrivateResource_Extension_unity_raw::__lookup_check_script_ownership_3::get_method_info().method_ptr,();
193(crate::moon_sharp::interpreter::iscriptprivateresource::IScriptPrivateResource)::core::convert::Into::into(resource),(crate::moon_sharp::interpreter::script::Script)::core::convert::Into::into(script))
194        }
195    }
196
197    #[doc = "`CheckScriptOwnership(crate::moon_sharp::interpreter::iscriptprivateresource::IScriptPrivateResource, crate::moon_sharp::interpreter::iscriptprivateresource::IScriptPrivateResource)` overload"]
198    pub fn check_script_ownership_4(
199        containing_resource: impl ::core::convert::Into<crate::moon_sharp::interpreter::iscriptprivateresource::IScriptPrivateResource>,
200        item_resource: impl ::core::convert::Into<crate::moon_sharp::interpreter::iscriptprivateresource::IScriptPrivateResource>,
201    ) -> () {
202        unsafe {
203            ::unity::il2cpp_call!(__ScriptPrivateResource_Extension_unity_raw::__lookup_check_script_ownership_4::get_method_info().method_ptr,();
204(crate::moon_sharp::interpreter::iscriptprivateresource::IScriptPrivateResource)::core::convert::Into::into(containing_resource),(crate::moon_sharp::interpreter::iscriptprivateresource::IScriptPrivateResource)::core::convert::Into::into(item_resource))
205        }
206    }
207}
208
209#[cfg(feature = "moon_sharp-interpreter-scriptprivateresource_extension")]
210impl ScriptPrivateResource_Extension {
211    pub fn check_script_ownership_method_info() -> &'static ::unity::il2cpp::MethodInfo {
212        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
213    }
214
215    pub fn check_script_ownership_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
216        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
217    }
218
219    pub fn check_script_ownership_3_method_info() -> &'static ::unity::il2cpp::MethodInfo {
220        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
221    }
222
223    pub fn check_script_ownership_4_method_info() -> &'static ::unity::il2cpp::MethodInfo {
224        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
225    }
226}
227
228#[cfg(feature = "moon_sharp-interpreter-scriptprivateresource_extension")]
229#[doc(hidden)]
230pub mod prelude {
231    pub use super::{IScriptPrivateResource_Extension, ScriptPrivateResource_Extension};
232    pub use crate::system::object::IObject;
233    #[cfg(feature = "system-object")]
234    pub use crate::system::object::IObjectMethods;
235}