Skip to main content

engage/generated/system/reflection/
bindingflags.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "system-reflection-bindingflags-types")]
4mod __types {
5    #[allow(unused_imports)] use ::unity::prelude::*;
6
7    use super::*;
8    use crate::system::{
9        object::{IObject, Object},
10        r#enum::{Enum, IEnum},
11        valuetype::{IValueType, ValueType},
12    };
13
14    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/system/reflection/bindingflags/BindingFlags.md"))]
15    #[repr(C)]
16    #[derive(::core::clone::Clone, ::core::marker::Copy, ::core::fmt::Debug, ::core::cmp::PartialEq, ::core::cmp::Eq)]
17    pub struct BindingFlags {
18        pub value: i32,
19    }
20    impl ::unity::ClassIdentity for BindingFlags {
21        const NAME: &'static str = "BindingFlags";
22        const NAMESPACE: &'static str = "System.Reflection";
23
24        fn class() -> ::unity::Class {
25            static CACHE: ::std::sync::OnceLock<::unity::Class> = ::std::sync::OnceLock::new();
26            *CACHE.get_or_init(|| ::unity::Class::lookup(Self::NAMESPACE, Self::NAME))
27        }
28    }
29    impl ::unity::IlType for BindingFlags {
30        fn il_type() -> &'static ::unity::il2cpp::Il2CppType {
31            &<Self as ::unity::ClassIdentity>::class().raw()._1.byval_arg
32        }
33    }
34    impl BindingFlags {
35        pub fn default() -> Self {
36            Self { value: 0 }
37        }
38
39        pub fn ignore_case() -> Self {
40            Self { value: 1 }
41        }
42
43        pub fn declared_only() -> Self {
44            Self { value: 2 }
45        }
46
47        pub fn instance() -> Self {
48            Self { value: 4 }
49        }
50
51        pub fn r#static() -> Self {
52            Self { value: 8 }
53        }
54
55        pub fn public() -> Self {
56            Self { value: 16 }
57        }
58
59        pub fn non_public() -> Self {
60            Self { value: 32 }
61        }
62
63        pub fn flatten_hierarchy() -> Self {
64            Self { value: 64 }
65        }
66
67        pub fn invoke_method() -> Self {
68            Self { value: 256 }
69        }
70
71        pub fn create_instance() -> Self {
72            Self { value: 512 }
73        }
74
75        pub fn get_field() -> Self {
76            Self { value: 1024 }
77        }
78
79        pub fn set_field() -> Self {
80            Self { value: 2048 }
81        }
82
83        pub fn get_property() -> Self {
84            Self { value: 4096 }
85        }
86
87        pub fn set_property() -> Self {
88            Self { value: 8192 }
89        }
90
91        pub fn put_disp_property() -> Self {
92            Self { value: 16384 }
93        }
94
95        pub fn put_ref_disp_property() -> Self {
96            Self { value: 32768 }
97        }
98
99        pub fn exact_binding() -> Self {
100            Self { value: 65536 }
101        }
102
103        pub fn suppress_change_type() -> Self {
104            Self { value: 131072 }
105        }
106
107        pub fn optional_param_binding() -> Self {
108            Self { value: 262144 }
109        }
110
111        pub fn ignore_return() -> Self {
112            Self { value: 16777216 }
113        }
114    }
115}
116
117#[cfg(feature = "system-reflection-bindingflags-types")]
118pub use __types::*;
119
120#[cfg(feature = "system-reflection-bindingflags")]
121#[doc(hidden)]
122pub mod prelude {
123    pub use super::BindingFlags;
124    #[cfg(feature = "system-object")]
125    pub use crate::system::object::IObjectMethods;
126    #[cfg(feature = "system-enum")]
127    pub use crate::system::r#enum::IEnumMethods;
128    #[cfg(feature = "system-valuetype")]
129    pub use crate::system::valuetype::IValueTypeMethods;
130    pub use crate::system::{object::IObject, r#enum::IEnum, valuetype::IValueType};
131}