Skip to main content

engage/generated/system/reflection/
defaultmemberattribute.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "system-reflection-defaultmemberattribute-types")]
4mod __types {
5    #[allow(unused_imports)] use ::unity::prelude::*;
6
7    use super::*;
8
9    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/system/reflection/defaultmemberattribute/DefaultMemberAttribute.md"))]
10    #[::unity::class(namespace = "System.Reflection", name = "DefaultMemberAttribute")]
11    pub struct DefaultMemberAttribute {
12        #[offset(16)]
13        #[rename(name = "m_memberName")]
14        pub m_member_name: ::unity::Il2CppString,
15    }
16}
17
18#[cfg(feature = "system-reflection-defaultmemberattribute-types")]
19pub use __types::*;
20
21#[cfg(feature = "system-reflection-defaultmemberattribute")]
22pub trait IDefaultMemberAttributeMethods: IDefaultMemberAttribute {
23    #[doc = "`.ctor(::unity::Il2CppString)` overload"]
24    fn ctor(self, member_name: impl ::core::convert::Into<::unity::Il2CppString>) -> () {
25        unsafe {
26            let __receiver =
27                <DefaultMemberAttribute as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
28            ::unity::il2cpp_call!((::unity::module_base()+0x3639b30usize)as*mut u8,();
29(DefaultMemberAttribute)__receiver,(::unity::Il2CppString)::core::convert::Into::into(member_name))
30        }
31    }
32    #[doc = "`get_MemberName()` overload"]
33    fn get_member_name(self) -> ::unity::Il2CppString {
34        unsafe {
35            let __receiver =
36                <DefaultMemberAttribute as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
37            ::unity::il2cpp_call!((::unity::module_base()+0x3639b70usize)as*mut u8, ::unity::Il2CppString;
38(DefaultMemberAttribute)__receiver)
39        }
40    }
41}
42
43#[cfg(feature = "system-reflection-defaultmemberattribute")]
44impl<__T: IDefaultMemberAttribute> IDefaultMemberAttributeMethods for __T {}
45
46#[cfg(feature = "system-reflection-defaultmemberattribute")]
47impl DefaultMemberAttribute {
48    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
49        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
50    }
51
52    pub fn get_member_name_method_info() -> &'static ::unity::il2cpp::MethodInfo {
53        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
54    }
55}
56
57#[cfg(feature = "system-reflection-defaultmemberattribute")]
58impl DefaultMemberAttribute {
59    #[doc = "`.ctor(::unity::Il2CppString)` — overload selector"]
60    pub fn new(member_name: ::unity::Il2CppString) -> Self {
61        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
62            panic!(
63                "{}
64::{}
65 failed to instantiate",
66                ::core::stringify!(DefaultMemberAttribute),
67                ::core::stringify!(new),
68            )
69        });
70        <Self as IDefaultMemberAttributeMethods>::ctor(this, member_name);
71        this
72    }
73}
74
75#[cfg(feature = "system-reflection-defaultmemberattribute")]
76#[doc(hidden)]
77pub mod prelude {
78    pub use super::{DefaultMemberAttribute, IDefaultMemberAttribute, IDefaultMemberAttributeMethods};
79}