engage/generated/app/
rawstructlist_1.rs1#[cfg(feature = "app-rawstructlist_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/rawstructlist_1/RawStructList_1.md"))]
11 #[::unity::class(namespace = "App", name = "RawStructList`1")]
12 #[parent(crate::system::object::Object)]
13 pub struct RawStructList_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-rawstructlist_1-types")]
22pub use __types::*;
23
24#[cfg(feature = "app-rawstructlist_1")]
25#[::unity::methods]
26impl<T0: ::unity::ClassIdentity> RawStructList_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(*mutT0)` overload"]
44 #[method(name = "Add", args = 1)]
45 pub fn add(self, value: *mut T0) -> ();
46
47 #[doc = "`Clear()` overload"]
48 #[method(name = "Clear", args = 0)]
49 pub fn clear(self) -> ();
50
51 #[doc = "`RemoveAt(i32)` overload"]
52 #[method(name = "RemoveAt", args = 1)]
53 pub fn remove_at(self, index: i32) -> ();
54
55 #[doc = "`Insert(i32, T0)` overload"]
56 #[method(name = "Insert", args = 2)]
57 pub fn insert(self, index: i32, value: T0) -> ();
58
59 #[doc = "`Swap(i32, i32)` overload"]
60 #[method(name = "Swap", args = 2)]
61 pub fn swap(self, index1: i32, index2: i32) -> ();
62
63 #[doc = "`get_Item(i32)` overload"]
64 #[method(name = "get_Item", args = 1)]
65 pub fn get_item(self, i: i32) -> T0;
66
67 #[doc = "`set_Item(i32, T0)` overload"]
68 #[method(name = "set_Item", args = 2)]
69 pub fn set_item(self, i: i32, value: T0) -> ();
70}
71
72#[cfg(feature = "app-rawstructlist_1")]
73impl<T0: ::unity::ClassIdentity> RawStructList_1<T0> {
74 #[doc = "`.ctor(i32)` — overload selector"]
75 pub fn new(capacity: i32) -> Self {
76 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
77 panic!(
78 "{}
79::{}
80 failed to instantiate",
81 ::core::stringify!(RawStructList_1),
82 ::core::stringify!(new),
83 )
84 });
85 <Self as IRawStructList_1Methods<T0>>::ctor(this, capacity);
86 this
87 }
88}
89
90#[cfg(feature = "app-rawstructlist_1")]
91#[doc(hidden)]
92pub mod prelude {
93 pub use super::{IRawStructList_1, IRawStructList_1Methods, RawStructList_1};
94 pub use crate::system::object::IObject;
95 #[cfg(feature = "system-object")]
96 pub use crate::system::object::IObjectMethods;
97}