Skip to main content

engage/generated/app/
mascotcolordata.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "app-mascotcolordata-types")]
4mod __types {
5    #[allow(unused_imports)] use ::unity::prelude::*;
6
7    use super::*;
8    use crate::{
9        app::{
10            structbase::{IStructBase, StructBase},
11            structdata_1::{IStructData_1, StructData_1},
12            structtemplate_1::{IStructTemplate_1, StructTemplate_1},
13        },
14        system::object::{IObject, Object},
15    };
16
17    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/mascotcolordata/MascotColorData.md"))]
18    #[::unity::class(namespace = "App", name = "MascotColorData")]
19    #[parent(crate::app::structdata_1::StructData_1<crate::app::mascotcolordata::MascotColorData>)]
20    pub struct MascotColorData {
21        #[offset(44)]
22        #[rename(name = "MaskColor075")]
23        pub mask_color075: crate::unity_engine::color::Color,
24    }
25}
26
27#[cfg(feature = "app-mascotcolordata-types")]
28pub use __types::*;
29
30#[cfg(feature = "app-mascotcolordata")]
31impl MascotColorData {
32    #[doc = "`Load()` overload"]
33    pub fn load() -> () {
34        unsafe {
35            ::unity::il2cpp_call!((::unity::module_base()+0x2034c50usize)as*mut u8,();
36            )
37        }
38    }
39}
40
41#[cfg(feature = "app-mascotcolordata")]
42pub trait IMascotColorDataMethods: IMascotColorData {
43    #[doc = "`get_R()` overload"]
44    fn get_r(self) -> i32 {
45        unsafe {
46            let __receiver = <MascotColorData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
47            ::unity::il2cpp_call!((::unity::module_base()+0x2034d00usize)as*mut u8,i32;
48(MascotColorData)__receiver)
49        }
50    }
51    #[doc = "`set_R(i32)` overload"]
52    fn set_r(self, value: impl ::core::convert::Into<i32>) -> () {
53        unsafe {
54            let __receiver = <MascotColorData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
55            ::unity::il2cpp_call!((::unity::module_base()+0x2034d10usize)as*mut u8,();
56(MascotColorData)__receiver,(i32)::core::convert::Into::into(value))
57        }
58    }
59    #[doc = "`get_G()` overload"]
60    fn get_g(self) -> i32 {
61        unsafe {
62            let __receiver = <MascotColorData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
63            ::unity::il2cpp_call!((::unity::module_base()+0x2034d20usize)as*mut u8,i32;
64(MascotColorData)__receiver)
65        }
66    }
67    #[doc = "`set_G(i32)` overload"]
68    fn set_g(self, value: impl ::core::convert::Into<i32>) -> () {
69        unsafe {
70            let __receiver = <MascotColorData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
71            ::unity::il2cpp_call!((::unity::module_base()+0x2034d30usize)as*mut u8,();
72(MascotColorData)__receiver,(i32)::core::convert::Into::into(value))
73        }
74    }
75    #[doc = "`get_B()` overload"]
76    fn get_b(self) -> i32 {
77        unsafe {
78            let __receiver = <MascotColorData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
79            ::unity::il2cpp_call!((::unity::module_base()+0x2034d40usize)as*mut u8,i32;
80(MascotColorData)__receiver)
81        }
82    }
83    #[doc = "`set_B(i32)` overload"]
84    fn set_b(self, value: impl ::core::convert::Into<i32>) -> () {
85        unsafe {
86            let __receiver = <MascotColorData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
87            ::unity::il2cpp_call!((::unity::module_base()+0x2034d50usize)as*mut u8,();
88(MascotColorData)__receiver,(i32)::core::convert::Into::into(value))
89        }
90    }
91    #[doc = "`OnBuild()` overload"]
92    fn on_build(self) -> () {
93        unsafe {
94            let __receiver = <MascotColorData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
95            {
96                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
97                let __vi = *__vt.get(4usize).unwrap_or_else(|| {
98                    panic!(
99                        "unity: virtual slot {}
100 out of range (vtable len {}
101) on the runtime class behind {}
102 (method `{}
103`)",
104                        4usize,
105                        __vt.len(),
106                        <MascotColorData as ::unity::ClassIdentity>::NAME,
107                        "OnBuild",
108                    )
109                });
110                let __inner: extern "C" fn(MascotColorData, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
111                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
112                __inner(__receiver, __mi)
113            }
114        }
115    }
116    #[doc = "`.ctor()` overload"]
117    fn ctor(self) -> () {
118        unsafe {
119            let __receiver = <MascotColorData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
120            ::unity::il2cpp_call!((::unity::module_base()+0x2034dd0usize)as*mut u8,();
121(MascotColorData)__receiver)
122        }
123    }
124}
125
126#[cfg(feature = "app-mascotcolordata")]
127impl<__T: IMascotColorData> IMascotColorDataMethods for __T {}
128
129#[cfg(feature = "app-mascotcolordata")]
130impl MascotColorData {
131    pub fn load_method_info() -> &'static ::unity::il2cpp::MethodInfo {
132        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
133    }
134
135    pub fn get_r_method_info() -> &'static ::unity::il2cpp::MethodInfo {
136        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
137    }
138
139    pub fn set_r_method_info() -> &'static ::unity::il2cpp::MethodInfo {
140        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
141    }
142
143    pub fn get_g_method_info() -> &'static ::unity::il2cpp::MethodInfo {
144        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
145    }
146
147    pub fn set_g_method_info() -> &'static ::unity::il2cpp::MethodInfo {
148        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
149    }
150
151    pub fn get_b_method_info() -> &'static ::unity::il2cpp::MethodInfo {
152        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
153    }
154
155    pub fn set_b_method_info() -> &'static ::unity::il2cpp::MethodInfo {
156        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
157    }
158
159    pub fn on_build_method_info() -> &'static ::unity::il2cpp::MethodInfo {
160        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
161    }
162
163    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
164        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
165    }
166}
167
168#[cfg(feature = "app-mascotcolordata")]
169impl MascotColorData {
170    #[doc = "Direct (non-virtual) call to `MascotColorData`'s own `OnBuild`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
171    pub unsafe fn on_build(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
172        let __mi = Self::on_build_method_info();
173        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
174        __inner(this.into(), ::core::option::Option::None)
175    }
176}
177
178#[cfg(feature = "app-mascotcolordata")]
179impl MascotColorData {
180    #[doc = "`.ctor()` — no args"]
181    pub fn new() -> Self {
182        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
183            panic!(
184                "{}
185::{}
186 failed to instantiate",
187                ::core::stringify!(MascotColorData),
188                ::core::stringify!(new),
189            )
190        });
191        <Self as IMascotColorDataMethods>::ctor(this);
192        this
193    }
194}
195
196#[cfg(feature = "app-mascotcolordata")]
197#[doc(hidden)]
198pub mod prelude {
199    pub use super::{IMascotColorData, IMascotColorDataMethods, MascotColorData};
200    #[cfg(feature = "app-structbase")]
201    pub use crate::app::structbase::IStructBaseMethods;
202    #[cfg(feature = "app-structdata_1")]
203    pub use crate::app::structdata_1::IStructData_1Methods;
204    #[cfg(feature = "app-structtemplate_1")]
205    pub use crate::app::structtemplate_1::IStructTemplate_1Methods;
206    #[cfg(feature = "system-object")]
207    pub use crate::system::object::IObjectMethods;
208    pub use crate::{
209        app::{structbase::IStructBase, structdata_1::IStructData_1, structtemplate_1::IStructTemplate_1},
210        system::object::IObject,
211    };
212}