Skip to main content

engage/generated/system/collections/object_model/
readonlycollection_1.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "system-collections-object_model-readonlycollection_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/system/collections/object_model/readonlycollection_1/ReadOnlyCollection_1.md"))]
11    #[::unity::class(namespace = "System.Collections.ObjectModel", name = "ReadOnlyCollection`1")]
12    #[parent(crate::system::object::Object)]
13    pub struct ReadOnlyCollection_1<T0: ::unity::ClassIdentity> {
14        #[rename(name = "list")]
15        pub list: crate::system::collections::generic::ilist_1_interface::IList_1_Interface<T0>,
16        #[rename(name = "_syncRoot")]
17        pub sync_root: ::unity::IlInstance,
18    }
19}
20
21#[cfg(feature = "system-collections-object_model-readonlycollection_1-types")]
22pub use __types::*;
23
24#[cfg(feature = "system-collections-object_model-readonlycollection_1")]
25#[::unity::methods]
26impl<T0: ::unity::ClassIdentity> ReadOnlyCollection_1<T0> {
27    #[doc = "`.ctor(crate::system::collections::generic::ilist_1_interface::IList_1_Interface<T0>)` overload"]
28    #[method(name = ".ctor", args = 1)]
29    pub fn ctor(self, list: crate::system::collections::generic::ilist_1_interface::IList_1_Interface<T0>) -> ();
30
31    #[doc = "`get_Count()` overload"]
32    #[method(name = "get_Count", args = 0)]
33    pub fn get_count(self) -> i32;
34
35    #[doc = "`get_Item(i32)` overload"]
36    #[method(name = "get_Item", args = 1)]
37    pub fn get_item(self, index: i32) -> T0;
38
39    #[doc = "`Contains(T0)` overload"]
40    #[method(name = "Contains", args = 1)]
41    pub fn contains(self, value: T0) -> bool;
42
43    #[doc = "`CopyTo(::unity::Array<T0>, i32)` overload"]
44    #[method(name = "CopyTo", args = 2)]
45    pub fn copy_to(self, array: ::unity::Array<T0>, index: i32) -> ();
46
47    #[doc = "`GetEnumerator()` overload"]
48    #[method(name = "GetEnumerator", args = 0)]
49    pub fn get_enumerator(self) -> crate::system::collections::generic::ienumerator_1::IEnumerator_1<T0>;
50
51    #[doc = "`IndexOf(T0)` overload"]
52    #[method(name = "IndexOf", args = 1)]
53    pub fn index_of(self, value: T0) -> i32;
54
55    #[doc = "`System.Collections.IEnumerable.GetEnumerator()` overload"]
56    #[method(name = "System.Collections.IEnumerable.GetEnumerator", args = 0)]
57    pub fn system_collections_i_enumerable_get_enumerator(self) -> crate::system::collections::ienumerator::IEnumerator;
58
59    #[doc = "`System.Collections.ICollection.get_IsSynchronized()` overload"]
60    #[method(name = "System.Collections.ICollection.get_IsSynchronized", args = 0)]
61    pub fn system_collections_i_collection_get_is_synchronized(self) -> bool;
62
63    #[doc = "`System.Collections.ICollection.get_SyncRoot()` overload"]
64    #[method(name = "System.Collections.ICollection.get_SyncRoot", args = 0)]
65    pub fn system_collections_i_collection_get_sync_root(self) -> crate::system::object::Object;
66
67    #[doc = "`System.Collections.ICollection.CopyTo(::unity::IlInstance, i32)` overload"]
68    #[method(name = "System.Collections.ICollection.CopyTo", args = 2)]
69    pub fn system_collections_i_collection_copy_to(self, array: ::unity::IlInstance, index: i32) -> ();
70
71    #[doc = "`System.Collections.IList.get_IsReadOnly()` overload"]
72    #[method(name = "System.Collections.IList.get_IsReadOnly", args = 0)]
73    pub fn system_collections_i_list_get_is_read_only(self) -> bool;
74
75    #[doc = "`System.Collections.IList.get_Item(i32)` overload"]
76    #[method(name = "System.Collections.IList.get_Item", args = 1)]
77    pub fn system_collections_i_list_get_item(self, index: i32) -> crate::system::object::Object;
78
79    #[doc = "`System.Collections.IList.set_Item(i32, crate::system::object::Object)` overload"]
80    #[method(name = "System.Collections.IList.set_Item", args = 2)]
81    pub fn system_collections_i_list_set_item(self, index: i32, value: crate::system::object::Object) -> ();
82
83    #[doc = "`System.Collections.IList.Add(crate::system::object::Object)` overload"]
84    #[method(name = "System.Collections.IList.Add", args = 1)]
85    pub fn system_collections_i_list_add(self, value: crate::system::object::Object) -> i32;
86
87    #[doc = "`System.Collections.IList.Clear()` overload"]
88    #[method(name = "System.Collections.IList.Clear", args = 0)]
89    pub fn system_collections_i_list_clear(self) -> ();
90
91    #[doc = "`IsCompatibleObject(crate::system::object::Object)` overload"]
92    #[method(name = "IsCompatibleObject", args = 1)]
93    pub fn is_compatible_object(value: crate::system::object::Object) -> bool;
94
95    #[doc = "`System.Collections.IList.Contains(crate::system::object::Object)` overload"]
96    #[method(name = "System.Collections.IList.Contains", args = 1)]
97    pub fn system_collections_i_list_contains(self, value: crate::system::object::Object) -> bool;
98
99    #[doc = "`System.Collections.IList.IndexOf(crate::system::object::Object)` overload"]
100    #[method(name = "System.Collections.IList.IndexOf", args = 1)]
101    pub fn system_collections_i_list_index_of(self, value: crate::system::object::Object) -> i32;
102
103    #[doc = "`System.Collections.IList.Insert(i32, crate::system::object::Object)` overload"]
104    #[method(name = "System.Collections.IList.Insert", args = 2)]
105    pub fn system_collections_i_list_insert(self, index: i32, value: crate::system::object::Object) -> ();
106
107    #[doc = "`System.Collections.IList.Remove(crate::system::object::Object)` overload"]
108    #[method(name = "System.Collections.IList.Remove", args = 1)]
109    pub fn system_collections_i_list_remove(self, value: crate::system::object::Object) -> ();
110
111    #[doc = "`System.Collections.IList.RemoveAt(i32)` overload"]
112    #[method(name = "System.Collections.IList.RemoveAt", args = 1)]
113    pub fn system_collections_i_list_remove_at(self, index: i32) -> ();
114}
115
116#[cfg(feature = "system-collections-object_model-readonlycollection_1")]
117impl<T0: ::unity::ClassIdentity> ReadOnlyCollection_1<T0> {
118    #[doc = "`.ctor(crate::system::collections::generic::ilist_1_interface::IList_1_Interface<T0>)` — overload selector"]
119    pub fn new(list: crate::system::collections::generic::ilist_1_interface::IList_1_Interface<T0>) -> Self {
120        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
121            panic!(
122                "{}
123::{}
124 failed to instantiate",
125                ::core::stringify!(ReadOnlyCollection_1),
126                ::core::stringify!(new),
127            )
128        });
129        <Self as IReadOnlyCollection_1Methods<T0>>::ctor(this, list);
130        this
131    }
132}
133
134#[cfg(feature = "system-collections-object_model-readonlycollection_1")]
135#[doc(hidden)]
136pub mod prelude {
137    pub use super::{IReadOnlyCollection_1, IReadOnlyCollection_1Methods, ReadOnlyCollection_1};
138    pub use crate::system::object::IObject;
139    #[cfg(feature = "system-object")]
140    pub use crate::system::object::IObjectMethods;
141}