engage/generated/app/struct_object/
basearrayitem_1.rs1#[cfg(feature = "app-struct_object-basearrayitem_1-types")]
4mod __types {
5 #[allow(unused_imports)] use ::unity::prelude::*;
6
7 use super::*;
8 use crate::{
9 app::struct_object::{
10 baseitem::{BaseItem, IBaseItem},
11 basepiece::{BasePiece, IBasePiece},
12 },
13 system::object::{IObject, Object},
14 };
15
16 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/struct_object/basearrayitem_1/BaseArrayItem_1.md"))]
17 #[::unity::class(namespace = "App.StructObject", name = "BaseArrayItem`1")]
18 #[parent(crate::app::struct_object::baseitem::BaseItem)]
19 #[parent(crate::app::struct_object::basepiece::BasePiece)]
20 #[parent(crate::system::object::Object)]
21 pub struct BaseArrayItem_1<T0: ::unity::ClassIdentity> {
22 #[rename(name = "_Pieces")]
23 pub pieces_field: crate::system::collections::generic::list_1::List_1<T0>,
24 }
25}
26
27#[cfg(feature = "app-struct_object-basearrayitem_1-types")]
28pub use __types::*;
29
30#[cfg(feature = "app-struct_object-basearrayitem_1")]
31#[::unity::methods]
32impl<T0: ::unity::ClassIdentity> BaseArrayItem_1<T0> {
33 #[doc = "`get_Pieces()` overload"]
34 #[method(name = "get_Pieces", args = 0)]
35 pub fn get_pieces(self) -> crate::system::collections::generic::list_1::List_1<T0>;
36
37 #[doc = "`set_Pieces(crate::system::collections::generic::list_1::List_1<T0>)` overload"]
38 #[method(name = "set_Pieces", args = 1)]
39 pub fn set_pieces(self, value: crate::system::collections::generic::list_1::List_1<T0>) -> ();
40
41 #[doc = "`AddPiece(crate::system::object::Object)` overload"]
42 #[method(name = "AddPiece", args = 1)]
43 pub fn add_piece(self, piece: crate::system::object::Object) -> ();
44
45 #[doc = "`.ctor()` overload"]
46 #[method(name = ".ctor", args = 0)]
47 pub fn ctor(self) -> ();
48}
49
50#[cfg(feature = "app-struct_object-basearrayitem_1")]
51impl<T0: ::unity::ClassIdentity> BaseArrayItem_1<T0> {
52 #[doc = "`.ctor()` — no args"]
53 pub fn new() -> Self {
54 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
55 panic!(
56 "{}
57::{}
58 failed to instantiate",
59 ::core::stringify!(BaseArrayItem_1),
60 ::core::stringify!(new),
61 )
62 });
63 <Self as IBaseArrayItem_1Methods<T0>>::ctor(this);
64 this
65 }
66}
67
68#[cfg(feature = "app-struct_object-basearrayitem_1")]
69#[doc(hidden)]
70pub mod prelude {
71 pub use super::{BaseArrayItem_1, IBaseArrayItem_1, IBaseArrayItem_1Methods};
72 #[cfg(feature = "app-struct_object-baseitem")]
73 pub use crate::app::struct_object::baseitem::IBaseItemMethods;
74 #[cfg(feature = "app-struct_object-basepiece")]
75 pub use crate::app::struct_object::basepiece::IBasePieceMethods;
76 #[cfg(feature = "system-object")]
77 pub use crate::system::object::IObjectMethods;
78 pub use crate::{
79 app::struct_object::{baseitem::IBaseItem, basepiece::IBasePiece},
80 system::object::IObject,
81 };
82}