Skip to main content

engage/generated/app/struct_object/
basedata_3.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "app-struct_object-basedata_3-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            object_2::{IObject_2, Object_2},
12            scriptableobject::{IScriptableObject, ScriptableObject},
13        },
14    };
15
16    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/struct_object/basedata_3/BaseData_3.md"))]
17    #[::unity::class(namespace = "App.StructObject", name = "BaseData`3")]
18    #[parent(crate::unity_engine::scriptableobject::ScriptableObject)]
19    #[parent(crate::unity_engine::object_2::Object_2)]
20    #[parent(crate::system::object::Object)]
21    pub struct BaseData_3<T0: ::unity::ClassIdentity, T1: ::unity::ClassIdentity, T2: ::unity::ClassIdentity> {
22        #[static_field]
23        #[rename(name = "instance")]
24        pub instance: T0,
25        #[rename(name = "IndexKey")]
26        pub index_key: crate::system::collections::generic::dictionary_2::Dictionary_2<::unity::Il2CppString, i32>,
27        #[rename(name = "Items")]
28        pub items: crate::system::collections::generic::list_1::List_1<T1>,
29        #[rename(name = "MinItem")]
30        pub min_item_field: T2,
31        #[rename(name = "MaxItem")]
32        pub max_item_field: T2,
33        #[rename(name = "ChgItem")]
34        pub chg_item_field: T2,
35    }
36}
37
38#[cfg(feature = "app-struct_object-basedata_3-types")]
39pub use __types::*;
40
41#[cfg(feature = "app-struct_object-basedata_3")]
42#[::unity::methods]
43impl<T0: ::unity::ClassIdentity, T1: ::unity::ClassIdentity, T2: ::unity::ClassIdentity> BaseData_3<T0, T1, T2> {
44    #[doc = "`Load(::unity::Il2CppString)` overload"]
45    #[method(name = "Load", args = 1)]
46    pub fn load(path: ::unity::Il2CppString) -> i32;
47
48    #[doc = "`Unload()` overload"]
49    #[method(name = "Unload", args = 0)]
50    pub fn unload() -> ();
51
52    #[doc = "`Setup()` overload"]
53    #[method(name = "Setup", args = 0)]
54    pub fn setup(self) -> ();
55
56    #[doc = "`Cleanup()` overload"]
57    #[method(name = "Cleanup", args = 0)]
58    pub fn cleanup(self) -> ();
59
60    #[doc = "`AddItem(T1)` overload"]
61    #[method(name = "AddItem", args = 1)]
62    pub fn add_item(self, item: T1) -> ();
63
64    #[doc = "`SetMaxItem(T2)` overload"]
65    #[method(name = "SetMaxItem", args = 1)]
66    pub fn set_max_item(self, piece: T2) -> ();
67
68    #[doc = "`SetMinItem(T2)` overload"]
69    #[method(name = "SetMinItem", args = 1)]
70    pub fn set_min_item(self, piece: T2) -> ();
71
72    #[doc = "`SetChgItem(T2)` overload"]
73    #[method(name = "SetChgItem", args = 1)]
74    pub fn set_chg_item(self, piece: T2) -> ();
75
76    #[doc = "`CreateDictionary()` overload"]
77    #[method(name = "CreateDictionary", args = 0)]
78    pub fn create_dictionary(self) -> ();
79
80    #[doc = "`Clear()` overload"]
81    #[method(name = "Clear", args = 0)]
82    pub fn clear(self) -> ();
83
84    #[doc = "`GetIndex(::unity::Il2CppString)` overload"]
85    #[method(name = "GetIndex", args = 1)]
86    pub fn get_index(name: ::unity::Il2CppString) -> i32;
87
88    #[doc = "`GetKey(i32)` overload"]
89    #[method(name = "GetKey", args = 1)]
90    pub fn get_key(index: i32) -> ::unity::Il2CppString;
91
92    #[doc = "`Get(i32)` overload"]
93    #[method(name = "Get", args = 1)]
94    pub fn get(index: i32) -> T1;
95
96    #[doc = "`Get(::unity::Il2CppString)` overload"]
97    #[method(name = "Get", args = 1)]
98    pub fn get_2(name: ::unity::Il2CppString) -> T1;
99
100    #[doc = "`TryGet(i32)` overload"]
101    #[method(name = "TryGet", args = 1)]
102    pub fn try_get(index: i32) -> T1;
103
104    #[doc = "`TryGet(::unity::Il2CppString)` overload"]
105    #[method(name = "TryGet", args = 1)]
106    pub fn try_get_2(name: ::unity::Il2CppString) -> T1;
107
108    #[doc = "`GetItemCount()` overload"]
109    #[method(name = "GetItemCount", args = 0)]
110    pub fn get_item_count() -> i32;
111
112    #[doc = "`GetItemList()` overload"]
113    #[method(name = "GetItemList", args = 0)]
114    pub fn get_item_list() -> crate::system::collections::generic::list_1::List_1<T1>;
115
116    #[doc = "`.ctor()` overload"]
117    #[method(name = ".ctor", args = 0)]
118    pub fn ctor(self) -> ();
119
120    #[doc = "`.cctor()` overload"]
121    #[method(name = ".cctor", args = 0)]
122    pub fn cctor() -> ();
123}
124
125#[cfg(feature = "app-struct_object-basedata_3")]
126impl<T0: ::unity::ClassIdentity, T1: ::unity::ClassIdentity, T2: ::unity::ClassIdentity> BaseData_3<T0, T1, T2> {
127    #[doc = "`.ctor()` — no args"]
128    pub fn new() -> Self {
129        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
130            panic!(
131                "{}
132::{}
133 failed to instantiate",
134                ::core::stringify!(BaseData_3),
135                ::core::stringify!(new),
136            )
137        });
138        <Self as IBaseData_3Methods<T0, T1, T2>>::ctor(this);
139        this
140    }
141}
142
143#[cfg(feature = "app-struct_object-basedata_3")]
144#[doc(hidden)]
145pub mod prelude {
146    pub use super::{BaseData_3, IBaseData_3, IBaseData_3Methods};
147    #[cfg(feature = "system-object")]
148    pub use crate::system::object::IObjectMethods;
149    #[cfg(feature = "unity_engine-object_2")]
150    pub use crate::unity_engine::object_2::IObject_2Methods;
151    #[cfg(feature = "unity_engine-scriptableobject")]
152    pub use crate::unity_engine::scriptableobject::IScriptableObjectMethods;
153    pub use crate::{
154        system::object::IObject,
155        unity_engine::{object_2::IObject_2, scriptableobject::IScriptableObject},
156    };
157}