Skip to main content

engage/generated/combat/
bit.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "combat-bit-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/combat/bit/Bit.md"))]
11    #[::unity::class(namespace = "Combat", name = "Bit")]
12    #[parent(crate::system::object::Object)]
13    pub struct Bit {}
14}
15
16#[cfg(feature = "combat-bit-types")]
17pub use __types::*;
18
19#[cfg(feature = "combat-bit")]
20impl Bit {
21    #[doc = "`Get(i32, i32, i32)` overload"]
22    pub fn get(src_value: impl ::core::convert::Into<i32>, bits: impl ::core::convert::Into<i32>, shift: impl ::core::convert::Into<i32>) -> i32 {
23        unsafe {
24            ::unity::il2cpp_call!((::unity::module_base()+0x29871c0usize)as*mut u8,i32;
25(i32)::core::convert::Into::into(src_value),(i32)::core::convert::Into::into(bits),(i32)::core::convert::Into::into(shift))
26        }
27    }
28
29    #[doc = "`GetSigned(i32, i32, i32)` overload"]
30    pub fn get_signed(
31        src_value: impl ::core::convert::Into<i32>,
32        bits: impl ::core::convert::Into<i32>,
33        shift: impl ::core::convert::Into<i32>,
34    ) -> i32 {
35        unsafe {
36            ::unity::il2cpp_call!((::unity::module_base()+0x29871e0usize)as*mut u8,i32;
37(i32)::core::convert::Into::into(src_value),(i32)::core::convert::Into::into(bits),(i32)::core::convert::Into::into(shift))
38        }
39    }
40
41    #[doc = "`Combine(i32, i32, i32, i32)` overload"]
42    pub fn combine(
43        src_value: impl ::core::convert::Into<i32>,
44        value: impl ::core::convert::Into<i32>,
45        bits: impl ::core::convert::Into<i32>,
46        shift: impl ::core::convert::Into<i32>,
47    ) -> i32 {
48        unsafe {
49            ::unity::il2cpp_call!((::unity::module_base()+0x2987200usize)as*mut u8,i32;
50(i32)::core::convert::Into::into(src_value),(i32)::core::convert::Into::into(value),(i32)::core::convert::Into::into(bits),(i32)::core::convert::Into::into(shift))
51        }
52    }
53
54    #[doc = "`Combine(i32, bool, i32)` overload"]
55    pub fn combine_2(
56        src_value: impl ::core::convert::Into<i32>,
57        value: impl ::core::convert::Into<bool>,
58        shift: impl ::core::convert::Into<i32>,
59    ) -> i32 {
60        unsafe {
61            ::unity::il2cpp_call!((::unity::module_base()+0x2987230usize)as*mut u8,i32;
62(i32)::core::convert::Into::into(src_value),(bool)::core::convert::Into::into(value),(i32)::core::convert::Into::into(shift))
63        }
64    }
65}
66
67#[cfg(feature = "combat-bit")]
68impl Bit {
69    pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
70        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
71    }
72
73    pub fn get_signed_method_info() -> &'static ::unity::il2cpp::MethodInfo {
74        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
75    }
76
77    pub fn combine_method_info() -> &'static ::unity::il2cpp::MethodInfo {
78        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
79    }
80
81    pub fn combine_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
82        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
83    }
84}
85
86#[cfg(feature = "combat-bit")]
87#[doc(hidden)]
88pub mod prelude {
89    pub use super::{Bit, IBit};
90    pub use crate::system::object::IObject;
91    #[cfg(feature = "system-object")]
92    pub use crate::system::object::IObjectMethods;
93}