Skip to main content

engage/generated/app/
shopdatabase_1.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "app-shopdatabase_1-types")]
4mod __types {
5    #[allow(unused_imports)] use ::unity::prelude::*;
6
7    use super::*;
8    use crate::{
9        app::{
10            structbase::{IStructBase, StructBase},
11            structdataarray_1::{IStructDataArray_1, StructDataArray_1},
12            structtemplate_1::{IStructTemplate_1, StructTemplate_1},
13        },
14        system::{
15            delegate::{Delegate, IDelegate},
16            multicastdelegate::{IMulticastDelegate, MulticastDelegate},
17            object::{IObject, Object},
18            r#enum::{Enum, IEnum},
19            valuetype::{IValueType, ValueType},
20        },
21    };
22
23    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/shopdatabase_1/ShopDataBase_1.md"))]
24    #[::unity::class(namespace = "App", name = "ShopDataBase`1")]
25    #[parent(crate::app::structdataarray_1::StructDataArray_1<T0>)]
26    #[parent(crate::app::structtemplate_1::StructTemplate_1<T0>)]
27    #[parent(crate::app::structbase::StructBase)]
28    #[parent(crate::system::object::Object)]
29    pub struct ShopDataBase_1<T0: ::unity::ClassIdentity> {
30        #[static_field]
31        #[rename(name = "Infinity")]
32        pub infinity: i32,
33        #[static_field]
34        #[rename(name = "m_RandomGiftList")]
35        pub m_random_gift_list: crate::system::collections::generic::list_1::List_1<crate::app::itemdata::ItemData>,
36    }
37
38    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/shopdatabase_1/ShopDataBase_1_GetStockAddedKeyFunc.md"))]
39    #[::unity::class(namespace = "App", name = "ShopDataBase`1.GetStockAddedKeyFunc")]
40    #[parent(crate::system::multicastdelegate::MulticastDelegate)]
41    #[parent(crate::system::delegate::Delegate)]
42    #[parent(crate::system::object::Object)]
43    pub struct ShopDataBase_1_GetStockAddedKeyFunc<T0: ::unity::ClassIdentity> {}
44
45    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/shopdatabase_1/ShopDataBase_1_GetStockKeyFunc.md"))]
46    #[::unity::class(namespace = "App", name = "ShopDataBase`1.GetStockKeyFunc")]
47    #[parent(crate::system::multicastdelegate::MulticastDelegate)]
48    #[parent(crate::system::delegate::Delegate)]
49    #[parent(crate::system::object::Object)]
50    pub struct ShopDataBase_1_GetStockKeyFunc<T0: ::unity::ClassIdentity> {}
51
52    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/shopdatabase_1/ShopDataBase_1_AttributeType.md"))]
53    #[repr(C)]
54    #[derive(::core::clone::Clone, ::core::marker::Copy, ::core::fmt::Debug, ::core::cmp::PartialEq, ::core::cmp::Eq)]
55    pub struct ShopDataBase_1_AttributeType<T0: ::unity::ClassIdentity> {
56        pub value: i32,
57        pub _phantom: ::core::marker::PhantomData<(T0)>,
58    }
59    impl<T0: ::unity::ClassIdentity> ::unity::ClassIdentity for ShopDataBase_1_AttributeType<T0> {
60        const NAME: &'static str = "ShopDataBase`1.AttributeType";
61        const NAMESPACE: &'static str = "App";
62
63        fn class() -> ::unity::Class {
64            static CACHE: ::std::sync::OnceLock<::unity::Class> = ::std::sync::OnceLock::new();
65            *CACHE.get_or_init(|| ::unity::Class::lookup(Self::NAMESPACE, Self::NAME))
66        }
67    }
68    impl<T0: ::unity::ClassIdentity> ::unity::IlType for ShopDataBase_1_AttributeType<T0> {
69        fn il_type() -> &'static ::unity::il2cpp::Il2CppType {
70            &<Self as ::unity::ClassIdentity>::class().raw()._1.byval_arg
71        }
72    }
73    impl<T0: ::unity::ClassIdentity> ShopDataBase_1_AttributeType<T0> {
74        pub fn none() -> Self {
75            Self {
76                value: 0,
77                _phantom: ::core::marker::PhantomData,
78            }
79        }
80
81        pub fn random_gift() -> Self {
82            Self {
83                value: 1,
84                _phantom: ::core::marker::PhantomData,
85            }
86        }
87    }
88}
89
90#[cfg(feature = "app-shopdatabase_1-types")]
91pub use __types::*;
92
93#[cfg(feature = "app-shopdatabase_1")]
94#[::unity::methods]
95impl<T0: ::unity::ClassIdentity> ShopDataBase_1<T0> {
96    #[doc = "`Load()` overload"]
97    #[method(name = "Load", args = 0)]
98    pub fn load() -> ();
99
100    #[doc = "`get_Iid()` overload"]
101    #[method(name = "get_Iid", args = 0)]
102    pub fn get_iid(self) -> ::unity::Il2CppString;
103
104    #[doc = "`set_Iid(::unity::Il2CppString)` overload"]
105    #[method(name = "set_Iid", args = 1)]
106    pub fn set_iid(self, value: ::unity::Il2CppString) -> ();
107
108    #[doc = "`get_Stock()` overload"]
109    #[method(name = "get_Stock", args = 0)]
110    pub fn get_stock(self) -> i32;
111
112    #[doc = "`set_Stock(i32)` overload"]
113    #[method(name = "set_Stock", args = 1)]
114    pub fn set_stock(self, value: i32) -> ();
115
116    #[doc = "`get_Attribute()` overload"]
117    #[method(name = "get_Attribute", args = 0)]
118    pub fn get_attribute(self) -> i32;
119
120    #[doc = "`set_Attribute(i32)` overload"]
121    #[method(name = "set_Attribute", args = 1)]
122    pub fn set_attribute(self, value: i32) -> ();
123
124    #[doc = "`GetWithoutPrefix(::unity::Il2CppString)` overload"]
125    #[method(name = "GetWithoutPrefix", args = 1)]
126    pub fn get_without_prefix(iid: ::unity::Il2CppString) -> ::unity::Il2CppString;
127
128    #[doc = "`OnBuild()` overload"]
129    #[method(name = "OnBuild", args = 0)]
130    pub fn on_build(self) -> ();
131
132    #[doc = "`RegistImpl(crate::app::shopdatabase_1::ShopDataBase_1_GetStockAddedKeyFunc<T0>, crate::app::shopdatabase_1::ShopDataBase_1_GetStockKeyFunc<T0>)` overload"]
133    #[method(name = "RegistImpl", args = 2)]
134    pub fn regist_impl(
135        get_stock_added_key: crate::app::shopdatabase_1::ShopDataBase_1_GetStockAddedKeyFunc<T0>,
136        get_stock_key: crate::app::shopdatabase_1::ShopDataBase_1_GetStockKeyFunc<T0>,
137    ) -> ();
138
139    #[doc = "`SetupContentListImpl(crate::app::shopdatabase_1::ShopDataBase_1_GetStockAddedKeyFunc<T0>, crate::app::shopdatabase_1::ShopDataBase_1_GetStockKeyFunc<T0>)` overload"]
140    #[method(name = "SetupContentListImpl", args = 2)]
141    pub fn setup_content_list_impl(
142        get_stock_added_key: crate::app::shopdatabase_1::ShopDataBase_1_GetStockAddedKeyFunc<T0>,
143        get_stock_key: crate::app::shopdatabase_1::ShopDataBase_1_GetStockKeyFunc<T0>,
144    ) -> ::unity::Array<crate::app::shopcontent::ShopContent>;
145
146    #[doc = "`IsExistAdditionalStockImpl(crate::app::shopdatabase_1::ShopDataBase_1_GetStockAddedKeyFunc<T0>, crate::app::shopdatabase_1::ShopDataBase_1_GetStockKeyFunc<T0>)` overload"]
147    #[method(name = "IsExistAdditionalStockImpl", args = 2)]
148    pub fn is_exist_additional_stock_impl(
149        get_stock_added_key: crate::app::shopdatabase_1::ShopDataBase_1_GetStockAddedKeyFunc<T0>,
150        get_stock_key: crate::app::shopdatabase_1::ShopDataBase_1_GetStockKeyFunc<T0>,
151    ) -> bool;
152
153    #[doc = "`PurchaseImpl(::unity::Il2CppString, i32, crate::app::shopdatabase_1::ShopDataBase_1_GetStockAddedKeyFunc<T0>, crate::app::shopdatabase_1::ShopDataBase_1_GetStockKeyFunc<T0>)` overload"]
154    #[method(name = "PurchaseImpl", args = 4)]
155    pub fn purchase_impl(
156        iid: ::unity::Il2CppString,
157        value: i32,
158        get_stock_added_key: crate::app::shopdatabase_1::ShopDataBase_1_GetStockAddedKeyFunc<T0>,
159        get_stock_key: crate::app::shopdatabase_1::ShopDataBase_1_GetStockKeyFunc<T0>,
160    ) -> ();
161
162    #[doc = "`GetStockNumImpl(::unity::Il2CppString, crate::app::shopdatabase_1::ShopDataBase_1_GetStockKeyFunc<T0>)` overload"]
163    #[method(name = "GetStockNumImpl", args = 2)]
164    pub fn get_stock_num_impl(iid: ::unity::Il2CppString, get_stock_key: crate::app::shopdatabase_1::ShopDataBase_1_GetStockKeyFunc<T0>) -> i32;
165
166    #[doc = "`IsInfinityImpl(::unity::Il2CppString, crate::app::shopdatabase_1::ShopDataBase_1_GetStockKeyFunc<T0>)` overload"]
167    #[method(name = "IsInfinityImpl", args = 2)]
168    pub fn is_infinity_impl(iid: ::unity::Il2CppString, get_stock_key: crate::app::shopdatabase_1::ShopDataBase_1_GetStockKeyFunc<T0>) -> bool;
169
170    #[doc = "`SetRandomGift(crate::system::collections::generic::list_1::List_1<::unity::Il2CppString>)` overload"]
171    #[method(name = "SetRandomGift", args = 1)]
172    pub fn set_random_gift(iid_list: crate::system::collections::generic::list_1::List_1<::unity::Il2CppString>) -> ();
173
174    #[doc = "`GenerateRandomGift(i32)` overload"]
175    #[method(name = "GenerateRandomGift", args = 1)]
176    pub fn generate_random_gift(count: i32) -> crate::system::collections::generic::list_1::List_1<crate::app::itemdata::ItemData>;
177
178    #[doc = "`.ctor()` overload"]
179    #[method(name = ".ctor", args = 0)]
180    pub fn ctor(self) -> ();
181
182    #[doc = "`.cctor()` overload"]
183    #[method(name = ".cctor", args = 0)]
184    pub fn cctor() -> ();
185}
186
187#[cfg(feature = "app-shopdatabase_1")]
188impl<T0: ::unity::ClassIdentity> ShopDataBase_1<T0> {
189    #[doc = "`.ctor()` — no args"]
190    pub fn new() -> Self {
191        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
192            panic!(
193                "{}
194::{}
195 failed to instantiate",
196                ::core::stringify!(ShopDataBase_1),
197                ::core::stringify!(new),
198            )
199        });
200        <Self as IShopDataBase_1Methods<T0>>::ctor(this);
201        this
202    }
203}
204
205#[cfg(feature = "app-shopdatabase_1")]
206#[::unity::methods]
207impl<T0: ::unity::ClassIdentity> ShopDataBase_1_GetStockAddedKeyFunc<T0> {
208    #[doc = "`.ctor(crate::system::object::Object, ::unity::IntPtr)` overload"]
209    #[method(name = ".ctor", args = 2)]
210    pub fn ctor(self, object: crate::system::object::Object, method: ::unity::IntPtr) -> ();
211
212    #[doc = "`Invoke(::unity::Il2CppString)` overload"]
213    #[method(name = "Invoke", args = 1)]
214    pub fn invoke(self, condition: ::unity::Il2CppString) -> ::unity::Il2CppString;
215}
216
217#[cfg(feature = "app-shopdatabase_1")]
218impl<T0: ::unity::ClassIdentity> ShopDataBase_1_GetStockAddedKeyFunc<T0> {
219    #[doc = "`.ctor(crate::system::object::Object, ::unity::IntPtr)` — overload selector"]
220    pub fn new(object: crate::system::object::Object, method: ::unity::IntPtr) -> Self {
221        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
222            panic!(
223                "{}
224::{}
225 failed to instantiate",
226                ::core::stringify!(ShopDataBase_1_GetStockAddedKeyFunc),
227                ::core::stringify!(new),
228            )
229        });
230        <Self as IShopDataBase_1_GetStockAddedKeyFuncMethods<T0>>::ctor(this, object, method);
231        this
232    }
233}
234
235#[cfg(feature = "app-shopdatabase_1")]
236#[::unity::methods]
237impl<T0: ::unity::ClassIdentity> ShopDataBase_1_GetStockKeyFunc<T0> {
238    #[doc = "`.ctor(crate::system::object::Object, ::unity::IntPtr)` overload"]
239    #[method(name = ".ctor", args = 2)]
240    pub fn ctor(self, object: crate::system::object::Object, method: ::unity::IntPtr) -> ();
241
242    #[doc = "`Invoke(::unity::Il2CppString)` overload"]
243    #[method(name = "Invoke", args = 1)]
244    pub fn invoke(self, condition: ::unity::Il2CppString) -> ::unity::Il2CppString;
245}
246
247#[cfg(feature = "app-shopdatabase_1")]
248impl<T0: ::unity::ClassIdentity> ShopDataBase_1_GetStockKeyFunc<T0> {
249    #[doc = "`.ctor(crate::system::object::Object, ::unity::IntPtr)` — overload selector"]
250    pub fn new(object: crate::system::object::Object, method: ::unity::IntPtr) -> Self {
251        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
252            panic!(
253                "{}
254::{}
255 failed to instantiate",
256                ::core::stringify!(ShopDataBase_1_GetStockKeyFunc),
257                ::core::stringify!(new),
258            )
259        });
260        <Self as IShopDataBase_1_GetStockKeyFuncMethods<T0>>::ctor(this, object, method);
261        this
262    }
263}
264
265#[cfg(feature = "app-shopdatabase_1")]
266#[doc(hidden)]
267pub mod prelude {
268    pub use super::{
269        IShopDataBase_1, IShopDataBase_1Methods, IShopDataBase_1_GetStockAddedKeyFunc, IShopDataBase_1_GetStockAddedKeyFuncMethods,
270        IShopDataBase_1_GetStockKeyFunc, IShopDataBase_1_GetStockKeyFuncMethods, ShopDataBase_1, ShopDataBase_1_AttributeType,
271        ShopDataBase_1_GetStockAddedKeyFunc, ShopDataBase_1_GetStockKeyFunc,
272    };
273    #[cfg(feature = "app-structbase")]
274    pub use crate::app::structbase::IStructBaseMethods;
275    #[cfg(feature = "app-structdataarray_1")]
276    pub use crate::app::structdataarray_1::IStructDataArray_1Methods;
277    #[cfg(feature = "app-structtemplate_1")]
278    pub use crate::app::structtemplate_1::IStructTemplate_1Methods;
279    #[cfg(feature = "system-delegate")]
280    pub use crate::system::delegate::IDelegateMethods;
281    #[cfg(feature = "system-multicastdelegate")]
282    pub use crate::system::multicastdelegate::IMulticastDelegateMethods;
283    #[cfg(feature = "system-object")]
284    pub use crate::system::object::IObjectMethods;
285    #[cfg(feature = "system-enum")]
286    pub use crate::system::r#enum::IEnumMethods;
287    #[cfg(feature = "system-valuetype")]
288    pub use crate::system::valuetype::IValueTypeMethods;
289    pub use crate::{
290        app::{structbase::IStructBase, structdataarray_1::IStructDataArray_1, structtemplate_1::IStructTemplate_1},
291        system::{delegate::IDelegate, multicastdelegate::IMulticastDelegate, object::IObject, r#enum::IEnum, valuetype::IValueType},
292    };
293}