Skip to main content

engage/generated/app/
key2dictionary_2.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "app-key2dictionary_2-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/key2dictionary_2/Key2Dictionary_2.md"))]
11    #[::unity::class(namespace = "App", name = "Key2Dictionary`2")]
12    #[parent(crate::system::object::Object)]
13    pub struct Key2Dictionary_2<T0: ::unity::ClassIdentity, T1: ::unity::ClassIdentity> {
14        #[rename(name = "m_Dictionary")]
15        pub m_dictionary: crate::system::collections::generic::dictionary_2::Dictionary_2<
16            T0,
17            crate::system::collections::generic::dictionary_2::Dictionary_2<T0, T1>,
18        >,
19        #[rename(name = "m_Capacity")]
20        pub m_capacity: i32,
21    }
22}
23
24#[cfg(feature = "app-key2dictionary_2-types")]
25pub use __types::*;
26
27#[cfg(feature = "app-key2dictionary_2")]
28#[::unity::methods]
29impl<T0: ::unity::ClassIdentity, T1: ::unity::ClassIdentity> Key2Dictionary_2<T0, T1> {
30    #[doc = "`.ctor(i32)` overload"]
31    #[method(name = ".ctor", args = 1)]
32    pub fn ctor(self, capacity: i32) -> ();
33
34    #[doc = "`Clear()` overload"]
35    #[method(name = "Clear", args = 0)]
36    pub fn clear(self) -> ();
37
38    #[doc = "`Add(T0, T0, T1)` overload"]
39    #[method(name = "Add", args = 3)]
40    pub fn add(self, key_a: T0, key_b: T0, data: T1) -> ();
41
42    #[doc = "`ContainsKey(T0, T0)` overload"]
43    #[method(name = "ContainsKey", args = 2)]
44    pub fn contains_key(self, key_a: T0, key_b: T0) -> bool;
45
46    #[doc = "`TryGetValue(T0, T0, *mutT1)` overload"]
47    #[method(name = "TryGetValue", args = 3)]
48    pub fn try_get_value(self, key_a: T0, key_b: T0, data: *mut T1) -> bool;
49}
50
51#[cfg(feature = "app-key2dictionary_2")]
52impl<T0: ::unity::ClassIdentity, T1: ::unity::ClassIdentity> Key2Dictionary_2<T0, T1> {
53    #[doc = "`.ctor(i32)` — overload selector"]
54    pub fn new(capacity: i32) -> Self {
55        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
56            panic!(
57                "{}
58::{}
59 failed to instantiate",
60                ::core::stringify!(Key2Dictionary_2),
61                ::core::stringify!(new),
62            )
63        });
64        <Self as IKey2Dictionary_2Methods<T0, T1>>::ctor(this, capacity);
65        this
66    }
67}
68
69#[cfg(feature = "app-key2dictionary_2")]
70#[doc(hidden)]
71pub mod prelude {
72    pub use super::{IKey2Dictionary_2, IKey2Dictionary_2Methods, Key2Dictionary_2};
73    pub use crate::system::object::IObject;
74    #[cfg(feature = "system-object")]
75    pub use crate::system::object::IObjectMethods;
76}