1#[cfg(feature = "moon_sharp-interpreter-symbolref-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/symbolref/SymbolRef.md"))]
11 #[::unity::class(namespace = "MoonSharp.Interpreter", name = "SymbolRef")]
12 #[parent(crate::system::object::Object)]
13 pub struct SymbolRef {
14 #[static_field]
15 #[rename(name = "s_DefaultEnv")]
16 pub s_default_env: crate::moon_sharp::interpreter::symbolref::SymbolRef,
17 #[offset(16)]
18 #[rename(name = "i_Type")]
19 pub i_type: crate::moon_sharp::interpreter::symbolreftype::SymbolRefType,
20 #[offset(24)]
21 #[rename(name = "i_Env")]
22 pub i_env: crate::moon_sharp::interpreter::symbolref::SymbolRef,
23 #[offset(32)]
24 #[rename(name = "i_Index")]
25 pub i_index: i32,
26 #[offset(40)]
27 #[rename(name = "i_Name")]
28 pub i_name: ::unity::Il2CppString,
29 }
30}
31
32#[cfg(feature = "moon_sharp-interpreter-symbolref-types")]
33pub use __types::*;
34
35#[cfg(feature = "moon_sharp-interpreter-symbolref")]
36#[doc(hidden)]
37#[allow(non_snake_case, non_camel_case_types, clippy::too_many_arguments)]
38mod __SymbolRef_unity_raw {
39 use super::*;
40 #[doc(hidden)]
41 #[allow(non_snake_case)]
42 pub mod __lookup_get_type {
43 use super::*;
44 static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
45 let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[];
46 ::unity::lookup::method_info_on_class_with_signature(<SymbolRef as ::unity::ClassIdentity>::class(), "get_Type", 0, param_types, false)
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 <SymbolRef as ::unity::ClassIdentity>::NAME,
58 "get_Type",
59 e
60 )
61 },
62 }
63 }
64 }
65 #[doc(hidden)]
66 #[allow(non_snake_case)]
67 pub mod __lookup_get_index {
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(<SymbolRef as ::unity::ClassIdentity>::class(), "get_Index", 0, param_types, false)
72 });
73 pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
74 match &*METHOD {
75 ::core::result::Result::Ok(mi) => *mi,
76 ::core::result::Result::Err(e) => {
77 panic!(
78 "method lookup failed: {}
79::{}
80: {}
81",
82 <SymbolRef as ::unity::ClassIdentity>::NAME,
83 "get_Index",
84 e
85 )
86 },
87 }
88 }
89 }
90 #[doc(hidden)]
91 #[allow(non_snake_case)]
92 pub mod __lookup_get_name {
93 use super::*;
94 static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
95 let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[];
96 ::unity::lookup::method_info_on_class_with_signature(<SymbolRef as ::unity::ClassIdentity>::class(), "get_Name", 0, param_types, false)
97 });
98 pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
99 match &*METHOD {
100 ::core::result::Result::Ok(mi) => *mi,
101 ::core::result::Result::Err(e) => {
102 panic!(
103 "method lookup failed: {}
104::{}
105: {}
106",
107 <SymbolRef as ::unity::ClassIdentity>::NAME,
108 "get_Name",
109 e
110 )
111 },
112 }
113 }
114 }
115 #[doc(hidden)]
116 #[allow(non_snake_case)]
117 pub mod __lookup_get_environment {
118 use super::*;
119 static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
120 let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[];
121 ::unity::lookup::method_info_on_class_with_signature(
122 <SymbolRef as ::unity::ClassIdentity>::class(),
123 "get_Environment",
124 0,
125 param_types,
126 false,
127 )
128 });
129 pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
130 match &*METHOD {
131 ::core::result::Result::Ok(mi) => *mi,
132 ::core::result::Result::Err(e) => {
133 panic!(
134 "method lookup failed: {}
135::{}
136: {}
137",
138 <SymbolRef as ::unity::ClassIdentity>::NAME,
139 "get_Environment",
140 e
141 )
142 },
143 }
144 }
145 }
146 #[doc(hidden)]
147 #[allow(non_snake_case)]
148 pub mod __lookup_get_default_env {
149 use super::*;
150 static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
151 let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[];
152 ::unity::lookup::method_info_on_class_with_signature(
153 <SymbolRef as ::unity::ClassIdentity>::class(),
154 "get_DefaultEnv",
155 0,
156 param_types,
157 true,
158 )
159 });
160 pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
161 match &*METHOD {
162 ::core::result::Result::Ok(mi) => *mi,
163 ::core::result::Result::Err(e) => {
164 panic!(
165 "method lookup failed: {}
166::{}
167: {}
168",
169 <SymbolRef as ::unity::ClassIdentity>::NAME,
170 "get_DefaultEnv",
171 e
172 )
173 },
174 }
175 }
176 }
177 #[doc(hidden)]
178 #[allow(non_snake_case)]
179 pub mod __lookup_global {
180 use super::*;
181 static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
182 let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[
183 <::unity::Il2CppString as ::unity::IlType>::il_type(),
184 <crate::moon_sharp::interpreter::symbolref::SymbolRef as ::unity::IlType>::il_type(),
185 ];
186 ::unity::lookup::method_info_on_class_with_signature(<SymbolRef as ::unity::ClassIdentity>::class(), "Global", 2, param_types, true)
187 });
188 pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
189 match &*METHOD {
190 ::core::result::Result::Ok(mi) => *mi,
191 ::core::result::Result::Err(e) => {
192 panic!(
193 "method lookup failed: {}
194::{}
195: {}
196",
197 <SymbolRef as ::unity::ClassIdentity>::NAME,
198 "Global",
199 e
200 )
201 },
202 }
203 }
204 }
205 #[doc(hidden)]
206 #[allow(non_snake_case)]
207 pub mod __lookup_local {
208 use super::*;
209 static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
210 let param_types: &[&'static ::unity::il2cpp::Il2CppType] =
211 &[<::unity::Il2CppString as ::unity::IlType>::il_type(), <i32 as ::unity::IlType>::il_type()];
212 ::unity::lookup::method_info_on_class_with_signature(<SymbolRef as ::unity::ClassIdentity>::class(), "Local", 2, param_types, true)
213 });
214 pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
215 match &*METHOD {
216 ::core::result::Result::Ok(mi) => *mi,
217 ::core::result::Result::Err(e) => {
218 panic!(
219 "method lookup failed: {}
220::{}
221: {}
222",
223 <SymbolRef as ::unity::ClassIdentity>::NAME,
224 "Local",
225 e
226 )
227 },
228 }
229 }
230 }
231 #[doc(hidden)]
232 #[allow(non_snake_case)]
233 pub mod __lookup_upvalue {
234 use super::*;
235 static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
236 let param_types: &[&'static ::unity::il2cpp::Il2CppType] =
237 &[<::unity::Il2CppString as ::unity::IlType>::il_type(), <i32 as ::unity::IlType>::il_type()];
238 ::unity::lookup::method_info_on_class_with_signature(<SymbolRef as ::unity::ClassIdentity>::class(), "Upvalue", 2, param_types, true)
239 });
240 pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
241 match &*METHOD {
242 ::core::result::Result::Ok(mi) => *mi,
243 ::core::result::Result::Err(e) => {
244 panic!(
245 "method lookup failed: {}
246::{}
247: {}
248",
249 <SymbolRef as ::unity::ClassIdentity>::NAME,
250 "Upvalue",
251 e
252 )
253 },
254 }
255 }
256 }
257 #[doc(hidden)]
258 #[allow(non_snake_case)]
259 pub mod __lookup_write_binary {
260 use super::*;
261 static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
262 let param_types: &[&'static ::unity::il2cpp::Il2CppType] =
263 &[<crate::system::io::binarywriter::BinaryWriter as ::unity::IlType>::il_type()];
264 ::unity::lookup::method_info_on_class_with_signature(<SymbolRef as ::unity::ClassIdentity>::class(), "WriteBinary", 1, param_types, false)
265 });
266 pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
267 match &*METHOD {
268 ::core::result::Result::Ok(mi) => *mi,
269 ::core::result::Result::Err(e) => {
270 panic!(
271 "method lookup failed: {}
272::{}
273: {}
274",
275 <SymbolRef as ::unity::ClassIdentity>::NAME,
276 "WriteBinary",
277 e
278 )
279 },
280 }
281 }
282 }
283 #[doc(hidden)]
284 #[allow(non_snake_case)]
285 pub mod __lookup_read_binary {
286 use super::*;
287 static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
288 let param_types: &[&'static ::unity::il2cpp::Il2CppType] =
289 &[<crate::system::io::binaryreader::BinaryReader as ::unity::IlType>::il_type()];
290 ::unity::lookup::method_info_on_class_with_signature(<SymbolRef as ::unity::ClassIdentity>::class(), "ReadBinary", 1, param_types, true)
291 });
292 pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
293 match &*METHOD {
294 ::core::result::Result::Ok(mi) => *mi,
295 ::core::result::Result::Err(e) => {
296 panic!(
297 "method lookup failed: {}
298::{}
299: {}
300",
301 <SymbolRef as ::unity::ClassIdentity>::NAME,
302 "ReadBinary",
303 e
304 )
305 },
306 }
307 }
308 }
309 #[doc(hidden)]
310 #[allow(non_snake_case)]
311 pub mod __lookup_write_binary_env {
312 use super::*;
313 static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
314 let param_types: &[& 'static::unity::il2cpp::Il2CppType]= &[<crate::system::io::binarywriter::BinaryWriter as::unity::IlType> ::il_type(), <crate::system::collections::generic::dictionary_2::Dictionary_2<crate::moon_sharp::interpreter::symbolref::SymbolRef,i32>as::unity::IlType> ::il_type()];
315 ::unity::lookup::method_info_on_class_with_signature(
316 <SymbolRef as ::unity::ClassIdentity>::class(),
317 "WriteBinaryEnv",
318 2,
319 param_types,
320 false,
321 )
322 });
323 pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
324 match &*METHOD {
325 ::core::result::Result::Ok(mi) => *mi,
326 ::core::result::Result::Err(e) => {
327 panic!(
328 "method lookup failed: {}
329::{}
330: {}
331",
332 <SymbolRef as ::unity::ClassIdentity>::NAME,
333 "WriteBinaryEnv",
334 e
335 )
336 },
337 }
338 }
339 }
340 #[doc(hidden)]
341 #[allow(non_snake_case)]
342 pub mod __lookup_read_binary_env {
343 use super::*;
344 static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
345 let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[
346 <crate::system::io::binaryreader::BinaryReader as ::unity::IlType>::il_type(),
347 <::unity::Array<crate::moon_sharp::interpreter::symbolref::SymbolRef> as ::unity::IlType>::il_type(),
348 ];
349 ::unity::lookup::method_info_on_class_with_signature(
350 <SymbolRef as ::unity::ClassIdentity>::class(),
351 "ReadBinaryEnv",
352 2,
353 param_types,
354 false,
355 )
356 });
357 pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
358 match &*METHOD {
359 ::core::result::Result::Ok(mi) => *mi,
360 ::core::result::Result::Err(e) => {
361 panic!(
362 "method lookup failed: {}
363::{}
364: {}
365",
366 <SymbolRef as ::unity::ClassIdentity>::NAME,
367 "ReadBinaryEnv",
368 e
369 )
370 },
371 }
372 }
373 }
374 #[doc(hidden)]
375 #[allow(non_snake_case)]
376 pub mod __lookup_ctor {
377 use super::*;
378 static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
379 let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[];
380 ::unity::lookup::method_info_on_class_with_signature(<SymbolRef as ::unity::ClassIdentity>::class(), ".ctor", 0, param_types, false)
381 });
382 pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
383 match &*METHOD {
384 ::core::result::Result::Ok(mi) => *mi,
385 ::core::result::Result::Err(e) => {
386 panic!(
387 "method lookup failed: {}
388::{}
389: {}
390",
391 <SymbolRef as ::unity::ClassIdentity>::NAME,
392 ".ctor",
393 e
394 )
395 },
396 }
397 }
398 }
399 #[doc(hidden)]
400 #[allow(non_snake_case)]
401 pub mod __lookup_cctor {
402 use super::*;
403 static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
404 let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[];
405 ::unity::lookup::method_info_on_class_with_signature(<SymbolRef as ::unity::ClassIdentity>::class(), ".cctor", 0, param_types, true)
406 });
407 pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
408 match &*METHOD {
409 ::core::result::Result::Ok(mi) => *mi,
410 ::core::result::Result::Err(e) => {
411 panic!(
412 "method lookup failed: {}
413::{}
414: {}
415",
416 <SymbolRef as ::unity::ClassIdentity>::NAME,
417 ".cctor",
418 e
419 )
420 },
421 }
422 }
423 }
424}
425
426#[cfg(feature = "moon_sharp-interpreter-symbolref")]
427impl SymbolRef {
428 #[doc = "`get_DefaultEnv()` overload"]
429 pub fn get_default_env() -> crate::moon_sharp::interpreter::symbolref::SymbolRef {
430 unsafe {
431 ::unity::il2cpp_call!(__SymbolRef_unity_raw::__lookup_get_default_env::get_method_info().method_ptr,crate::moon_sharp::interpreter::symbolref::SymbolRef;
432 )
433 }
434 }
435
436 #[doc = "`Global(::unity::Il2CppString, crate::moon_sharp::interpreter::symbolref::SymbolRef)` overload"]
437 pub fn global(
438 name: impl ::core::convert::Into<::unity::Il2CppString>,
439 env_symbol: impl ::core::convert::Into<crate::moon_sharp::interpreter::symbolref::SymbolRef>,
440 ) -> crate::moon_sharp::interpreter::symbolref::SymbolRef {
441 unsafe {
442 ::unity::il2cpp_call!(__SymbolRef_unity_raw::__lookup_global::get_method_info().method_ptr,crate::moon_sharp::interpreter::symbolref::SymbolRef;
443(::unity::Il2CppString)::core::convert::Into::into(name),(crate::moon_sharp::interpreter::symbolref::SymbolRef)::core::convert::Into::into(env_symbol))
444 }
445 }
446
447 #[doc = "`Local(::unity::Il2CppString, i32)` overload"]
448 pub fn local(
449 name: impl ::core::convert::Into<::unity::Il2CppString>,
450 index: impl ::core::convert::Into<i32>,
451 ) -> crate::moon_sharp::interpreter::symbolref::SymbolRef {
452 unsafe {
453 ::unity::il2cpp_call!(__SymbolRef_unity_raw::__lookup_local::get_method_info().method_ptr,crate::moon_sharp::interpreter::symbolref::SymbolRef;
454(::unity::Il2CppString)::core::convert::Into::into(name),(i32)::core::convert::Into::into(index))
455 }
456 }
457
458 #[doc = "`Upvalue(::unity::Il2CppString, i32)` overload"]
459 pub fn upvalue(
460 name: impl ::core::convert::Into<::unity::Il2CppString>,
461 index: impl ::core::convert::Into<i32>,
462 ) -> crate::moon_sharp::interpreter::symbolref::SymbolRef {
463 unsafe {
464 ::unity::il2cpp_call!(__SymbolRef_unity_raw::__lookup_upvalue::get_method_info().method_ptr,crate::moon_sharp::interpreter::symbolref::SymbolRef;
465(::unity::Il2CppString)::core::convert::Into::into(name),(i32)::core::convert::Into::into(index))
466 }
467 }
468
469 #[doc = "`ReadBinary(crate::system::io::binaryreader::BinaryReader)` overload"]
470 pub fn read_binary(
471 br: impl ::core::convert::Into<crate::system::io::binaryreader::BinaryReader>,
472 ) -> crate::moon_sharp::interpreter::symbolref::SymbolRef {
473 unsafe {
474 ::unity::il2cpp_call!(__SymbolRef_unity_raw::__lookup_read_binary::get_method_info().method_ptr,crate::moon_sharp::interpreter::symbolref::SymbolRef;
475(crate::system::io::binaryreader::BinaryReader)::core::convert::Into::into(br))
476 }
477 }
478
479 #[doc = "`.cctor()` overload"]
480 pub fn cctor() -> () {
481 unsafe {
482 ::unity::il2cpp_call!(__SymbolRef_unity_raw::__lookup_cctor::get_method_info().method_ptr,();
483 )
484 }
485 }
486}
487
488#[cfg(feature = "moon_sharp-interpreter-symbolref")]
489pub trait ISymbolRefMethods: ISymbolRef {
490 #[doc = "`get_Type()` overload"]
491 fn get_type(self) -> crate::moon_sharp::interpreter::symbolreftype::SymbolRefType {
492 unsafe {
493 let __receiver = <SymbolRef as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
494 ::unity::il2cpp_call!(__SymbolRef_unity_raw::__lookup_get_type::get_method_info().method_ptr,crate::moon_sharp::interpreter::symbolreftype::SymbolRefType;
495(SymbolRef)__receiver)
496 }
497 }
498 #[doc = "`get_Index()` overload"]
499 fn get_index(self) -> i32 {
500 unsafe {
501 let __receiver = <SymbolRef as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
502 ::unity::il2cpp_call!(__SymbolRef_unity_raw::__lookup_get_index::get_method_info().method_ptr,i32;
503(SymbolRef)__receiver)
504 }
505 }
506 #[doc = "`get_Name()` overload"]
507 fn get_name(self) -> ::unity::Il2CppString {
508 unsafe {
509 let __receiver = <SymbolRef as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
510 ::unity::il2cpp_call!(__SymbolRef_unity_raw::__lookup_get_name::get_method_info().method_ptr, ::unity::Il2CppString;
511(SymbolRef)__receiver)
512 }
513 }
514 #[doc = "`get_Environment()` overload"]
515 fn get_environment(self) -> crate::moon_sharp::interpreter::symbolref::SymbolRef {
516 unsafe {
517 let __receiver = <SymbolRef as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
518 ::unity::il2cpp_call!(__SymbolRef_unity_raw::__lookup_get_environment::get_method_info().method_ptr,crate::moon_sharp::interpreter::symbolref::SymbolRef;
519(SymbolRef)__receiver)
520 }
521 }
522 #[doc = "`ToString()` overload"]
523 fn to_string(self) -> ::unity::Il2CppString {
524 unsafe {
525 let __receiver = <SymbolRef as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
526 {
527 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
528 let __vi = *__vt.get(3usize).unwrap_or_else(|| {
529 panic!(
530 "unity: virtual slot {}
531 out of range (vtable len {}
532) on the runtime class behind {}
533 (method `{}
534`)",
535 3usize,
536 __vt.len(),
537 <SymbolRef as ::unity::ClassIdentity>::NAME,
538 "ToString",
539 )
540 });
541 let __inner: extern "C" fn(SymbolRef, ::unity::OptionalMethod) -> ::unity::Il2CppString = ::core::mem::transmute(__vi.method_ptr);
542 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
543 __inner(__receiver, __mi)
544 }
545 }
546 }
547 #[doc = "`WriteBinary(crate::system::io::binarywriter::BinaryWriter)` overload"]
548 fn write_binary(self, bw: impl ::core::convert::Into<crate::system::io::binarywriter::BinaryWriter>) -> () {
549 unsafe {
550 let __receiver = <SymbolRef as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
551 ::unity::il2cpp_call!(__SymbolRef_unity_raw::__lookup_write_binary::get_method_info().method_ptr,();
552(SymbolRef)__receiver,(crate::system::io::binarywriter::BinaryWriter)::core::convert::Into::into(bw))
553 }
554 }
555 #[doc = "`WriteBinaryEnv(crate::system::io::binarywriter::BinaryWriter, crate::system::collections::generic::dictionary_2::Dictionary_2<crate::moon_sharp::interpreter::symbolref::SymbolRef,i32>)` overload"]
556 fn write_binary_env(
557 self,
558 bw: impl ::core::convert::Into<crate::system::io::binarywriter::BinaryWriter>,
559 symbol_map: impl ::core::convert::Into<
560 crate::system::collections::generic::dictionary_2::Dictionary_2<crate::moon_sharp::interpreter::symbolref::SymbolRef, i32>,
561 >,
562 ) -> () {
563 unsafe {
564 let __receiver = <SymbolRef as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
565 ::unity::il2cpp_call!(__SymbolRef_unity_raw::__lookup_write_binary_env::get_method_info().method_ptr,();
566(SymbolRef)__receiver,(crate::system::io::binarywriter::BinaryWriter)::core::convert::Into::into(bw),(crate::system::collections::generic::dictionary_2::Dictionary_2<crate::moon_sharp::interpreter::symbolref::SymbolRef,i32>)::core::convert::Into::into(symbol_map))
567 }
568 }
569 #[doc = "`ReadBinaryEnv(crate::system::io::binaryreader::BinaryReader, ::unity::Array<crate::moon_sharp::interpreter::symbolref::SymbolRef>)` overload"]
570 fn read_binary_env(
571 self,
572 br: impl ::core::convert::Into<crate::system::io::binaryreader::BinaryReader>,
573 symbol_refs: impl ::core::convert::Into<::unity::Array<crate::moon_sharp::interpreter::symbolref::SymbolRef>>,
574 ) -> () {
575 unsafe {
576 let __receiver = <SymbolRef as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
577 ::unity::il2cpp_call!(__SymbolRef_unity_raw::__lookup_read_binary_env::get_method_info().method_ptr,();
578(SymbolRef)__receiver,(crate::system::io::binaryreader::BinaryReader)::core::convert::Into::into(br),(::unity::Array<crate::moon_sharp::interpreter::symbolref::SymbolRef>)::core::convert::Into::into(symbol_refs))
579 }
580 }
581 #[doc = "`.ctor()` overload"]
582 fn ctor(self) -> () {
583 unsafe {
584 let __receiver = <SymbolRef as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
585 ::unity::il2cpp_call!(__SymbolRef_unity_raw::__lookup_ctor::get_method_info().method_ptr,();
586(SymbolRef)__receiver)
587 }
588 }
589}
590
591#[cfg(feature = "moon_sharp-interpreter-symbolref")]
592impl<__T: ISymbolRef> ISymbolRefMethods for __T {}
593
594#[cfg(feature = "moon_sharp-interpreter-symbolref")]
595impl SymbolRef {
596 pub fn get_type_method_info() -> &'static ::unity::il2cpp::MethodInfo {
597 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
598 }
599
600 pub fn get_index_method_info() -> &'static ::unity::il2cpp::MethodInfo {
601 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
602 }
603
604 pub fn get_name_method_info() -> &'static ::unity::il2cpp::MethodInfo {
605 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
606 }
607
608 pub fn get_environment_method_info() -> &'static ::unity::il2cpp::MethodInfo {
609 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
610 }
611
612 pub fn get_default_env_method_info() -> &'static ::unity::il2cpp::MethodInfo {
613 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
614 }
615
616 pub fn global_method_info() -> &'static ::unity::il2cpp::MethodInfo {
617 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
618 }
619
620 pub fn local_method_info() -> &'static ::unity::il2cpp::MethodInfo {
621 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
622 }
623
624 pub fn upvalue_method_info() -> &'static ::unity::il2cpp::MethodInfo {
625 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
626 }
627
628 pub fn to_string_method_info() -> &'static ::unity::il2cpp::MethodInfo {
629 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
630 }
631
632 pub fn write_binary_method_info() -> &'static ::unity::il2cpp::MethodInfo {
633 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
634 }
635
636 pub fn read_binary_method_info() -> &'static ::unity::il2cpp::MethodInfo {
637 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
638 }
639
640 pub fn write_binary_env_method_info() -> &'static ::unity::il2cpp::MethodInfo {
641 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[11]
642 }
643
644 pub fn read_binary_env_method_info() -> &'static ::unity::il2cpp::MethodInfo {
645 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[12]
646 }
647
648 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
649 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[13]
650 }
651
652 pub fn cctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
653 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[14]
654 }
655}
656
657#[cfg(feature = "moon_sharp-interpreter-symbolref")]
658impl SymbolRef {
659 #[doc = "Direct (non-virtual) call to `SymbolRef`'s own `ToString`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
660 pub unsafe fn to_string(this: impl ::core::convert::Into<::unity::IlInstance>) -> ::unity::Il2CppString {
661 let __mi = Self::to_string_method_info();
662 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> ::unity::Il2CppString = ::core::mem::transmute(__mi.method_ptr);
663 __inner(this.into(), ::core::option::Option::None)
664 }
665}
666
667#[cfg(feature = "moon_sharp-interpreter-symbolref")]
668impl SymbolRef {
669 #[doc = "`.ctor()` — no args"]
670 pub fn new() -> Self {
671 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
672 panic!(
673 "{}
674::{}
675 failed to instantiate",
676 ::core::stringify!(SymbolRef),
677 ::core::stringify!(new),
678 )
679 });
680 <Self as ISymbolRefMethods>::ctor(this);
681 this
682 }
683}
684
685#[cfg(feature = "moon_sharp-interpreter-symbolref")]
686#[doc(hidden)]
687pub mod prelude {
688 pub use super::{ISymbolRef, ISymbolRefMethods, SymbolRef};
689 pub use crate::system::object::IObject;
690 #[cfg(feature = "system-object")]
691 pub use crate::system::object::IObjectMethods;
692}