engage/generated/app/
bindholder.rs1#[cfg(feature = "app-bindholder-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/bindholder/BindHolder.md"))]
11 #[::unity::class(namespace = "App", name = "BindHolder")]
12 #[parent(crate::system::object::Object)]
13 pub struct BindHolder {
14 #[static_field]
15 #[rename(name = "BindMax")]
16 pub bind_max: i32,
17 #[offset(16)]
18 #[rename(name = "m_Bind")]
19 pub m_bind: i32,
20 }
21}
22
23#[cfg(feature = "app-bindholder-types")]
24pub use __types::*;
25
26#[cfg(feature = "app-bindholder")]
27pub trait IBindHolderMethods: IBindHolder {
28 #[doc = "`Bind()` overload"]
29 fn bind(self) -> bool {
30 unsafe {
31 let __receiver = <BindHolder as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
32 ::unity::il2cpp_call!((::unity::module_base()+0x1e98d40usize)as*mut u8,bool;
33(BindHolder)__receiver)
34 }
35 }
36 #[doc = "`Unbind()` overload"]
37 fn unbind(self) -> bool {
38 unsafe {
39 let __receiver = <BindHolder as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
40 ::unity::il2cpp_call!((::unity::module_base()+0x1e98d60usize)as*mut u8,bool;
41(BindHolder)__receiver)
42 }
43 }
44 #[doc = "`IsBind()` overload"]
45 fn is_bind(self) -> bool {
46 unsafe {
47 let __receiver = <BindHolder as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
48 ::unity::il2cpp_call!((::unity::module_base()+0x1e98df0usize)as*mut u8,bool;
49(BindHolder)__receiver)
50 }
51 }
52 #[doc = "`NonBind()` overload"]
53 fn non_bind(self) -> bool {
54 unsafe {
55 let __receiver = <BindHolder as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
56 ::unity::il2cpp_call!((::unity::module_base()+0x1e98e00usize)as*mut u8,bool;
57(BindHolder)__receiver)
58 }
59 }
60 #[doc = "`Reset()` overload"]
61 fn reset(self) -> () {
62 unsafe {
63 let __receiver = <BindHolder as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
64 ::unity::il2cpp_call!((::unity::module_base()+0x1e98e10usize)as*mut u8,();
65(BindHolder)__receiver)
66 }
67 }
68 #[doc = "`get_Count()` overload"]
69 fn get_count(self) -> i32 {
70 unsafe {
71 let __receiver = <BindHolder as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
72 ::unity::il2cpp_call!((::unity::module_base()+0x1e98e20usize)as*mut u8,i32;
73(BindHolder)__receiver)
74 }
75 }
76 #[doc = "`.ctor()` overload"]
77 fn ctor(self) -> () {
78 unsafe {
79 let __receiver = <BindHolder as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
80 ::unity::il2cpp_call!((::unity::module_base()+0x1e98e30usize)as*mut u8,();
81(BindHolder)__receiver)
82 }
83 }
84}
85
86#[cfg(feature = "app-bindholder")]
87impl<__T: IBindHolder> IBindHolderMethods for __T {}
88
89#[cfg(feature = "app-bindholder")]
90impl BindHolder {
91 pub fn bind_method_info() -> &'static ::unity::il2cpp::MethodInfo {
92 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
93 }
94
95 pub fn unbind_method_info() -> &'static ::unity::il2cpp::MethodInfo {
96 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
97 }
98
99 pub fn is_bind_method_info() -> &'static ::unity::il2cpp::MethodInfo {
100 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
101 }
102
103 pub fn non_bind_method_info() -> &'static ::unity::il2cpp::MethodInfo {
104 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
105 }
106
107 pub fn reset_method_info() -> &'static ::unity::il2cpp::MethodInfo {
108 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
109 }
110
111 pub fn get_count_method_info() -> &'static ::unity::il2cpp::MethodInfo {
112 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
113 }
114
115 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
116 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
117 }
118}
119
120#[cfg(feature = "app-bindholder")]
121impl BindHolder {
122 #[doc = "`.ctor()` — no args"]
123 pub fn new() -> Self {
124 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
125 panic!(
126 "{}
127::{}
128 failed to instantiate",
129 ::core::stringify!(BindHolder),
130 ::core::stringify!(new),
131 )
132 });
133 <Self as IBindHolderMethods>::ctor(this);
134 this
135 }
136}
137
138#[cfg(feature = "app-bindholder")]
139#[doc(hidden)]
140pub mod prelude {
141 pub use super::{BindHolder, IBindHolder, IBindHolderMethods};
142 pub use crate::system::object::IObject;
143 #[cfg(feature = "system-object")]
144 pub use crate::system::object::IObjectMethods;
145}