Skip to main content

engage/generated/app/
mascotcolorchangeitemcontent.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "app-mascotcolorchangeitemcontent-types")]
4mod __types {
5    #[allow(unused_imports)] use ::unity::prelude::*;
6
7    use super::*;
8    use crate::{
9        system::object::{IObject, Object},
10        unity_engine::{
11            behaviour::{Behaviour, IBehaviour},
12            component::{Component, IComponent},
13            monobehaviour::{IMonoBehaviour, MonoBehaviour},
14            object_2::{IObject_2, Object_2},
15        },
16    };
17
18    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/mascotcolorchangeitemcontent/MascotColorChangeItemContent.md"))]
19    #[::unity::class(namespace = "App", name = "MascotColorChangeItemContent")]
20    #[parent(crate::unity_engine::monobehaviour::MonoBehaviour)]
21    pub struct MascotColorChangeItemContent {
22        #[offset(24)]
23        #[rename(name = "m_Check")]
24        pub m_check: crate::unity_engine::gameobject::GameObject,
25        #[offset(32)]
26        #[rename(name = "m_Frm")]
27        pub m_frm: crate::unity_engine::gameobject::GameObject,
28        #[offset(40)]
29        #[rename(name = "m_IsSelect")]
30        pub m_is_select: bool,
31        #[offset(41)]
32        #[rename(name = "m_IsCheck")]
33        pub m_is_check: bool,
34    }
35}
36
37#[cfg(feature = "app-mascotcolorchangeitemcontent-types")]
38pub use __types::*;
39
40#[cfg(feature = "app-mascotcolorchangeitemcontent")]
41pub trait IMascotColorChangeItemContentMethods: IMascotColorChangeItemContent {
42    #[doc = "`SetCheck(bool)` overload"]
43    fn set_check(self, value: impl ::core::convert::Into<bool>) -> () {
44        unsafe {
45            let __receiver =
46                <MascotColorChangeItemContent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
47            ::unity::il2cpp_call!((::unity::module_base()+0x2031d10usize)as*mut u8,();
48(MascotColorChangeItemContent)__receiver,(bool)::core::convert::Into::into(value))
49        }
50    }
51    #[doc = "`SetSelect(bool)` overload"]
52    fn set_select(self, value: impl ::core::convert::Into<bool>) -> () {
53        unsafe {
54            let __receiver =
55                <MascotColorChangeItemContent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
56            ::unity::il2cpp_call!((::unity::module_base()+0x2031d90usize)as*mut u8,();
57(MascotColorChangeItemContent)__receiver,(bool)::core::convert::Into::into(value))
58        }
59    }
60    #[doc = "`Awake()` overload"]
61    fn awake(self) -> () {
62        unsafe {
63            let __receiver =
64                <MascotColorChangeItemContent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
65            ::unity::il2cpp_call!((::unity::module_base()+0x2031da0usize)as*mut u8,();
66(MascotColorChangeItemContent)__receiver)
67        }
68    }
69    #[doc = "`Update()` overload"]
70    fn update(self) -> () {
71        unsafe {
72            let __receiver =
73                <MascotColorChangeItemContent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
74            ::unity::il2cpp_call!((::unity::module_base()+0x2031e90usize)as*mut u8,();
75(MascotColorChangeItemContent)__receiver)
76        }
77    }
78    #[doc = "`.ctor()` overload"]
79    fn ctor(self) -> () {
80        unsafe {
81            let __receiver =
82                <MascotColorChangeItemContent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
83            ::unity::il2cpp_call!((::unity::module_base()+0x2032020usize)as*mut u8,();
84(MascotColorChangeItemContent)__receiver)
85        }
86    }
87}
88
89#[cfg(feature = "app-mascotcolorchangeitemcontent")]
90impl<__T: IMascotColorChangeItemContent> IMascotColorChangeItemContentMethods for __T {}
91
92#[cfg(feature = "app-mascotcolorchangeitemcontent")]
93impl MascotColorChangeItemContent {
94    pub fn set_check_method_info() -> &'static ::unity::il2cpp::MethodInfo {
95        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
96    }
97
98    pub fn set_select_method_info() -> &'static ::unity::il2cpp::MethodInfo {
99        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
100    }
101
102    pub fn awake_method_info() -> &'static ::unity::il2cpp::MethodInfo {
103        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
104    }
105
106    pub fn update_method_info() -> &'static ::unity::il2cpp::MethodInfo {
107        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
108    }
109
110    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
111        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
112    }
113}
114
115#[cfg(feature = "app-mascotcolorchangeitemcontent")]
116impl MascotColorChangeItemContent {
117    #[doc = "`.ctor()` — no args"]
118    pub fn new() -> Self {
119        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
120            panic!(
121                "{}
122::{}
123 failed to instantiate",
124                ::core::stringify!(MascotColorChangeItemContent),
125                ::core::stringify!(new),
126            )
127        });
128        <Self as IMascotColorChangeItemContentMethods>::ctor(this);
129        this
130    }
131}
132
133#[cfg(feature = "app-mascotcolorchangeitemcontent")]
134#[doc(hidden)]
135pub mod prelude {
136    pub use super::{IMascotColorChangeItemContent, IMascotColorChangeItemContentMethods, MascotColorChangeItemContent};
137    #[cfg(feature = "system-object")]
138    pub use crate::system::object::IObjectMethods;
139    #[cfg(feature = "unity_engine-behaviour")]
140    pub use crate::unity_engine::behaviour::IBehaviourMethods;
141    #[cfg(feature = "unity_engine-component")]
142    pub use crate::unity_engine::component::IComponentMethods;
143    #[cfg(feature = "unity_engine-monobehaviour")]
144    pub use crate::unity_engine::monobehaviour::IMonoBehaviourMethods;
145    #[cfg(feature = "unity_engine-object_2")]
146    pub use crate::unity_engine::object_2::IObject_2Methods;
147    pub use crate::{
148        system::object::IObject,
149        unity_engine::{behaviour::IBehaviour, component::IComponent, monobehaviour::IMonoBehaviour, object_2::IObject_2},
150    };
151}