engage/generated/system/reflection/
missing.rs1#[cfg(feature = "system-reflection-missing-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/system/reflection/missing/Missing.md"))]
11 #[::unity::class(namespace = "System.Reflection", name = "Missing")]
12 #[parent(crate::system::object::Object)]
13 pub struct Missing {
14 #[static_field]
15 #[rename(name = "Value")]
16 pub value: crate::system::reflection::missing::Missing,
17 }
18}
19
20#[cfg(feature = "system-reflection-missing-types")]
21pub use __types::*;
22
23#[cfg(feature = "system-reflection-missing")]
24impl Missing {
25 #[doc = "`.cctor()` overload"]
26 pub fn cctor() -> () {
27 unsafe {
28 ::unity::il2cpp_call!((::unity::module_base()+0x3379a10usize)as*mut u8,();
29 )
30 }
31 }
32}
33
34#[cfg(feature = "system-reflection-missing")]
35pub trait IMissingMethods: IMissing {
36 #[doc = "`.ctor()` overload"]
37 fn ctor(self) -> () {
38 unsafe {
39 let __receiver = <Missing as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
40 ::unity::il2cpp_call!((::unity::module_base()+0x3379990usize)as*mut u8,();
41(Missing)__receiver)
42 }
43 }
44}
45
46#[cfg(feature = "system-reflection-missing")]
47impl<__T: IMissing> IMissingMethods for __T {}
48
49#[cfg(feature = "system-reflection-missing")]
50impl Missing {
51 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
52 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
53 }
54
55 pub fn cctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
56 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
57 }
58}
59
60#[cfg(feature = "system-reflection-missing")]
61impl Missing {
62 #[doc = "`.ctor()` — no args"]
63 pub fn new() -> Self {
64 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
65 panic!(
66 "{}
67::{}
68 failed to instantiate",
69 ::core::stringify!(Missing),
70 ::core::stringify!(new),
71 )
72 });
73 <Self as IMissingMethods>::ctor(this);
74 this
75 }
76}
77
78#[cfg(feature = "system-reflection-missing")]
79#[doc(hidden)]
80pub mod prelude {
81 pub use super::{IMissing, IMissingMethods, Missing};
82 pub use crate::system::object::IObject;
83 #[cfg(feature = "system-object")]
84 pub use crate::system::object::IObjectMethods;
85}