engage/generated/app/
rawclassstack_1.rs1#[cfg(feature = "app-rawclassstack_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/rawclassstack_1/RawClassStack_1.md"))]
11 #[::unity::class(namespace = "App", name = "RawClassStack`1")]
12 #[parent(crate::system::object::Object)]
13 pub struct RawClassStack_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-rawclassstack_1-types")]
22pub use __types::*;
23
24#[cfg(feature = "app-rawclassstack_1")]
25#[::unity::methods]
26impl<T0: ::unity::ClassIdentity> RawClassStack_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 = "`Push(T0)` overload"]
44 #[method(name = "Push", args = 1)]
45 pub fn push(self, value: T0) -> ();
46
47 #[doc = "`Pop()` overload"]
48 #[method(name = "Pop", args = 0)]
49 pub fn pop(self) -> T0;
50
51 #[doc = "`Clear()` overload"]
52 #[method(name = "Clear", args = 0)]
53 pub fn clear(self) -> ();
54}
55
56#[cfg(feature = "app-rawclassstack_1")]
57impl<T0: ::unity::ClassIdentity> RawClassStack_1<T0> {
58 #[doc = "`.ctor(i32)` — overload selector"]
59 pub fn new(capacity: i32) -> Self {
60 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
61 panic!(
62 "{}
63::{}
64 failed to instantiate",
65 ::core::stringify!(RawClassStack_1),
66 ::core::stringify!(new),
67 )
68 });
69 <Self as IRawClassStack_1Methods<T0>>::ctor(this, capacity);
70 this
71 }
72}
73
74#[cfg(feature = "app-rawclassstack_1")]
75#[doc(hidden)]
76pub mod prelude {
77 pub use super::{IRawClassStack_1, IRawClassStack_1Methods, RawClassStack_1};
78 pub use crate::system::object::IObject;
79 #[cfg(feature = "system-object")]
80 pub use crate::system::object::IObjectMethods;
81}