Skip to main content

engage/generated/app/
bitstruct.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "app-bitstruct-types")]
4mod __types {
5    #[allow(unused_imports)] use ::unity::prelude::*;
6
7    use super::*;
8    use crate::system::{
9        object::{IObject, Object},
10        valuetype::{IValueType, ValueType},
11    };
12
13    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/bitstruct/BitStruct.md"))]
14    #[repr(C)]
15    #[derive(::core::clone::Clone, ::core::marker::Copy)]
16    pub struct BitStruct {
17        pub m_bits: ::unity::Array<u8>,
18    }
19    impl ::unity::ClassIdentity for BitStruct {
20        const NAME: &'static str = "BitStruct";
21        const NAMESPACE: &'static str = "App";
22
23        fn class() -> ::unity::Class {
24            static CACHE: ::std::sync::OnceLock<::unity::Class> = ::std::sync::OnceLock::new();
25            *CACHE.get_or_init(|| ::unity::Class::lookup(Self::NAMESPACE, Self::NAME))
26        }
27    }
28    impl ::unity::IlType for BitStruct {
29        fn il_type() -> &'static ::unity::il2cpp::Il2CppType {
30            &<Self as ::unity::ClassIdentity>::class().raw()._1.byval_arg
31        }
32    }
33}
34
35#[cfg(feature = "app-bitstruct-types")]
36pub use __types::*;
37
38#[cfg(feature = "app-bitstruct")]
39impl BitStruct {
40    #[doc = "`.ctor(i32)` overload"]
41    pub fn ctor(&mut self, count: impl ::core::convert::Into<i32>) -> () {
42        unsafe {
43            ::unity::il2cpp_call!((::unity::module_base()+0x2988d90usize)as*mut u8,();
44(*mut BitStruct)self as*mut BitStruct,(i32)::core::convert::Into::into(count))
45        }
46    }
47
48    #[doc = "`Dispose()` overload"]
49    pub fn dispose(&mut self) -> () {
50        unsafe {
51            ::unity::il2cpp_call!((::unity::module_base()+0x2988e00usize)as*mut u8,();
52(*mut BitStruct)self as*mut BitStruct)
53        }
54    }
55
56    #[doc = "`get_Item(i32)` overload"]
57    pub fn get_item(&mut self, index: impl ::core::convert::Into<i32>) -> bool {
58        unsafe {
59            ::unity::il2cpp_call!((::unity::module_base()+0x2988e10usize)as*mut u8,bool;
60(*mut BitStruct)self as*mut BitStruct,(i32)::core::convert::Into::into(index))
61        }
62    }
63
64    #[doc = "`set_Item(i32, bool)` overload"]
65    pub fn set_item(&mut self, index: impl ::core::convert::Into<i32>, value: impl ::core::convert::Into<bool>) -> () {
66        unsafe {
67            ::unity::il2cpp_call!((::unity::module_base()+0x2988e60usize)as*mut u8,();
68(*mut BitStruct)self as*mut BitStruct,(i32)::core::convert::Into::into(index),(bool)::core::convert::Into::into(value))
69        }
70    }
71
72    #[doc = "`Get(i32)` overload"]
73    pub fn get(&mut self, index: impl ::core::convert::Into<i32>) -> bool {
74        unsafe {
75            ::unity::il2cpp_call!((::unity::module_base()+0x2988ee0usize)as*mut u8,bool;
76(*mut BitStruct)self as*mut BitStruct,(i32)::core::convert::Into::into(index))
77        }
78    }
79
80    #[doc = "`Set(i32, bool)` overload"]
81    pub fn set(&mut self, index: impl ::core::convert::Into<i32>, enable: impl ::core::convert::Into<bool>) -> () {
82        unsafe {
83            ::unity::il2cpp_call!((::unity::module_base()+0x2988f30usize)as*mut u8,();
84(*mut BitStruct)self as*mut BitStruct,(i32)::core::convert::Into::into(index),(bool)::core::convert::Into::into(enable))
85        }
86    }
87
88    #[doc = "`Set(i32)` overload"]
89    pub fn set_2(&mut self, index: impl ::core::convert::Into<i32>) -> () {
90        unsafe {
91            ::unity::il2cpp_call!((::unity::module_base()+0x2988fb0usize)as*mut u8,();
92(*mut BitStruct)self as*mut BitStruct,(i32)::core::convert::Into::into(index))
93        }
94    }
95
96    #[doc = "`Clear(i32)` overload"]
97    pub fn clear(&mut self, index: impl ::core::convert::Into<i32>) -> () {
98        unsafe {
99            ::unity::il2cpp_call!((::unity::module_base()+0x2989000usize)as*mut u8,();
100(*mut BitStruct)self as*mut BitStruct,(i32)::core::convert::Into::into(index))
101        }
102    }
103
104    #[doc = "`SetAll(bool)` overload"]
105    pub fn set_all(&mut self, enable: impl ::core::convert::Into<bool>) -> () {
106        unsafe {
107            ::unity::il2cpp_call!((::unity::module_base()+0x2989050usize)as*mut u8,();
108(*mut BitStruct)self as*mut BitStruct,(bool)::core::convert::Into::into(enable))
109        }
110    }
111
112    #[doc = "`Fill()` overload"]
113    pub fn fill(&mut self) -> () {
114        unsafe {
115            ::unity::il2cpp_call!((::unity::module_base()+0x29891a0usize)as*mut u8,();
116(*mut BitStruct)self as*mut BitStruct)
117        }
118    }
119
120    #[doc = "`Clear()` overload"]
121    pub fn clear_2(&mut self) -> () {
122        unsafe {
123            ::unity::il2cpp_call!((::unity::module_base()+0x2989280usize)as*mut u8,();
124(*mut BitStruct)self as*mut BitStruct)
125        }
126    }
127
128    #[doc = "`Clear(i32, i32)` overload"]
129    pub fn clear_3(&mut self, index: impl ::core::convert::Into<i32>, count: impl ::core::convert::Into<i32>) -> () {
130        unsafe {
131            ::unity::il2cpp_call!((::unity::module_base()+0x2989300usize)as*mut u8,();
132(*mut BitStruct)self as*mut BitStruct,(i32)::core::convert::Into::into(index),(i32)::core::convert::Into::into(count))
133        }
134    }
135
136    #[doc = "`Fill(i32, i32)` overload"]
137    pub fn fill_2(&mut self, index: impl ::core::convert::Into<i32>, count: impl ::core::convert::Into<i32>) -> () {
138        unsafe {
139            ::unity::il2cpp_call!((::unity::module_base()+0x29893a0usize)as*mut u8,();
140(*mut BitStruct)self as*mut BitStruct,(i32)::core::convert::Into::into(index),(i32)::core::convert::Into::into(count))
141        }
142    }
143}
144
145#[cfg(feature = "app-bitstruct")]
146impl BitStruct {
147    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
148        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
149    }
150
151    pub fn dispose_method_info() -> &'static ::unity::il2cpp::MethodInfo {
152        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
153    }
154
155    pub fn get_item_method_info() -> &'static ::unity::il2cpp::MethodInfo {
156        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
157    }
158
159    pub fn set_item_method_info() -> &'static ::unity::il2cpp::MethodInfo {
160        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
161    }
162
163    pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
164        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
165    }
166
167    pub fn set_method_info() -> &'static ::unity::il2cpp::MethodInfo {
168        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
169    }
170
171    pub fn set_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
172        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
173    }
174
175    pub fn clear_method_info() -> &'static ::unity::il2cpp::MethodInfo {
176        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
177    }
178
179    pub fn set_all_method_info() -> &'static ::unity::il2cpp::MethodInfo {
180        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
181    }
182
183    pub fn fill_method_info() -> &'static ::unity::il2cpp::MethodInfo {
184        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
185    }
186
187    pub fn clear_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
188        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
189    }
190
191    pub fn clear_3_method_info() -> &'static ::unity::il2cpp::MethodInfo {
192        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[11]
193    }
194
195    pub fn fill_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
196        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[12]
197    }
198}
199
200#[cfg(feature = "app-bitstruct")]
201#[doc(hidden)]
202pub mod prelude {
203    pub use super::BitStruct;
204    #[cfg(feature = "system-object")]
205    pub use crate::system::object::IObjectMethods;
206    #[cfg(feature = "system-valuetype")]
207    pub use crate::system::valuetype::IValueTypeMethods;
208    pub use crate::system::{object::IObject, valuetype::IValueType};
209}