engage/generated/app/
mapimagehistory.rs1#[cfg(feature = "app-mapimagehistory-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/mapimagehistory/MapImageHistory_HeatMap.md"))]
11 #[::unity::class(namespace = "App", name = "MapImageHistory.HeatMap")]
12 #[parent(crate::system::object::Object)]
13 pub struct MapImageHistory_HeatMap {
14 #[offset(16)]
15 #[rename(name = "m_Maps")]
16 pub m_maps: ::unity::Array<crate::app::mapimagecorebyte::MapImageCoreByte>,
17 }
18
19 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/mapimagehistory/MapImageHistory.md"))]
20 #[::unity::class(namespace = "App", name = "MapImageHistory")]
21 #[parent(crate::system::object::Object)]
22 pub struct MapImageHistory {
23 #[offset(16)]
24 #[rename(name = "UnitMap")]
25 pub unit_map: crate::app::mapimagehistory::MapImageHistory_HeatMap,
26 #[offset(24)]
27 #[rename(name = "BattleMap")]
28 pub battle_map: crate::app::mapimagehistory::MapImageHistory_HeatMap,
29 #[offset(32)]
30 #[rename(name = "DeadMap")]
31 pub dead_map: crate::app::mapimagehistory::MapImageHistory_HeatMap,
32 #[offset(40)]
33 #[rename(name = "m_Cells")]
34 pub m_cells: ::unity::Array<crate::app::mappos::MapPos>,
35 }
36}
37
38#[cfg(feature = "app-mapimagehistory-types")]
39pub use __types::*;
40
41#[cfg(feature = "app-mapimagehistory")]
42pub trait IMapImageHistory_HeatMapMethods: IMapImageHistory_HeatMap {
43 #[doc = "`.ctor()` overload"]
44 fn ctor(self) -> () {
45 unsafe {
46 let __receiver =
47 <MapImageHistory_HeatMap as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
48 ::unity::il2cpp_call!((::unity::module_base()+0x217c660usize)as*mut u8,();
49(MapImageHistory_HeatMap)__receiver)
50 }
51 }
52 #[doc = "`Get(i32)` overload"]
53 fn get(self, index: impl ::core::convert::Into<i32>) -> crate::app::mapimagecorebyte::MapImageCoreByte {
54 unsafe {
55 let __receiver =
56 <MapImageHistory_HeatMap as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
57 ::unity::il2cpp_call!((::unity::module_base()+0x217c7e0usize)as*mut u8,crate::app::mapimagecorebyte::MapImageCoreByte;
58(MapImageHistory_HeatMap)__receiver,(i32)::core::convert::Into::into(index))
59 }
60 }
61 #[doc = "`Get(crate::app::force::Force_Type)` overload"]
62 fn get_2(self, r#type: impl ::core::convert::Into<crate::app::force::Force_Type>) -> crate::app::mapimagecorebyte::MapImageCoreByte {
63 unsafe {
64 let __receiver =
65 <MapImageHistory_HeatMap as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
66 ::unity::il2cpp_call!((::unity::module_base()+0x217c820usize)as*mut u8,crate::app::mapimagecorebyte::MapImageCoreByte;
67(MapImageHistory_HeatMap)__receiver,(crate::app::force::Force_Type)::core::convert::Into::into(r#type))
68 }
69 }
70 #[doc = "`Clear()` overload"]
71 fn clear(self) -> () {
72 unsafe {
73 let __receiver =
74 <MapImageHistory_HeatMap as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
75 ::unity::il2cpp_call!((::unity::module_base()+0x217c860usize)as*mut u8,();
76(MapImageHistory_HeatMap)__receiver)
77 }
78 }
79}
80
81#[cfg(feature = "app-mapimagehistory")]
82impl<__T: IMapImageHistory_HeatMap> IMapImageHistory_HeatMapMethods for __T {}
83
84#[cfg(feature = "app-mapimagehistory")]
85impl MapImageHistory_HeatMap {
86 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
87 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
88 }
89
90 pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
91 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
92 }
93
94 pub fn get_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
95 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
96 }
97
98 pub fn clear_method_info() -> &'static ::unity::il2cpp::MethodInfo {
99 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
100 }
101}
102
103#[cfg(feature = "app-mapimagehistory")]
104impl MapImageHistory_HeatMap {
105 #[doc = "`.ctor()` — no args"]
106 pub fn new() -> Self {
107 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
108 panic!(
109 "{}
110::{}
111 failed to instantiate",
112 ::core::stringify!(MapImageHistory_HeatMap),
113 ::core::stringify!(new),
114 )
115 });
116 <Self as IMapImageHistory_HeatMapMethods>::ctor(this);
117 this
118 }
119}
120
121#[cfg(feature = "app-mapimagehistory")]
122pub trait IMapImageHistoryMethods: IMapImageHistory {
123 #[doc = "`Clear()` overload"]
124 fn clear(self) -> () {
125 unsafe {
126 let __receiver = <MapImageHistory as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
127 ::unity::il2cpp_call!((::unity::module_base()+0x2060a40usize)as*mut u8,();
128(MapImageHistory)__receiver)
129 }
130 }
131 #[doc = "`UpdatePhase()` overload"]
132 fn update_phase(self) -> () {
133 unsafe {
134 let __receiver = <MapImageHistory as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
135 ::unity::il2cpp_call!((::unity::module_base()+0x2060a80usize)as*mut u8,();
136(MapImageHistory)__receiver)
137 }
138 }
139 #[doc = "`AddDead(crate::app::unit::Unit)` overload"]
140 fn add_dead(self, unit: impl ::core::convert::Into<crate::app::unit::Unit>) -> () {
141 unsafe {
142 let __receiver = <MapImageHistory as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
143 ::unity::il2cpp_call!((::unity::module_base()+0x2060d30usize)as*mut u8,();
144(MapImageHistory)__receiver,(crate::app::unit::Unit)::core::convert::Into::into(unit))
145 }
146 }
147 #[doc = "`AddBattle(crate::app::unit::Unit)` overload"]
148 fn add_battle(self, unit: impl ::core::convert::Into<crate::app::unit::Unit>) -> () {
149 unsafe {
150 let __receiver = <MapImageHistory as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
151 ::unity::il2cpp_call!((::unity::module_base()+0x2060e10usize)as*mut u8,();
152(MapImageHistory)__receiver,(crate::app::unit::Unit)::core::convert::Into::into(unit))
153 }
154 }
155 #[doc = "`.ctor()` overload"]
156 fn ctor(self) -> () {
157 unsafe {
158 let __receiver = <MapImageHistory as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
159 ::unity::il2cpp_call!((::unity::module_base()+0x2060ef0usize)as*mut u8,();
160(MapImageHistory)__receiver)
161 }
162 }
163}
164
165#[cfg(feature = "app-mapimagehistory")]
166impl<__T: IMapImageHistory> IMapImageHistoryMethods for __T {}
167
168#[cfg(feature = "app-mapimagehistory")]
169impl MapImageHistory {
170 pub fn clear_method_info() -> &'static ::unity::il2cpp::MethodInfo {
171 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
172 }
173
174 pub fn update_phase_method_info() -> &'static ::unity::il2cpp::MethodInfo {
175 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
176 }
177
178 pub fn add_dead_method_info() -> &'static ::unity::il2cpp::MethodInfo {
179 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
180 }
181
182 pub fn add_battle_method_info() -> &'static ::unity::il2cpp::MethodInfo {
183 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
184 }
185
186 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
187 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
188 }
189}
190
191#[cfg(feature = "app-mapimagehistory")]
192impl MapImageHistory {
193 #[doc = "`.ctor()` — no args"]
194 pub fn new() -> Self {
195 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
196 panic!(
197 "{}
198::{}
199 failed to instantiate",
200 ::core::stringify!(MapImageHistory),
201 ::core::stringify!(new),
202 )
203 });
204 <Self as IMapImageHistoryMethods>::ctor(this);
205 this
206 }
207}
208
209#[cfg(feature = "app-mapimagehistory")]
210#[doc(hidden)]
211pub mod prelude {
212 pub use super::{
213 IMapImageHistory, IMapImageHistoryMethods, IMapImageHistory_HeatMap, IMapImageHistory_HeatMapMethods, MapImageHistory,
214 MapImageHistory_HeatMap,
215 };
216 pub use crate::system::object::IObject;
217 #[cfg(feature = "system-object")]
218 pub use crate::system::object::IObjectMethods;
219}