Skip to main content

engage/generated/app/
structdataarray_1.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "app-structdataarray_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            structtemplate_1::{IStructTemplate_1, StructTemplate_1},
12        },
13        system::object::{IObject, Object},
14    };
15
16    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/structdataarray_1/StructDataArray_1.md"))]
17    #[::unity::class(namespace = "App", name = "StructDataArray`1")]
18    #[parent(crate::app::structtemplate_1::StructTemplate_1<T0>)]
19    #[parent(crate::app::structbase::StructBase)]
20    #[parent(crate::system::object::Object)]
21    pub struct StructDataArray_1<T0: ::unity::ClassIdentity> {
22        #[static_field]
23        #[rename(name = "s_arrayList")]
24        pub s_array_list: crate::app::structarraylist_1::StructArrayList_1<T0>,
25        #[static_field]
26        #[rename(name = "s_loaded")]
27        pub s_loaded: bool,
28    }
29}
30
31#[cfg(feature = "app-structdataarray_1-types")]
32pub use __types::*;
33
34#[cfg(feature = "app-structdataarray_1")]
35#[::unity::methods]
36impl<T0: ::unity::ClassIdentity> StructDataArray_1<T0> {
37    #[doc = "`get_ArrayName()` overload"]
38    #[method(name = "get_ArrayName", args = 0)]
39    pub fn get_array_name(self) -> ::unity::Il2CppString;
40
41    #[doc = "`set_ArrayName(::unity::Il2CppString)` overload"]
42    #[method(name = "set_ArrayName", args = 1)]
43    pub fn set_array_name(self, value: ::unity::Il2CppString) -> ();
44
45    #[doc = "`get_ArrayList()` overload"]
46    #[method(name = "get_ArrayList", args = 0)]
47    pub fn get_array_list() -> crate::app::structarraylist_1::StructArrayList_1<T0>;
48
49    #[doc = "`GetDebugName()` overload"]
50    #[method(name = "GetDebugName", args = 0)]
51    pub fn get_debug_name(self) -> ::unity::Il2CppString;
52
53    #[doc = "`Load(::unity::Il2CppString, ::unity::Il2CppString, crate::system::action::Action)` overload"]
54    #[method(name = "Load", args = 3)]
55    pub fn load(path: ::unity::Il2CppString, sheet_name: ::unity::Il2CppString, completed: crate::system::action::Action) -> ();
56
57    #[doc = "`Import(::unity::Array<u8>, ::unity::Il2CppString, ::unity::Il2CppString)` overload"]
58    #[method(name = "Import", args = 3)]
59    pub fn import(data: ::unity::Array<u8>, path: ::unity::Il2CppString, sheet_name: ::unity::Il2CppString) -> ();
60
61    #[doc = "`AddArrayList(crate::app::structdataarraylist_1::StructDataArrayList_1<T0>)` overload"]
62    #[method(name = "AddArrayList", args = 1)]
63    pub fn add_array_list(list: crate::app::structdataarraylist_1::StructDataArrayList_1<T0>) -> ();
64
65    #[doc = "`Completed()` overload"]
66    #[method(name = "Completed", args = 0)]
67    pub fn completed() -> ();
68
69    #[doc = "`Unload()` overload"]
70    #[method(name = "Unload", args = 0)]
71    pub fn unload() -> ();
72
73    #[doc = "`Get(::unity::Il2CppString)` overload"]
74    #[method(name = "Get", args = 1)]
75    pub fn get(name: ::unity::Il2CppString) -> crate::app::structdataarraylist_1::StructDataArrayList_1<T0>;
76
77    #[doc = "`Get(i32)` overload"]
78    #[method(name = "Get", args = 1)]
79    pub fn get_2(index: i32) -> crate::app::structdataarraylist_1::StructDataArrayList_1<T0>;
80
81    #[doc = "`TryGet(::unity::Il2CppString)` overload"]
82    #[method(name = "TryGet", args = 1)]
83    pub fn try_get(name: ::unity::Il2CppString) -> crate::app::structdataarraylist_1::StructDataArrayList_1<T0>;
84
85    #[doc = "`TryGet(i32)` overload"]
86    #[method(name = "TryGet", args = 1)]
87    pub fn try_get_2(index: i32) -> crate::app::structdataarraylist_1::StructDataArrayList_1<T0>;
88
89    #[doc = "`TryGetFromHash(i32)` overload"]
90    #[method(name = "TryGetFromHash", args = 1)]
91    pub fn try_get_from_hash(hash: i32) -> crate::app::structdataarraylist_1::StructDataArrayList_1<T0>;
92
93    #[doc = "`GetIndex(::unity::Il2CppString)` overload"]
94    #[method(name = "GetIndex", args = 1)]
95    pub fn get_index(name: ::unity::Il2CppString) -> i32;
96
97    #[doc = "`GetKey(i32)` overload"]
98    #[method(name = "GetKey", args = 1)]
99    pub fn get_key(index: i32) -> ::unity::Il2CppString;
100
101    #[doc = "`GetCount()` overload"]
102    #[method(name = "GetCount", args = 0)]
103    pub fn get_count() -> i32;
104
105    #[doc = "`GetList()` overload"]
106    #[method(name = "GetList", args = 0)]
107    pub fn get_list() -> crate::app::structarraylist_1::StructArrayList_1<T0>;
108
109    #[doc = "`.ctor()` overload"]
110    #[method(name = ".ctor", args = 0)]
111    pub fn ctor(self) -> ();
112
113    #[doc = "`.cctor()` overload"]
114    #[method(name = ".cctor", args = 0)]
115    pub fn cctor() -> ();
116}
117
118#[cfg(feature = "app-structdataarray_1")]
119impl<T0: ::unity::ClassIdentity> StructDataArray_1<T0> {
120    #[doc = "`.ctor()` — no args"]
121    pub fn new() -> Self {
122        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
123            panic!(
124                "{}
125::{}
126 failed to instantiate",
127                ::core::stringify!(StructDataArray_1),
128                ::core::stringify!(new),
129            )
130        });
131        <Self as IStructDataArray_1Methods<T0>>::ctor(this);
132        this
133    }
134}
135
136#[cfg(feature = "app-structdataarray_1")]
137#[doc(hidden)]
138pub mod prelude {
139    pub use super::{IStructDataArray_1, IStructDataArray_1Methods, StructDataArray_1};
140    #[cfg(feature = "app-structbase")]
141    pub use crate::app::structbase::IStructBaseMethods;
142    #[cfg(feature = "app-structtemplate_1")]
143    pub use crate::app::structtemplate_1::IStructTemplate_1Methods;
144    #[cfg(feature = "system-object")]
145    pub use crate::system::object::IObjectMethods;
146    pub use crate::{
147        app::{structbase::IStructBase, structtemplate_1::IStructTemplate_1},
148        system::object::IObject,
149    };
150}