1#[cfg(feature = "app-structdata_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::{
14 delegate::{Delegate, IDelegate},
15 multicastdelegate::{IMulticastDelegate, MulticastDelegate},
16 object::{IObject, Object},
17 },
18 };
19
20 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/structdata_1/StructData_1_EachFuncVoid.md"))]
21 #[::unity::class(namespace = "App", name = "StructData`1.EachFuncVoid")]
22 #[parent(crate::system::multicastdelegate::MulticastDelegate)]
23 #[parent(crate::system::delegate::Delegate)]
24 #[parent(crate::system::object::Object)]
25 pub struct StructData_1_EachFuncVoid<T0: ::unity::ClassIdentity> {}
26
27 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/structdata_1/StructData_1.md"))]
28 #[::unity::class(namespace = "App", name = "StructData`1")]
29 #[parent(crate::app::structtemplate_1::StructTemplate_1<T0>)]
30 #[parent(crate::app::structbase::StructBase)]
31 #[parent(crate::system::object::Object)]
32 pub struct StructData_1<T0: ::unity::ClassIdentity> {
33 #[static_field]
34 #[rename(name = "s_list")]
35 pub s_list: crate::app::structlist_1::StructList_1<T0>,
36 #[static_field]
37 #[rename(name = "s_loaded")]
38 pub s_loaded: bool,
39 }
40
41 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/structdata_1/StructData_1_EachFuncBool.md"))]
42 #[::unity::class(namespace = "App", name = "StructData`1.EachFuncBool")]
43 #[parent(crate::system::multicastdelegate::MulticastDelegate)]
44 #[parent(crate::system::delegate::Delegate)]
45 #[parent(crate::system::object::Object)]
46 pub struct StructData_1_EachFuncBool<T0: ::unity::ClassIdentity> {}
47}
48
49#[cfg(feature = "app-structdata_1-types")]
50pub use __types::*;
51
52#[cfg(feature = "app-structdata_1")]
53#[::unity::methods]
54impl<T0: ::unity::ClassIdentity> StructData_1_EachFuncVoid<T0> {
55 #[doc = "`.ctor(crate::system::object::Object, ::unity::IntPtr)` overload"]
56 #[method(name = ".ctor", args = 2)]
57 pub fn ctor(self, object: crate::system::object::Object, method: ::unity::IntPtr) -> ();
58
59 #[doc = "`Invoke(T0)` overload"]
60 #[method(name = "Invoke", args = 1)]
61 pub fn invoke(self, data: T0) -> ();
62}
63
64#[cfg(feature = "app-structdata_1")]
65impl<T0: ::unity::ClassIdentity> StructData_1_EachFuncVoid<T0> {
66 #[doc = "`.ctor(crate::system::object::Object, ::unity::IntPtr)` — overload selector"]
67 pub fn new(object: crate::system::object::Object, method: ::unity::IntPtr) -> Self {
68 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
69 panic!(
70 "{}
71::{}
72 failed to instantiate",
73 ::core::stringify!(StructData_1_EachFuncVoid),
74 ::core::stringify!(new),
75 )
76 });
77 <Self as IStructData_1_EachFuncVoidMethods<T0>>::ctor(this, object, method);
78 this
79 }
80}
81
82#[cfg(feature = "app-structdata_1")]
83#[::unity::methods]
84impl<T0: ::unity::ClassIdentity> StructData_1<T0> {
85 #[doc = "`AddPublicLabel(T0)` overload"]
86 #[method(name = "AddPublicLabel", args = 1)]
87 pub fn add_public_label(instance: T0) -> ();
88
89 #[doc = "`get_PublicNames()` overload"]
90 #[method(name = "get_PublicNames", args = 0)]
91 pub fn get_public_names() -> ::unity::Array<::unity::Il2CppString>;
92
93 #[doc = "`Import(::unity::Array<u8>, ::unity::Il2CppString, ::unity::Il2CppString)` overload"]
94 #[method(name = "Import", args = 3)]
95 pub fn import(data: ::unity::Array<u8>, path: ::unity::Il2CppString, sheet_name: ::unity::Il2CppString) -> ();
96
97 #[doc = "`Load(::unity::Il2CppString, ::unity::Il2CppString, crate::system::action::Action)` overload"]
98 #[method(name = "Load", args = 3)]
99 pub fn load(path: ::unity::Il2CppString, sheet_name: ::unity::Il2CppString, completed: crate::system::action::Action) -> ();
100
101 #[doc = "`Completed()` overload"]
102 #[method(name = "Completed", args = 0)]
103 pub fn completed() -> ();
104
105 #[doc = "`Unload()` overload"]
106 #[method(name = "Unload", args = 0)]
107 pub fn unload() -> ();
108
109 #[doc = "`Get(::unity::Il2CppString)` overload"]
110 #[method(name = "Get", args = 1)]
111 pub fn get(name: ::unity::Il2CppString) -> T0;
112
113 #[doc = "`Get(i32)` overload"]
114 #[method(name = "Get", args = 1)]
115 pub fn get_2(index: i32) -> T0;
116
117 #[doc = "`TryGet(::unity::Il2CppString)` overload"]
118 #[method(name = "TryGet", args = 1)]
119 pub fn try_get(name: ::unity::Il2CppString) -> T0;
120
121 #[doc = "`TryGet(i32)` overload"]
122 #[method(name = "TryGet", args = 1)]
123 pub fn try_get_2(index: i32) -> T0;
124
125 #[doc = "`TryGetFromHash(i32)` overload"]
126 #[method(name = "TryGetFromHash", args = 1)]
127 pub fn try_get_from_hash(hash: i32) -> T0;
128
129 #[doc = "`TryGet(::unity::Il2CppString, *mutT0)` overload"]
130 #[method(name = "TryGet", args = 2)]
131 pub fn try_get_3(name: ::unity::Il2CppString, value: *mut T0) -> bool;
132
133 #[doc = "`TryGet(i32, *mutT0)` overload"]
134 #[method(name = "TryGet", args = 2)]
135 pub fn try_get_4(index: i32, value: *mut T0) -> bool;
136
137 #[doc = "`UnsafeGet(i32)` overload"]
138 #[method(name = "UnsafeGet", args = 1)]
139 pub fn unsafe_get(index: i32) -> T0;
140
141 #[doc = "`GetIndex(::unity::Il2CppString)` overload"]
142 #[method(name = "GetIndex", args = 1)]
143 pub fn get_index(name: ::unity::Il2CppString) -> i32;
144
145 #[doc = "`TryGetIndex(::unity::Il2CppString)` overload"]
146 #[method(name = "TryGetIndex", args = 1)]
147 pub fn try_get_index(name: ::unity::Il2CppString) -> i32;
148
149 #[doc = "`GetIndex(T0)` overload"]
150 #[method(name = "GetIndex", args = 1)]
151 pub fn get_index_2(data: T0) -> i32;
152
153 #[doc = "`GetCount()` overload"]
154 #[method(name = "GetCount", args = 0)]
155 pub fn get_count() -> i32;
156
157 #[doc = "`GetList()` overload"]
158 #[method(name = "GetList", args = 0)]
159 pub fn get_list() -> crate::system::collections::generic::list_1::List_1<T0>;
160
161 #[doc = "`ForEach(crate::app::structdata_1::StructData_1_EachFuncVoid<T0>)` overload"]
162 #[method(name = "ForEach", args = 1)]
163 pub fn for_each(func: crate::app::structdata_1::StructData_1_EachFuncVoid<T0>) -> ();
164
165 #[doc = "`ForEach(crate::app::structdata_1::StructData_1_EachFuncBool<T0>)` overload"]
166 #[method(name = "ForEach", args = 1)]
167 pub fn for_each_2(func: crate::app::structdata_1::StructData_1_EachFuncBool<T0>) -> T0;
168
169 #[doc = "`.ctor()` overload"]
170 #[method(name = ".ctor", args = 0)]
171 pub fn ctor(self) -> ();
172
173 #[doc = "`.cctor()` overload"]
174 #[method(name = ".cctor", args = 0)]
175 pub fn cctor() -> ();
176}
177
178#[cfg(feature = "app-structdata_1")]
179impl<T0: ::unity::ClassIdentity> StructData_1<T0> {
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!(StructData_1),
188 ::core::stringify!(new),
189 )
190 });
191 <Self as IStructData_1Methods<T0>>::ctor(this);
192 this
193 }
194}
195
196#[cfg(feature = "app-structdata_1")]
197#[::unity::methods]
198impl<T0: ::unity::ClassIdentity> StructData_1_EachFuncBool<T0> {
199 #[doc = "`.ctor(crate::system::object::Object, ::unity::IntPtr)` overload"]
200 #[method(name = ".ctor", args = 2)]
201 pub fn ctor(self, object: crate::system::object::Object, method: ::unity::IntPtr) -> ();
202
203 #[doc = "`Invoke(T0)` overload"]
204 #[method(name = "Invoke", args = 1)]
205 pub fn invoke(self, data: T0) -> bool;
206}
207
208#[cfg(feature = "app-structdata_1")]
209impl<T0: ::unity::ClassIdentity> StructData_1_EachFuncBool<T0> {
210 #[doc = "`.ctor(crate::system::object::Object, ::unity::IntPtr)` — overload selector"]
211 pub fn new(object: crate::system::object::Object, method: ::unity::IntPtr) -> Self {
212 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
213 panic!(
214 "{}
215::{}
216 failed to instantiate",
217 ::core::stringify!(StructData_1_EachFuncBool),
218 ::core::stringify!(new),
219 )
220 });
221 <Self as IStructData_1_EachFuncBoolMethods<T0>>::ctor(this, object, method);
222 this
223 }
224}
225
226#[cfg(feature = "app-structdata_1")]
227#[doc(hidden)]
228pub mod prelude {
229 pub use super::{
230 IStructData_1, IStructData_1Methods, IStructData_1_EachFuncBool, IStructData_1_EachFuncBoolMethods, IStructData_1_EachFuncVoid,
231 IStructData_1_EachFuncVoidMethods, StructData_1, StructData_1_EachFuncBool, StructData_1_EachFuncVoid,
232 };
233 #[cfg(feature = "app-structbase")]
234 pub use crate::app::structbase::IStructBaseMethods;
235 #[cfg(feature = "app-structtemplate_1")]
236 pub use crate::app::structtemplate_1::IStructTemplate_1Methods;
237 #[cfg(feature = "system-delegate")]
238 pub use crate::system::delegate::IDelegateMethods;
239 #[cfg(feature = "system-multicastdelegate")]
240 pub use crate::system::multicastdelegate::IMulticastDelegateMethods;
241 #[cfg(feature = "system-object")]
242 pub use crate::system::object::IObjectMethods;
243 pub use crate::{
244 app::{structbase::IStructBase, structtemplate_1::IStructTemplate_1},
245 system::{delegate::IDelegate, multicastdelegate::IMulticastDelegate, object::IObject},
246 };
247}