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