engage/generated/app/
bitfieldhelper.rs1#[cfg(feature = "app-bitfieldhelper-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/bitfieldhelper/BitFieldHelper.md"))]
11 #[::unity::class(namespace = "App", name = "BitFieldHelper")]
12 #[parent(crate::system::object::Object)]
13 pub struct BitFieldHelper {}
14}
15
16#[cfg(feature = "app-bitfieldhelper-types")]
17pub use __types::*;
18
19#[cfg(feature = "app-bitfieldhelper")]
20impl BitFieldHelper {
21 #[doc = "`GetByNames(::unity::SystemType, i32)` overload"]
22 pub fn get_by_names(
23 src_type: impl ::core::convert::Into<::unity::SystemType>,
24 src_value: impl ::core::convert::Into<i32>,
25 ) -> ::unity::Il2CppString {
26 unsafe {
27 ::unity::il2cpp_call!((::unity::module_base()+0x2987610usize)as*mut u8, ::unity::Il2CppString;
28(::unity::SystemType)::core::convert::Into::into(src_type),(i32)::core::convert::Into::into(src_value))
29 }
30 }
31
32 #[doc = "`GetByNames(::unity::SystemType, i64)` overload"]
33 pub fn get_by_names_2(
34 src_type: impl ::core::convert::Into<::unity::SystemType>,
35 src_value: impl ::core::convert::Into<i64>,
36 ) -> ::unity::Il2CppString {
37 unsafe {
38 ::unity::il2cpp_call!((::unity::module_base()+0x2987b60usize)as*mut u8, ::unity::Il2CppString;
39(::unity::SystemType)::core::convert::Into::into(src_type),(i64)::core::convert::Into::into(src_value))
40 }
41 }
42}
43
44#[cfg(feature = "app-bitfieldhelper")]
45pub trait IBitFieldHelperMethods: IBitFieldHelper {
46 #[doc = "`.ctor()` overload"]
47 fn ctor(self) -> () {
48 unsafe {
49 let __receiver = <BitFieldHelper as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
50 ::unity::il2cpp_call!((::unity::module_base()+0x2988110usize)as*mut u8,();
51(BitFieldHelper)__receiver)
52 }
53 }
54}
55
56#[cfg(feature = "app-bitfieldhelper")]
57impl<__T: IBitFieldHelper> IBitFieldHelperMethods for __T {}
58
59#[cfg(feature = "app-bitfieldhelper")]
60impl BitFieldHelper {
61 pub fn get_by_names_method_info() -> &'static ::unity::il2cpp::MethodInfo {
62 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
63 }
64
65 pub fn get_by_names_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
66 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
67 }
68
69 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
70 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
71 }
72}
73
74#[cfg(feature = "app-bitfieldhelper")]
75impl BitFieldHelper {
76 #[doc = "`.ctor()` — no args"]
77 pub fn new() -> Self {
78 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
79 panic!(
80 "{}
81::{}
82 failed to instantiate",
83 ::core::stringify!(BitFieldHelper),
84 ::core::stringify!(new),
85 )
86 });
87 <Self as IBitFieldHelperMethods>::ctor(this);
88 this
89 }
90}
91
92#[cfg(feature = "app-bitfieldhelper")]
93#[doc(hidden)]
94pub mod prelude {
95 pub use super::{BitFieldHelper, IBitFieldHelper, IBitFieldHelperMethods};
96 pub use crate::system::object::IObject;
97 #[cfg(feature = "system-object")]
98 pub use crate::system::object::IObjectMethods;
99}