Skip to main content

engage/generated/root/
structscriptabledata_1.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "root-structscriptabledata_1-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/root/structscriptabledata_1/StructScriptableData_1.md"))]
11    #[::unity::class(namespace = "", name = "StructScriptableData`1")]
12    #[parent(crate::system::object::Object)]
13    pub struct StructScriptableData_1<T0: ::unity::ClassIdentity> {
14        #[static_field]
15        #[rename(name = "s_KeyToIndex")]
16        pub s_key_to_index: crate::system::collections::generic::dictionary_2::Dictionary_2<::unity::Il2CppString, i32>,
17        #[static_field]
18        #[rename(name = "s_DataList")]
19        pub s_data_list: crate::system::collections::generic::list_1::List_1<T0>,
20        #[static_field]
21        #[rename(name = "s_PublicNames")]
22        pub s_public_names: crate::system::collections::generic::list_1::List_1<::unity::Il2CppString>,
23    }
24}
25
26#[cfg(feature = "root-structscriptabledata_1-types")]
27pub use __types::*;
28
29#[cfg(feature = "root-structscriptabledata_1")]
30#[::unity::methods]
31impl<T0: ::unity::ClassIdentity> StructScriptableData_1<T0> {
32    #[doc = "`Load(::unity::Il2CppString)` overload"]
33    #[method(name = "Load", args = 1)]
34    pub fn load(path: ::unity::Il2CppString) -> bool;
35
36    #[doc = "`Unload()` overload"]
37    #[method(name = "Unload", args = 0)]
38    pub fn unload() -> ();
39
40    #[doc = "`IndexOf(::unity::Il2CppString)` overload"]
41    #[method(name = "IndexOf", args = 1)]
42    pub fn index_of(key: ::unity::Il2CppString) -> i32;
43
44    #[doc = "`TryGet(::unity::Il2CppString)` overload"]
45    #[method(name = "TryGet", args = 1)]
46    pub fn try_get(key: ::unity::Il2CppString) -> T0;
47
48    #[doc = "`TryGet(i32)` overload"]
49    #[method(name = "TryGet", args = 1)]
50    pub fn try_get_2(index: i32) -> T0;
51
52    #[doc = "`get_Count()` overload"]
53    #[method(name = "get_Count", args = 0)]
54    pub fn get_count() -> i32;
55
56    #[doc = "`get_PublicNames()` overload"]
57    #[method(name = "get_PublicNames", args = 0)]
58    pub fn get_public_names() -> ::unity::Array<::unity::Il2CppString>;
59
60    #[doc = "`Dump()` overload"]
61    #[method(name = "Dump", args = 0)]
62    pub fn dump() -> ();
63
64    #[doc = "`GetKey()` overload"]
65    #[method(name = "GetKey", args = 0, abstract_dispatch)]
66    pub fn get_key(self) -> ::unity::Il2CppString;
67
68    #[doc = "`OnBuild()` overload"]
69    #[method(name = "OnBuild", args = 0)]
70    pub fn on_build(self) -> ();
71
72    #[doc = "`OnRelease()` overload"]
73    #[method(name = "OnRelease", args = 0)]
74    pub fn on_release(self) -> ();
75
76    #[doc = "`GetDebugName()` overload"]
77    #[method(name = "GetDebugName", args = 0)]
78    pub fn get_debug_name(self) -> ::unity::Il2CppString;
79
80    #[doc = "`.ctor()` overload"]
81    #[method(name = ".ctor", args = 0)]
82    pub fn ctor(self) -> ();
83
84    #[doc = "`.cctor()` overload"]
85    #[method(name = ".cctor", args = 0)]
86    pub fn cctor() -> ();
87}
88
89#[cfg(feature = "root-structscriptabledata_1")]
90impl<T0: ::unity::ClassIdentity> StructScriptableData_1<T0> {
91    #[doc = "`.ctor()` — no args"]
92    pub fn new() -> Self {
93        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
94            panic!(
95                "{}
96::{}
97 failed to instantiate",
98                ::core::stringify!(StructScriptableData_1),
99                ::core::stringify!(new),
100            )
101        });
102        <Self as IStructScriptableData_1Methods<T0>>::ctor(this);
103        this
104    }
105}
106
107#[cfg(feature = "root-structscriptabledata_1")]
108#[doc(hidden)]
109pub mod prelude {
110    pub use super::{IStructScriptableData_1, IStructScriptableData_1Methods, StructScriptableData_1};
111    pub use crate::system::object::IObject;
112    #[cfg(feature = "system-object")]
113    pub use crate::system::object::IObjectMethods;
114}