engage/generated/app/
bitfieldcommon.rs1#[cfg(feature = "app-bitfieldcommon-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/app/bitfieldcommon/BitFieldCommon.md"))]
11 #[::unity::class(namespace = "App", name = "BitFieldCommon")]
12 #[parent(crate::system::object::Object)]
13 pub struct BitFieldCommon {}
14}
15
16#[cfg(feature = "app-bitfieldcommon-types")]
17pub use __types::*;
18
19#[cfg(feature = "app-bitfieldcommon")]
20pub trait IBitFieldCommonMethods: IBitFieldCommon {
21 #[doc = "`get_ValueType()` overload"]
22 fn get_value_type(self) -> ::unity::SystemType {
23 unsafe {
24 let __receiver = <BitFieldCommon as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
25 {
26 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
27 let __vi = *__vt.get(4usize).unwrap_or_else(|| {
28 panic!(
29 "unity: virtual slot {}
30 out of range (vtable len {}
31) on the runtime class behind {}
32 (method `{}
33`)",
34 4usize,
35 __vt.len(),
36 <BitFieldCommon as ::unity::ClassIdentity>::NAME,
37 "get_ValueType",
38 )
39 });
40 let __inner: extern "C" fn(BitFieldCommon, ::unity::OptionalMethod) -> ::unity::SystemType = ::core::mem::transmute(__vi.method_ptr);
41 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
42 __inner(__receiver, __mi)
43 }
44 }
45 }
46 #[doc = "`.ctor()` overload"]
47 fn ctor(self) -> () {
48 unsafe {
49 let __receiver = <BitFieldCommon as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
50 ::unity::il2cpp_call!((::unity::module_base()+0x29873d0usize)as*mut u8,();
51(BitFieldCommon)__receiver)
52 }
53 }
54}
55
56#[cfg(feature = "app-bitfieldcommon")]
57impl<__T: IBitFieldCommon> IBitFieldCommonMethods for __T {}
58
59#[cfg(feature = "app-bitfieldcommon")]
60impl BitFieldCommon {
61 pub fn get_value_type_method_info() -> &'static ::unity::il2cpp::MethodInfo {
62 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
63 }
64
65 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
66 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
67 }
68}
69
70#[cfg(feature = "app-bitfieldcommon")]
71impl BitFieldCommon {
72 #[doc = "Direct (non-virtual) call to `BitFieldCommon`'s own `get_ValueType`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
73 pub unsafe fn get_value_type(this: impl ::core::convert::Into<::unity::IlInstance>) -> ::unity::SystemType {
74 let __mi = Self::get_value_type_method_info();
75 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> ::unity::SystemType = ::core::mem::transmute(__mi.method_ptr);
76 __inner(this.into(), ::core::option::Option::None)
77 }
78}
79
80#[cfg(feature = "app-bitfieldcommon")]
81impl BitFieldCommon {
82 #[doc = "`.ctor()` — no args"]
83 pub fn new() -> Self {
84 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
85 panic!(
86 "{}
87::{}
88 failed to instantiate",
89 ::core::stringify!(BitFieldCommon),
90 ::core::stringify!(new),
91 )
92 });
93 <Self as IBitFieldCommonMethods>::ctor(this);
94 this
95 }
96}
97
98#[cfg(feature = "app-bitfieldcommon")]
99#[doc(hidden)]
100pub mod prelude {
101 pub use super::{BitFieldCommon, IBitFieldCommon, IBitFieldCommonMethods};
102 pub use crate::system::object::IObject;
103 #[cfg(feature = "system-object")]
104 pub use crate::system::object::IObjectMethods;
105}