Skip to main content

engage/generated/app/
structdictionary_1.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "app-structdictionary_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/app/structdictionary_1/StructDictionary_1.md"))]
11    #[::unity::class(namespace = "App", name = "StructDictionary`1")]
12    #[parent(crate::system::object::Object)]
13    pub struct StructDictionary_1<T0: ::unity::ClassIdentity> {
14        #[rename(name = "m_keyList")]
15        pub m_key_list: crate::system::collections::generic::list_1::List_1<::unity::Il2CppString>,
16        #[rename(name = "m_indexKey")]
17        pub m_index_key: crate::system::collections::generic::dictionary_2::Dictionary_2<::unity::Il2CppString, i32>,
18        #[rename(name = "m_hashKey")]
19        pub m_hash_key: crate::system::collections::generic::dictionary_2::Dictionary_2<i32, i32>,
20    }
21}
22
23#[cfg(feature = "app-structdictionary_1-types")]
24pub use __types::*;
25
26#[cfg(feature = "app-structdictionary_1")]
27#[::unity::methods]
28impl<T0: ::unity::ClassIdentity> StructDictionary_1<T0> {
29    #[doc = "`Clear()` overload"]
30    #[method(name = "Clear", args = 0)]
31    pub fn clear(self) -> ();
32
33    #[doc = "`get_PublicNames()` overload"]
34    #[method(name = "get_PublicNames", args = 0)]
35    pub fn get_public_names(self) -> ::unity::Array<::unity::Il2CppString>;
36
37    #[doc = "`GetKey(i32)` overload"]
38    #[method(name = "GetKey", args = 1)]
39    pub fn get_key(self, index: i32) -> ::unity::Il2CppString;
40
41    #[doc = "`GetIndex(::unity::Il2CppString)` overload"]
42    #[method(name = "GetIndex", args = 1)]
43    pub fn get_index(self, key: ::unity::Il2CppString) -> i32;
44
45    #[doc = "`GetIndexFromHash(i32)` overload"]
46    #[method(name = "GetIndexFromHash", args = 1)]
47    pub fn get_index_from_hash(self, hash: i32) -> i32;
48
49    #[doc = "`IsExist()` overload"]
50    #[method(name = "IsExist", args = 0)]
51    pub fn is_exist(self) -> bool;
52
53    #[doc = "`IsExist(::unity::Il2CppString)` overload"]
54    #[method(name = "IsExist", args = 1)]
55    pub fn is_exist_2(self, key: ::unity::Il2CppString) -> bool;
56
57    #[doc = "`Prefixless(::unity::Il2CppString)` overload"]
58    #[method(name = "Prefixless", args = 1)]
59    pub fn prefixless(key: ::unity::Il2CppString) -> ::unity::Il2CppString;
60
61    #[doc = "`Add(::unity::Il2CppString, i32)` overload"]
62    #[method(name = "Add", args = 2)]
63    pub fn add(self, key: ::unity::Il2CppString, index: i32) -> ();
64
65    #[doc = "`Add(::unity::Il2CppString, i32, i32)` overload"]
66    #[method(name = "Add", args = 3)]
67    pub fn add_2(self, key: ::unity::Il2CppString, index: i32, hash: i32) -> ();
68
69    #[doc = "`GetList()` overload"]
70    #[method(name = "GetList", args = 0)]
71    pub fn get_list(self) -> crate::system::collections::generic::list_1::List_1<::unity::Il2CppString>;
72
73    #[doc = "`.ctor()` overload"]
74    #[method(name = ".ctor", args = 0)]
75    pub fn ctor(self) -> ();
76}
77
78#[cfg(feature = "app-structdictionary_1")]
79impl<T0: ::unity::ClassIdentity> StructDictionary_1<T0> {
80    #[doc = "`.ctor()` — no args"]
81    pub fn new() -> Self {
82        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
83            panic!(
84                "{}
85::{}
86 failed to instantiate",
87                ::core::stringify!(StructDictionary_1),
88                ::core::stringify!(new),
89            )
90        });
91        <Self as IStructDictionary_1Methods<T0>>::ctor(this);
92        this
93    }
94}
95
96#[cfg(feature = "app-structdictionary_1")]
97#[doc(hidden)]
98pub mod prelude {
99    pub use super::{IStructDictionary_1, IStructDictionary_1Methods, StructDictionary_1};
100    pub use crate::system::object::IObject;
101    #[cfg(feature = "system-object")]
102    pub use crate::system::object::IObjectMethods;
103}