Skip to main content

engage/generated/app/
singletonpool_2.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "app-singletonpool_2-types")]
4mod __types {
5    #[allow(unused_imports)] use ::unity::prelude::*;
6
7    use super::*;
8    use crate::{
9        app::singletonclass_1::{ISingletonClass_1, SingletonClass_1},
10        system::object::{IObject, Object},
11    };
12
13    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/singletonpool_2/SingletonPool_2.md"))]
14    #[::unity::class(namespace = "App", name = "SingletonPool`2")]
15    #[parent(crate::app::singletonclass_1::SingletonClass_1<T0>)]
16    #[parent(crate::system::object::Object)]
17    pub struct SingletonPool_2<T0: ::unity::ClassIdentity, T1: ::unity::ClassIdentity> {
18        #[static_field]
19        #[rename(name = "OnlineInstanceID")]
20        pub online_instance_id: i32,
21        #[rename(name = "m_List")]
22        pub m_list: crate::system::collections::generic::list_1::List_1<T1>,
23        #[rename(name = "m_Sort")]
24        pub m_sort: crate::system::collections::generic::list_1::List_1<T1>,
25        #[rename(name = "m_Pool")]
26        pub m_pool: crate::system::collections::generic::linkedlist_1::LinkedList_1<T1>,
27        #[rename(name = "m_Used")]
28        pub m_used: crate::system::collections::generic::linkedlist_1::LinkedList_1<T1>,
29        #[rename(name = "m_Compare")]
30        pub m_compare: crate::system::collections::generic::icomparer_1_interface::IComparer_1_Interface<T1>,
31        #[rename(name = "m_Dictionary")]
32        pub m_dictionary: crate::system::collections::generic::dictionary_2::Dictionary_2<i32, T1>,
33        #[rename(name = "m_InstanceIDs")]
34        pub m_instance_i_ds: crate::system::collections::generic::queue_1::Queue_1<i32>,
35        #[rename(name = "m_IsOnline")]
36        pub m_is_online: bool,
37    }
38
39    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/singletonpool_2/SingletonPool_2_Comparer.md"))]
40    #[::unity::class(namespace = "App", name = "SingletonPool`2.Comparer")]
41    #[parent(crate::system::object::Object)]
42    pub struct SingletonPool_2_Comparer<T0: ::unity::ClassIdentity, T1: ::unity::ClassIdentity> {}
43}
44
45#[cfg(feature = "app-singletonpool_2-types")]
46pub use __types::*;
47
48#[cfg(feature = "app-singletonpool_2")]
49#[::unity::methods]
50impl<T0: ::unity::ClassIdentity, T1: ::unity::ClassIdentity> SingletonPool_2<T0, T1> {
51    #[doc = "`.ctor(i32)` overload"]
52    #[method(name = ".ctor", args = 1)]
53    pub fn ctor(self, capacity: i32) -> ();
54
55    #[doc = "`CreateImpl(i32)` overload"]
56    #[method(name = "CreateImpl", args = 1)]
57    pub fn create_impl(self, instance_id: i32) -> T1;
58
59    #[doc = "`DeleteImpl(T1)` overload"]
60    #[method(name = "DeleteImpl", args = 1)]
61    pub fn delete_impl(self, value: T1) -> ();
62
63    #[doc = "`ClearImpl()` overload"]
64    #[method(name = "ClearImpl", args = 0)]
65    pub fn clear_impl(self) -> ();
66
67    #[doc = "`ReassignInstanceIDForOnline()` overload"]
68    #[method(name = "ReassignInstanceIDForOnline", args = 0)]
69    pub fn reassign_instance_id_for_online(self) -> ();
70
71    #[doc = "`ResetInstanceID()` overload"]
72    #[method(name = "ResetInstanceID", args = 0)]
73    pub fn reset_instance_id(self) -> ();
74
75    #[doc = "`Create()` overload"]
76    #[method(name = "Create", args = 0)]
77    pub fn create() -> T1;
78
79    #[doc = "`Delete(T1)` overload"]
80    #[method(name = "Delete", args = 1)]
81    pub fn delete(value: T1) -> ();
82
83    #[doc = "`Clear()` overload"]
84    #[method(name = "Clear", args = 0)]
85    pub fn clear() -> ();
86
87    #[doc = "`SerializeForOnline(crate::app::stream_2::Stream_2)` overload"]
88    #[method(name = "SerializeForOnline", args = 1)]
89    pub fn serialize_for_online(stream: crate::app::stream_2::Stream_2) -> ();
90
91    #[doc = "`DeserializeForOnline(crate::app::stream_2::Stream_2)` overload"]
92    #[method(name = "DeserializeForOnline", args = 1)]
93    pub fn deserialize_for_online(stream: crate::app::stream_2::Stream_2) -> ();
94
95    #[doc = "`SerializeSingle(crate::app::stream_2::Stream_2, T1)` overload"]
96    #[method(name = "SerializeSingle", args = 2)]
97    pub fn serialize_single(stream: crate::app::stream_2::Stream_2, value: T1) -> ();
98
99    #[doc = "`DeserializeSingle(crate::app::stream_2::Stream_2)` overload"]
100    #[method(name = "DeserializeSingle", args = 1)]
101    pub fn deserialize_single(stream: crate::app::stream_2::Stream_2) -> T1;
102
103    #[doc = "`OnSerialize(crate::app::stream_2::Stream_2)` overload"]
104    #[method(name = "OnSerialize", args = 1)]
105    pub fn on_serialize(self, stream: crate::app::stream_2::Stream_2) -> ();
106
107    #[doc = "`OnDeserialize(crate::app::stream_2::Stream_2, i32)` overload"]
108    #[method(name = "OnDeserialize", args = 2)]
109    pub fn on_deserialize(self, stream: crate::app::stream_2::Stream_2, version: i32) -> ();
110
111    #[doc = "`SortImpl()` overload"]
112    #[method(name = "SortImpl", args = 0)]
113    pub fn sort_impl(self) -> ();
114
115    #[doc = "`GetEnumerator()` overload"]
116    #[method(name = "GetEnumerator", args = 0)]
117    pub fn get_enumerator(self) -> crate::system::collections::generic::list_1::List_1_Enumerator<T1>;
118
119    #[doc = "`get_Count()` overload"]
120    #[method(name = "get_Count", args = 0)]
121    pub fn get_count() -> i32;
122
123    #[doc = "`get_List()` overload"]
124    #[method(name = "get_List", args = 0)]
125    pub fn get_list() -> crate::system::collections::generic::list_1::List_1<T1>;
126
127    #[doc = "`Find(i32)` overload"]
128    #[method(name = "Find", args = 1)]
129    pub fn find(instance_id: i32) -> T1;
130
131    #[doc = "`IsFromOnline(T1)` overload"]
132    #[method(name = "IsFromOnline", args = 1)]
133    pub fn is_from_online(value: T1) -> bool;
134
135    #[doc = "`Sort()` overload"]
136    #[method(name = "Sort", args = 0)]
137    pub fn sort() -> ();
138}
139
140#[cfg(feature = "app-singletonpool_2")]
141impl<T0: ::unity::ClassIdentity, T1: ::unity::ClassIdentity> SingletonPool_2<T0, T1> {
142    #[doc = "`.ctor(i32)` — overload selector"]
143    pub fn new(capacity: i32) -> Self {
144        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
145            panic!(
146                "{}
147::{}
148 failed to instantiate",
149                ::core::stringify!(SingletonPool_2),
150                ::core::stringify!(new),
151            )
152        });
153        <Self as ISingletonPool_2Methods<T0, T1>>::ctor(this, capacity);
154        this
155    }
156}
157
158#[cfg(feature = "app-singletonpool_2")]
159#[::unity::methods]
160impl<T0: ::unity::ClassIdentity, T1: ::unity::ClassIdentity> SingletonPool_2_Comparer<T0, T1> {
161    #[doc = "`Compare(T1, T1)` overload"]
162    #[method(name = "Compare", args = 2)]
163    pub fn compare(self, x: T1, y: T1) -> i32;
164
165    #[doc = "`.ctor()` overload"]
166    #[method(name = ".ctor", args = 0)]
167    pub fn ctor(self) -> ();
168}
169
170#[cfg(feature = "app-singletonpool_2")]
171impl<T0: ::unity::ClassIdentity, T1: ::unity::ClassIdentity> SingletonPool_2_Comparer<T0, T1> {
172    #[doc = "`.ctor()` — no args"]
173    pub fn new() -> Self {
174        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
175            panic!(
176                "{}
177::{}
178 failed to instantiate",
179                ::core::stringify!(SingletonPool_2_Comparer),
180                ::core::stringify!(new),
181            )
182        });
183        <Self as ISingletonPool_2_ComparerMethods<T0, T1>>::ctor(this);
184        this
185    }
186}
187
188#[cfg(feature = "app-singletonpool_2")]
189#[doc(hidden)]
190pub mod prelude {
191    pub use super::{
192        ISingletonPool_2, ISingletonPool_2Methods, ISingletonPool_2_Comparer, ISingletonPool_2_ComparerMethods, SingletonPool_2,
193        SingletonPool_2_Comparer,
194    };
195    #[cfg(feature = "app-singletonclass_1")]
196    pub use crate::app::singletonclass_1::ISingletonClass_1Methods;
197    #[cfg(feature = "system-object")]
198    pub use crate::system::object::IObjectMethods;
199    pub use crate::{app::singletonclass_1::ISingletonClass_1, system::object::IObject};
200}