engage/generated/app/
mapimagecore_1.rs1#[cfg(feature = "app-mapimagecore_1-types")]
4mod __types {
5 #[allow(unused_imports)] use ::unity::prelude::*;
6
7 use super::*;
8 use crate::{
9 app::mapimageindex::{IMapImageIndex, MapImageIndex},
10 system::object::{IObject, Object},
11 };
12
13 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/mapimagecore_1/MapImageCore_1.md"))]
14 #[::unity::class(namespace = "App", name = "MapImageCore`1")]
15 #[parent(crate::app::mapimageindex::MapImageIndex)]
16 #[parent(crate::system::object::Object)]
17 pub struct MapImageCore_1<T0: ::unity::ClassIdentity> {
18 #[static_field]
19 #[rename(name = "ImageSize")]
20 pub image_size: i32,
21 #[rename(name = "m_Images")]
22 pub m_images: ::unity::Array<T0>,
23 }
24}
25
26#[cfg(feature = "app-mapimagecore_1-types")]
27pub use __types::*;
28
29#[cfg(feature = "app-mapimagecore_1")]
30#[::unity::methods]
31impl<T0: ::unity::ClassIdentity> MapImageCore_1<T0> {
32 #[doc = "`.ctor()` overload"]
33 #[method(name = ".ctor", args = 0)]
34 pub fn ctor(self) -> ();
35
36 #[doc = "`Clear(T0)` overload"]
37 #[method(name = "Clear", args = 1)]
38 pub fn clear(self, v: T0) -> ();
39
40 #[doc = "`CopyFrom(crate::app::mapimagecore_1::MapImageCore_1<T0>)` overload"]
41 #[method(name = "CopyFrom", args = 1)]
42 pub fn copy_from(self, src: crate::app::mapimagecore_1::MapImageCore_1<T0>) -> ();
43
44 #[doc = "`Set(i32, T0)` overload"]
45 #[method(name = "Set", args = 2)]
46 pub fn set(self, index: i32, v: T0) -> ();
47
48 #[doc = "`Set(i32, i32, T0)` overload"]
49 #[method(name = "Set", args = 3)]
50 pub fn set_2(self, x: i32, z: i32, v: T0) -> ();
51
52 #[doc = "`Get(i32)` overload"]
53 #[method(name = "Get", args = 1)]
54 pub fn get(self, index: i32) -> T0;
55
56 #[doc = "`Get(i32, i32)` overload"]
57 #[method(name = "Get", args = 2)]
58 pub fn get_2(self, x: i32, z: i32) -> T0;
59
60 #[doc = "`Add(i32, T0)` overload"]
61 #[method(name = "Add", args = 2, abstract_dispatch)]
62 pub fn add(self, index: i32, v: T0) -> ();
63
64 #[doc = "`Add(i32, i32, T0)` overload"]
65 #[method(name = "Add", args = 3)]
66 pub fn add_2(self, x: i32, z: i32, v: T0) -> ();
67
68 #[doc = "`Dump()` overload"]
69 #[method(name = "Dump", args = 0)]
70 pub fn dump(self) -> ();
71
72 #[doc = "`get_Images()` overload"]
73 #[method(name = "get_Images", args = 0)]
74 pub fn get_images(self) -> ::unity::Array<T0>;
75}
76
77#[cfg(feature = "app-mapimagecore_1")]
78impl<T0: ::unity::ClassIdentity> MapImageCore_1<T0> {
79 #[doc = "`.ctor()` — no args"]
80 pub fn new() -> Self {
81 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
82 panic!(
83 "{}
84::{}
85 failed to instantiate",
86 ::core::stringify!(MapImageCore_1),
87 ::core::stringify!(new),
88 )
89 });
90 <Self as IMapImageCore_1Methods<T0>>::ctor(this);
91 this
92 }
93}
94
95#[cfg(feature = "app-mapimagecore_1")]
96#[doc(hidden)]
97pub mod prelude {
98 pub use super::{IMapImageCore_1, IMapImageCore_1Methods, MapImageCore_1};
99 #[cfg(feature = "app-mapimageindex")]
100 pub use crate::app::mapimageindex::IMapImageIndexMethods;
101 #[cfg(feature = "system-object")]
102 pub use crate::system::object::IObjectMethods;
103 pub use crate::{app::mapimageindex::IMapImageIndex, system::object::IObject};
104}