engage/generated/app/
rawclasslist_1.rs1#[cfg(feature = "app-rawclasslist_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/app/rawclasslist_1/RawClassList_1.md"))]
11 #[::unity::class(namespace = "App", name = "RawClassList`1")]
12 #[parent(crate::system::object::Object)]
13 pub struct RawClassList_1<T0: ::unity::ClassIdentity> {
14 #[rename(name = "Count")]
15 pub count: i32,
16 #[rename(name = "Values")]
17 pub values: ::unity::Array<T0>,
18 }
19}
20
21#[cfg(feature = "app-rawclasslist_1-types")]
22pub use __types::*;
23
24#[cfg(feature = "app-rawclasslist_1")]
25#[::unity::methods]
26impl<T0: ::unity::ClassIdentity> RawClassList_1<T0> {
27 #[doc = "`get_Capacity()` overload"]
28 #[method(name = "get_Capacity", args = 0)]
29 pub fn get_capacity(self) -> i32;
30
31 #[doc = "`.ctor(i32)` overload"]
32 #[method(name = ".ctor", args = 1)]
33 pub fn ctor(self, capacity: i32) -> ();
34
35 #[doc = "`Get(i32)` overload"]
36 #[method(name = "Get", args = 1)]
37 pub fn get(self, index: i32) -> T0;
38
39 #[doc = "`Set(i32, *mutT0)` overload"]
40 #[method(name = "Set", args = 2)]
41 pub fn set(self, index: i32, value: *mut T0) -> ();
42
43 #[doc = "`Add(T0)` overload"]
44 #[method(name = "Add", args = 1)]
45 pub fn add(self, value: T0) -> ();
46
47 #[doc = "`Clear()` overload"]
48 #[method(name = "Clear", args = 0)]
49 pub fn clear(self) -> ();
50}
51
52#[cfg(feature = "app-rawclasslist_1")]
53impl<T0: ::unity::ClassIdentity> RawClassList_1<T0> {
54 #[doc = "`.ctor(i32)` — overload selector"]
55 pub fn new(capacity: i32) -> Self {
56 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
57 panic!(
58 "{}
59::{}
60 failed to instantiate",
61 ::core::stringify!(RawClassList_1),
62 ::core::stringify!(new),
63 )
64 });
65 <Self as IRawClassList_1Methods<T0>>::ctor(this, capacity);
66 this
67 }
68}
69
70#[cfg(feature = "app-rawclasslist_1")]
71#[doc(hidden)]
72pub mod prelude {
73 pub use super::{IRawClassList_1, IRawClassList_1Methods, RawClassList_1};
74 pub use crate::system::object::IObject;
75 #[cfg(feature = "system-object")]
76 pub use crate::system::object::IObjectMethods;
77}