Skip to main content

engage/generated/unity_engine/rendering/
serializeddictionary_2.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "unity_engine-rendering-serializeddictionary_2-types")]
4mod __types {
5    #[allow(unused_imports)] use ::unity::prelude::*;
6
7    use super::*;
8    use crate::system::{
9        collections::generic::dictionary_2::{Dictionary_2, IDictionary_2},
10        object::{IObject, Object},
11    };
12
13    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/unity_engine/rendering/serializeddictionary_2/SerializedDictionary_2.md"))]
14    #[::unity::class(namespace = "UnityEngine.Rendering", name = "SerializedDictionary`2")]
15    #[parent(crate::system::collections::generic::dictionary_2::Dictionary_2<T0,T1>)]
16    #[parent(crate::system::object::Object)]
17    pub struct SerializedDictionary_2<T0: ::unity::ClassIdentity, T1: ::unity::ClassIdentity> {
18        #[rename(name = "m_Keys")]
19        pub m_keys: crate::system::collections::generic::list_1::List_1<T0>,
20        #[rename(name = "m_Values")]
21        pub m_values: crate::system::collections::generic::list_1::List_1<T1>,
22    }
23}
24
25#[cfg(feature = "unity_engine-rendering-serializeddictionary_2-types")]
26pub use __types::*;
27
28#[cfg(feature = "unity_engine-rendering-serializeddictionary_2")]
29#[::unity::methods]
30impl<T0: ::unity::ClassIdentity, T1: ::unity::ClassIdentity> SerializedDictionary_2<T0, T1> {
31    #[doc = "`OnBeforeSerialize()` overload"]
32    #[method(name = "OnBeforeSerialize", args = 0)]
33    pub fn on_before_serialize(self) -> ();
34
35    #[doc = "`OnAfterDeserialize()` overload"]
36    #[method(name = "OnAfterDeserialize", args = 0)]
37    pub fn on_after_deserialize(self) -> ();
38
39    #[doc = "`.ctor()` overload"]
40    #[method(name = ".ctor", args = 0)]
41    pub fn ctor(self) -> ();
42}
43
44#[cfg(feature = "unity_engine-rendering-serializeddictionary_2")]
45impl<T0: ::unity::ClassIdentity, T1: ::unity::ClassIdentity> SerializedDictionary_2<T0, T1> {
46    #[doc = "`.ctor()` — no args"]
47    pub fn new() -> Self {
48        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
49            panic!(
50                "{}
51::{}
52 failed to instantiate",
53                ::core::stringify!(SerializedDictionary_2),
54                ::core::stringify!(new),
55            )
56        });
57        <Self as ISerializedDictionary_2Methods<T0, T1>>::ctor(this);
58        this
59    }
60}
61
62#[cfg(feature = "unity_engine-rendering-serializeddictionary_2")]
63#[doc(hidden)]
64pub mod prelude {
65    pub use super::{ISerializedDictionary_2, ISerializedDictionary_2Methods, SerializedDictionary_2};
66    #[cfg(feature = "system-collections-generic-dictionary_2")]
67    pub use crate::system::collections::generic::dictionary_2::IDictionary_2Methods;
68    #[cfg(feature = "system-object")]
69    pub use crate::system::object::IObjectMethods;
70    pub use crate::system::{collections::generic::dictionary_2::IDictionary_2, object::IObject};
71}