1#[cfg(feature = "moon_sharp-interpreter-callbackarguments-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/callbackarguments/CallbackArguments.md"))]
11 #[::unity::class(namespace = "MoonSharp.Interpreter", name = "CallbackArguments")]
12 #[parent(crate::system::object::Object)]
13 pub struct CallbackArguments {
14 #[offset(16)]
15 #[rename(name = "m_Args")]
16 pub m_args: crate::system::collections::generic::ilist_1_interface::IList_1_Interface<crate::moon_sharp::interpreter::dynvalue::DynValue>,
17 #[offset(24)]
18 #[rename(name = "m_Count")]
19 pub m_count: i32,
20 #[offset(28)]
21 #[rename(name = "m_LastIsTuple")]
22 pub m_last_is_tuple: bool,
23 }
24}
25
26#[cfg(feature = "moon_sharp-interpreter-callbackarguments-types")]
27pub use __types::*;
28
29#[cfg(feature = "moon_sharp-interpreter-callbackarguments")]
30#[doc(hidden)]
31#[allow(non_snake_case, non_camel_case_types, clippy::too_many_arguments)]
32mod __CallbackArguments_unity_raw {
33 use super::*;
34 #[doc(hidden)]
35 #[allow(non_snake_case)]
36 pub mod __lookup_ctor {
37 use super::*;
38 static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
39 let param_types: &[& 'static::unity::il2cpp::Il2CppType]= &[<crate::system::collections::generic::ilist_1_interface::IList_1_Interface<crate::moon_sharp::interpreter::dynvalue::DynValue>as::unity::IlType> ::il_type(), <bool as::unity::IlType> ::il_type()];
40 ::unity::lookup::method_info_on_class_with_signature(
41 <CallbackArguments as ::unity::ClassIdentity>::class(),
42 ".ctor",
43 2,
44 param_types,
45 false,
46 )
47 });
48 pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
49 match &*METHOD {
50 ::core::result::Result::Ok(mi) => *mi,
51 ::core::result::Result::Err(e) => {
52 panic!(
53 "method lookup failed: {}
54::{}
55: {}
56",
57 <CallbackArguments as ::unity::ClassIdentity>::NAME,
58 ".ctor",
59 e
60 )
61 },
62 }
63 }
64 }
65 #[doc(hidden)]
66 #[allow(non_snake_case)]
67 pub mod __lookup_get_count {
68 use super::*;
69 static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
70 let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[];
71 ::unity::lookup::method_info_on_class_with_signature(
72 <CallbackArguments as ::unity::ClassIdentity>::class(),
73 "get_Count",
74 0,
75 param_types,
76 false,
77 )
78 });
79 pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
80 match &*METHOD {
81 ::core::result::Result::Ok(mi) => *mi,
82 ::core::result::Result::Err(e) => {
83 panic!(
84 "method lookup failed: {}
85::{}
86: {}
87",
88 <CallbackArguments as ::unity::ClassIdentity>::NAME,
89 "get_Count",
90 e
91 )
92 },
93 }
94 }
95 }
96 #[doc(hidden)]
97 #[allow(non_snake_case)]
98 pub mod __lookup_get_is_method_call {
99 use super::*;
100 static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
101 let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[];
102 ::unity::lookup::method_info_on_class_with_signature(
103 <CallbackArguments as ::unity::ClassIdentity>::class(),
104 "get_IsMethodCall",
105 0,
106 param_types,
107 false,
108 )
109 });
110 pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
111 match &*METHOD {
112 ::core::result::Result::Ok(mi) => *mi,
113 ::core::result::Result::Err(e) => {
114 panic!(
115 "method lookup failed: {}
116::{}
117: {}
118",
119 <CallbackArguments as ::unity::ClassIdentity>::NAME,
120 "get_IsMethodCall",
121 e
122 )
123 },
124 }
125 }
126 }
127 #[doc(hidden)]
128 #[allow(non_snake_case)]
129 pub mod __lookup_set_is_method_call {
130 use super::*;
131 static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
132 let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[<bool as ::unity::IlType>::il_type()];
133 ::unity::lookup::method_info_on_class_with_signature(
134 <CallbackArguments as ::unity::ClassIdentity>::class(),
135 "set_IsMethodCall",
136 1,
137 param_types,
138 false,
139 )
140 });
141 pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
142 match &*METHOD {
143 ::core::result::Result::Ok(mi) => *mi,
144 ::core::result::Result::Err(e) => {
145 panic!(
146 "method lookup failed: {}
147::{}
148: {}
149",
150 <CallbackArguments as ::unity::ClassIdentity>::NAME,
151 "set_IsMethodCall",
152 e
153 )
154 },
155 }
156 }
157 }
158 #[doc(hidden)]
159 #[allow(non_snake_case)]
160 pub mod __lookup_get_item {
161 use super::*;
162 static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
163 let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[<i32 as ::unity::IlType>::il_type()];
164 ::unity::lookup::method_info_on_class_with_signature(
165 <CallbackArguments as ::unity::ClassIdentity>::class(),
166 "get_Item",
167 1,
168 param_types,
169 false,
170 )
171 });
172 pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
173 match &*METHOD {
174 ::core::result::Result::Ok(mi) => *mi,
175 ::core::result::Result::Err(e) => {
176 panic!(
177 "method lookup failed: {}
178::{}
179: {}
180",
181 <CallbackArguments as ::unity::ClassIdentity>::NAME,
182 "get_Item",
183 e
184 )
185 },
186 }
187 }
188 }
189 #[doc(hidden)]
190 #[allow(non_snake_case)]
191 pub mod __lookup_raw_get {
192 use super::*;
193 static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
194 let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[<i32 as ::unity::IlType>::il_type(), <bool as ::unity::IlType>::il_type()];
195 ::unity::lookup::method_info_on_class_with_signature(
196 <CallbackArguments as ::unity::ClassIdentity>::class(),
197 "RawGet",
198 2,
199 param_types,
200 false,
201 )
202 });
203 pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
204 match &*METHOD {
205 ::core::result::Result::Ok(mi) => *mi,
206 ::core::result::Result::Err(e) => {
207 panic!(
208 "method lookup failed: {}
209::{}
210: {}
211",
212 <CallbackArguments as ::unity::ClassIdentity>::NAME,
213 "RawGet",
214 e
215 )
216 },
217 }
218 }
219 }
220 #[doc(hidden)]
221 #[allow(non_snake_case)]
222 pub mod __lookup_get_array {
223 use super::*;
224 static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
225 let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[<i32 as ::unity::IlType>::il_type()];
226 ::unity::lookup::method_info_on_class_with_signature(
227 <CallbackArguments as ::unity::ClassIdentity>::class(),
228 "GetArray",
229 1,
230 param_types,
231 false,
232 )
233 });
234 pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
235 match &*METHOD {
236 ::core::result::Result::Ok(mi) => *mi,
237 ::core::result::Result::Err(e) => {
238 panic!(
239 "method lookup failed: {}
240::{}
241: {}
242",
243 <CallbackArguments as ::unity::ClassIdentity>::NAME,
244 "GetArray",
245 e
246 )
247 },
248 }
249 }
250 }
251 #[doc(hidden)]
252 #[allow(non_snake_case)]
253 pub mod __lookup_as_type {
254 use super::*;
255 static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
256 let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[
257 <i32 as ::unity::IlType>::il_type(),
258 <::unity::Il2CppString as ::unity::IlType>::il_type(),
259 <crate::moon_sharp::interpreter::datatype::DataType as ::unity::IlType>::il_type(),
260 <bool as ::unity::IlType>::il_type(),
261 ];
262 ::unity::lookup::method_info_on_class_with_signature(
263 <CallbackArguments as ::unity::ClassIdentity>::class(),
264 "AsType",
265 4,
266 param_types,
267 false,
268 )
269 });
270 pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
271 match &*METHOD {
272 ::core::result::Result::Ok(mi) => *mi,
273 ::core::result::Result::Err(e) => {
274 panic!(
275 "method lookup failed: {}
276::{}
277: {}
278",
279 <CallbackArguments as ::unity::ClassIdentity>::NAME,
280 "AsType",
281 e
282 )
283 },
284 }
285 }
286 }
287 #[doc(hidden)]
288 #[allow(non_snake_case)]
289 pub mod __lookup_as_int {
290 use super::*;
291 static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
292 let param_types: &[&'static ::unity::il2cpp::Il2CppType] =
293 &[<i32 as ::unity::IlType>::il_type(), <::unity::Il2CppString as ::unity::IlType>::il_type()];
294 ::unity::lookup::method_info_on_class_with_signature(
295 <CallbackArguments as ::unity::ClassIdentity>::class(),
296 "AsInt",
297 2,
298 param_types,
299 false,
300 )
301 });
302 pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
303 match &*METHOD {
304 ::core::result::Result::Ok(mi) => *mi,
305 ::core::result::Result::Err(e) => {
306 panic!(
307 "method lookup failed: {}
308::{}
309: {}
310",
311 <CallbackArguments as ::unity::ClassIdentity>::NAME,
312 "AsInt",
313 e
314 )
315 },
316 }
317 }
318 }
319 #[doc(hidden)]
320 #[allow(non_snake_case)]
321 pub mod __lookup_as_long {
322 use super::*;
323 static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
324 let param_types: &[&'static ::unity::il2cpp::Il2CppType] =
325 &[<i32 as ::unity::IlType>::il_type(), <::unity::Il2CppString as ::unity::IlType>::il_type()];
326 ::unity::lookup::method_info_on_class_with_signature(
327 <CallbackArguments as ::unity::ClassIdentity>::class(),
328 "AsLong",
329 2,
330 param_types,
331 false,
332 )
333 });
334 pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
335 match &*METHOD {
336 ::core::result::Result::Ok(mi) => *mi,
337 ::core::result::Result::Err(e) => {
338 panic!(
339 "method lookup failed: {}
340::{}
341: {}
342",
343 <CallbackArguments as ::unity::ClassIdentity>::NAME,
344 "AsLong",
345 e
346 )
347 },
348 }
349 }
350 }
351 #[doc(hidden)]
352 #[allow(non_snake_case)]
353 pub mod __lookup_as_string_using_meta {
354 use super::*;
355 static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
356 let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[
357 <crate::moon_sharp::interpreter::scriptexecutioncontext::ScriptExecutionContext as ::unity::IlType>::il_type(),
358 <i32 as ::unity::IlType>::il_type(),
359 <::unity::Il2CppString as ::unity::IlType>::il_type(),
360 ];
361 ::unity::lookup::method_info_on_class_with_signature(
362 <CallbackArguments as ::unity::ClassIdentity>::class(),
363 "AsStringUsingMeta",
364 3,
365 param_types,
366 false,
367 )
368 });
369 pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
370 match &*METHOD {
371 ::core::result::Result::Ok(mi) => *mi,
372 ::core::result::Result::Err(e) => {
373 panic!(
374 "method lookup failed: {}
375::{}
376: {}
377",
378 <CallbackArguments as ::unity::ClassIdentity>::NAME,
379 "AsStringUsingMeta",
380 e
381 )
382 },
383 }
384 }
385 }
386 #[doc(hidden)]
387 #[allow(non_snake_case)]
388 pub mod __lookup_skip_method_call {
389 use super::*;
390 static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
391 let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[];
392 ::unity::lookup::method_info_on_class_with_signature(
393 <CallbackArguments as ::unity::ClassIdentity>::class(),
394 "SkipMethodCall",
395 0,
396 param_types,
397 false,
398 )
399 });
400 pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
401 match &*METHOD {
402 ::core::result::Result::Ok(mi) => *mi,
403 ::core::result::Result::Err(e) => {
404 panic!(
405 "method lookup failed: {}
406::{}
407: {}
408",
409 <CallbackArguments as ::unity::ClassIdentity>::NAME,
410 "SkipMethodCall",
411 e
412 )
413 },
414 }
415 }
416 }
417}
418
419#[cfg(feature = "moon_sharp-interpreter-callbackarguments")]
420pub trait ICallbackArgumentsMethods: ICallbackArguments {
421 #[doc = "`.ctor(crate::system::collections::generic::ilist_1_interface::IList_1_Interface<crate::moon_sharp::interpreter::dynvalue::DynValue>, bool)` overload"]
422 fn ctor(
423 self,
424 args: impl ::core::convert::Into<
425 crate::system::collections::generic::ilist_1_interface::IList_1_Interface<crate::moon_sharp::interpreter::dynvalue::DynValue>,
426 >,
427 is_method_call: impl ::core::convert::Into<bool>,
428 ) -> () {
429 unsafe {
430 let __receiver = <CallbackArguments as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
431 ::unity::il2cpp_call!(__CallbackArguments_unity_raw::__lookup_ctor::get_method_info().method_ptr,();
432(CallbackArguments)__receiver,(crate::system::collections::generic::ilist_1_interface::IList_1_Interface<crate::moon_sharp::interpreter::dynvalue::DynValue>)::core::convert::Into::into(args),(bool)::core::convert::Into::into(is_method_call))
433 }
434 }
435 #[doc = "`get_Count()` overload"]
436 fn get_count(self) -> i32 {
437 unsafe {
438 let __receiver = <CallbackArguments as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
439 ::unity::il2cpp_call!(__CallbackArguments_unity_raw::__lookup_get_count::get_method_info().method_ptr,i32;
440(CallbackArguments)__receiver)
441 }
442 }
443 #[doc = "`get_IsMethodCall()` overload"]
444 fn get_is_method_call(self) -> bool {
445 unsafe {
446 let __receiver = <CallbackArguments as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
447 ::unity::il2cpp_call!(__CallbackArguments_unity_raw::__lookup_get_is_method_call::get_method_info().method_ptr,bool;
448(CallbackArguments)__receiver)
449 }
450 }
451 #[doc = "`set_IsMethodCall(bool)` overload"]
452 fn set_is_method_call(self, value: impl ::core::convert::Into<bool>) -> () {
453 unsafe {
454 let __receiver = <CallbackArguments as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
455 ::unity::il2cpp_call!(__CallbackArguments_unity_raw::__lookup_set_is_method_call::get_method_info().method_ptr,();
456(CallbackArguments)__receiver,(bool)::core::convert::Into::into(value))
457 }
458 }
459 #[doc = "`get_Item(i32)` overload"]
460 fn get_item(self, index: impl ::core::convert::Into<i32>) -> crate::moon_sharp::interpreter::dynvalue::DynValue {
461 unsafe {
462 let __receiver = <CallbackArguments as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
463 ::unity::il2cpp_call!(__CallbackArguments_unity_raw::__lookup_get_item::get_method_info().method_ptr,crate::moon_sharp::interpreter::dynvalue::DynValue;
464(CallbackArguments)__receiver,(i32)::core::convert::Into::into(index))
465 }
466 }
467 #[doc = "`RawGet(i32, bool)` overload"]
468 fn raw_get(
469 self,
470 index: impl ::core::convert::Into<i32>,
471 translate_voids: impl ::core::convert::Into<bool>,
472 ) -> crate::moon_sharp::interpreter::dynvalue::DynValue {
473 unsafe {
474 let __receiver = <CallbackArguments as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
475 ::unity::il2cpp_call!(__CallbackArguments_unity_raw::__lookup_raw_get::get_method_info().method_ptr,crate::moon_sharp::interpreter::dynvalue::DynValue;
476(CallbackArguments)__receiver,(i32)::core::convert::Into::into(index),(bool)::core::convert::Into::into(translate_voids))
477 }
478 }
479 #[doc = "`GetArray(i32)` overload"]
480 fn get_array(self, skip: impl ::core::convert::Into<i32>) -> ::unity::Array<crate::moon_sharp::interpreter::dynvalue::DynValue> {
481 unsafe {
482 let __receiver = <CallbackArguments as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
483 ::unity::il2cpp_call!(__CallbackArguments_unity_raw::__lookup_get_array::get_method_info().method_ptr, ::unity::Array<crate::moon_sharp::interpreter::dynvalue::DynValue> ;
484(CallbackArguments)__receiver,(i32)::core::convert::Into::into(skip))
485 }
486 }
487 #[doc = "`AsType(i32, ::unity::Il2CppString, crate::moon_sharp::interpreter::datatype::DataType, bool)` overload"]
488 fn as_type(
489 self,
490 arg_num: impl ::core::convert::Into<i32>,
491 func_name: impl ::core::convert::Into<::unity::Il2CppString>,
492 r#type: impl ::core::convert::Into<crate::moon_sharp::interpreter::datatype::DataType>,
493 allow_nil: impl ::core::convert::Into<bool>,
494 ) -> crate::moon_sharp::interpreter::dynvalue::DynValue {
495 unsafe {
496 let __receiver = <CallbackArguments as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
497 ::unity::il2cpp_call!(__CallbackArguments_unity_raw::__lookup_as_type::get_method_info().method_ptr,crate::moon_sharp::interpreter::dynvalue::DynValue;
498(CallbackArguments)__receiver,(i32)::core::convert::Into::into(arg_num),(::unity::Il2CppString)::core::convert::Into::into(func_name),(crate::moon_sharp::interpreter::datatype::DataType)::core::convert::Into::into(r#type),(bool)::core::convert::Into::into(allow_nil))
499 }
500 }
501 fn as_user_data<M0: ::unity::IlType + ::core::marker::Copy + ::unity::ClassIdentity>(
502 self,
503 arg_num: impl ::core::convert::Into<i32>,
504 func_name: impl ::core::convert::Into<::unity::Il2CppString>,
505 allow_nil: impl ::core::convert::Into<bool>,
506 ) -> M0 {
507 static OPEN: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
508 ::unity::lookup::method_info_on_class(<CallbackArguments as ::unity::ClassIdentity>::class(), "AsUserData", 3)
509 });
510 #[allow(clippy::type_complexity)]
511 static CACHE: ::std::sync::OnceLock<::std::sync::Mutex<::std::collections::HashMap<usize, &'static ::unity::il2cpp::MethodInfo>>> =
512 ::std::sync::OnceLock::new();
513 let _ = false;
514 let __open: &'static ::unity::il2cpp::MethodInfo = match &*OPEN {
515 ::core::result::Result::Ok(mi) => *mi,
516 ::core::result::Result::Err(e) => {
517 panic!(
518 "method lookup failed: {}
519::{}
520: {}
521",
522 <CallbackArguments as ::unity::ClassIdentity>::NAME,
523 "AsUserData",
524 e
525 )
526 },
527 };
528 let __cache = CACHE.get_or_init(|| ::std::sync::Mutex::new(::std::collections::HashMap::new()));
529 let __key: usize = <M0 as ::unity::IlType>::il_type() as *const _ as usize;
530 let __inflated: &'static ::unity::il2cpp::MethodInfo = {
531 let mut __guard = __cache.lock().unwrap();
532 *__guard
533 .entry(__key)
534 .or_insert_with(|| ::unity::il2cpp::generic::create_generic_method_info(__open, &[<M0 as ::unity::IlType>::il_type()]))
535 };
536 unsafe {
537 let __receiver = <CallbackArguments as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
538 let __f: extern "C" fn(CallbackArguments, i32, ::unity::Il2CppString, bool, ::unity::OptionalMethod) -> M0 =
539 ::core::mem::transmute(__inflated.method_ptr);
540 let __mi_opaque: &'static () = &*(__inflated as *const _ as *const ());
541 __f(
542 __receiver,
543 ::core::convert::Into::into(arg_num),
544 ::core::convert::Into::into(func_name),
545 ::core::convert::Into::into(allow_nil),
546 ::core::option::Option::Some(__mi_opaque),
547 )
548 }
549 }
550 #[doc = "`AsInt(i32, ::unity::Il2CppString)` overload"]
551 fn as_int(self, arg_num: impl ::core::convert::Into<i32>, func_name: impl ::core::convert::Into<::unity::Il2CppString>) -> i32 {
552 unsafe {
553 let __receiver = <CallbackArguments as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
554 ::unity::il2cpp_call!(__CallbackArguments_unity_raw::__lookup_as_int::get_method_info().method_ptr,i32;
555(CallbackArguments)__receiver,(i32)::core::convert::Into::into(arg_num),(::unity::Il2CppString)::core::convert::Into::into(func_name))
556 }
557 }
558 #[doc = "`AsLong(i32, ::unity::Il2CppString)` overload"]
559 fn as_long(self, arg_num: impl ::core::convert::Into<i32>, func_name: impl ::core::convert::Into<::unity::Il2CppString>) -> i64 {
560 unsafe {
561 let __receiver = <CallbackArguments as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
562 ::unity::il2cpp_call!(__CallbackArguments_unity_raw::__lookup_as_long::get_method_info().method_ptr,i64;
563(CallbackArguments)__receiver,(i32)::core::convert::Into::into(arg_num),(::unity::Il2CppString)::core::convert::Into::into(func_name))
564 }
565 }
566 #[doc = "`AsStringUsingMeta(crate::moon_sharp::interpreter::scriptexecutioncontext::ScriptExecutionContext, i32, ::unity::Il2CppString)` overload"]
567 fn as_string_using_meta(
568 self,
569 execution_context: impl ::core::convert::Into<crate::moon_sharp::interpreter::scriptexecutioncontext::ScriptExecutionContext>,
570 arg_num: impl ::core::convert::Into<i32>,
571 func_name: impl ::core::convert::Into<::unity::Il2CppString>,
572 ) -> ::unity::Il2CppString {
573 unsafe {
574 let __receiver = <CallbackArguments as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
575 ::unity::il2cpp_call!(__CallbackArguments_unity_raw::__lookup_as_string_using_meta::get_method_info().method_ptr, ::unity::Il2CppString;
576(CallbackArguments)__receiver,(crate::moon_sharp::interpreter::scriptexecutioncontext::ScriptExecutionContext)::core::convert::Into::into(execution_context),(i32)::core::convert::Into::into(arg_num),(::unity::Il2CppString)::core::convert::Into::into(func_name))
577 }
578 }
579 #[doc = "`SkipMethodCall()` overload"]
580 fn skip_method_call(self) -> crate::moon_sharp::interpreter::callbackarguments::CallbackArguments {
581 unsafe {
582 let __receiver = <CallbackArguments as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
583 ::unity::il2cpp_call!(__CallbackArguments_unity_raw::__lookup_skip_method_call::get_method_info().method_ptr,crate::moon_sharp::interpreter::callbackarguments::CallbackArguments;
584(CallbackArguments)__receiver)
585 }
586 }
587}
588
589#[cfg(feature = "moon_sharp-interpreter-callbackarguments")]
590impl<__T: ICallbackArguments> ICallbackArgumentsMethods for __T {}
591
592#[cfg(feature = "moon_sharp-interpreter-callbackarguments")]
593impl CallbackArguments {
594 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
595 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
596 }
597
598 pub fn get_count_method_info() -> &'static ::unity::il2cpp::MethodInfo {
599 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
600 }
601
602 pub fn get_is_method_call_method_info() -> &'static ::unity::il2cpp::MethodInfo {
603 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
604 }
605
606 pub fn set_is_method_call_method_info() -> &'static ::unity::il2cpp::MethodInfo {
607 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
608 }
609
610 pub fn get_item_method_info() -> &'static ::unity::il2cpp::MethodInfo {
611 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
612 }
613
614 pub fn raw_get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
615 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
616 }
617
618 pub fn get_array_method_info() -> &'static ::unity::il2cpp::MethodInfo {
619 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
620 }
621
622 pub fn as_type_method_info() -> &'static ::unity::il2cpp::MethodInfo {
623 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
624 }
625
626 pub fn as_int_method_info() -> &'static ::unity::il2cpp::MethodInfo {
627 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
628 }
629
630 pub fn as_long_method_info() -> &'static ::unity::il2cpp::MethodInfo {
631 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
632 }
633
634 pub fn as_string_using_meta_method_info() -> &'static ::unity::il2cpp::MethodInfo {
635 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[11]
636 }
637
638 pub fn skip_method_call_method_info() -> &'static ::unity::il2cpp::MethodInfo {
639 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[12]
640 }
641}
642
643#[cfg(feature = "moon_sharp-interpreter-callbackarguments")]
644impl CallbackArguments {
645 #[doc = "`.ctor(crate::system::collections::generic::ilist_1_interface::IList_1_Interface<crate::moon_sharp::interpreter::dynvalue::DynValue>, bool)` — overload selector"]
646 pub fn new(
647 args: crate::system::collections::generic::ilist_1_interface::IList_1_Interface<crate::moon_sharp::interpreter::dynvalue::DynValue>,
648 is_method_call: bool,
649 ) -> Self {
650 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
651 panic!(
652 "{}
653::{}
654 failed to instantiate",
655 ::core::stringify!(CallbackArguments),
656 ::core::stringify!(new),
657 )
658 });
659 <Self as ICallbackArgumentsMethods>::ctor(this, args, is_method_call);
660 this
661 }
662}
663
664#[cfg(feature = "moon_sharp-interpreter-callbackarguments")]
665#[doc(hidden)]
666pub mod prelude {
667 pub use super::{CallbackArguments, ICallbackArguments, ICallbackArgumentsMethods};
668 pub use crate::system::object::IObject;
669 #[cfg(feature = "system-object")]
670 pub use crate::system::object::IObjectMethods;
671}