engage/generated/app/
shopcontent.rs1#[cfg(feature = "app-shopcontent-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/app/shopcontent/ShopContent.md"))]
11 #[::unity::class(namespace = "App", name = "ShopContent")]
12 #[parent(crate::system::object::Object)]
13 pub struct ShopContent {
14 #[offset(16)]
15 #[rename(name = "m_Iid")]
16 pub m_iid: ::unity::Il2CppString,
17 #[offset(24)]
18 #[rename(name = "m_StockNum")]
19 pub m_stock_num: i32,
20 #[offset(28)]
21 #[rename(name = "m_NewArrival")]
22 pub m_new_arrival: bool,
23 }
24}
25
26#[cfg(feature = "app-shopcontent-types")]
27pub use __types::*;
28
29#[cfg(feature = "app-shopcontent")]
30pub trait IShopContentMethods: IShopContent {
31 #[doc = "`.ctor()` overload"]
32 fn ctor(self) -> () {
33 unsafe {
34 let __receiver = <ShopContent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
35 ::unity::il2cpp_call!((::unity::module_base()+0x21ae6f0usize)as*mut u8,();
36(ShopContent)__receiver)
37 }
38 }
39}
40
41#[cfg(feature = "app-shopcontent")]
42impl<__T: IShopContent> IShopContentMethods for __T {}
43
44#[cfg(feature = "app-shopcontent")]
45impl ShopContent {
46 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
47 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
48 }
49}
50
51#[cfg(feature = "app-shopcontent")]
52impl ShopContent {
53 #[doc = "`.ctor()` — no args"]
54 pub fn new() -> Self {
55 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
56 panic!(
57 "{}
58::{}
59 failed to instantiate",
60 ::core::stringify!(ShopContent),
61 ::core::stringify!(new),
62 )
63 });
64 <Self as IShopContentMethods>::ctor(this);
65 this
66 }
67}
68
69#[cfg(feature = "app-shopcontent")]
70#[doc(hidden)]
71pub mod prelude {
72 pub use super::{IShopContent, IShopContentMethods, ShopContent};
73 pub use crate::system::object::IObject;
74 #[cfg(feature = "system-object")]
75 pub use crate::system::object::IObjectMethods;
76}