engage/generated/app/
mapimagecost.rs1#[cfg(feature = "app-mapimagecost-types")]
4mod __types {
5 #[allow(unused_imports)] use ::unity::prelude::*;
6
7 use super::*;
8 use crate::{
9 app::{
10 mapimagecore_1::{IMapImageCore_1, MapImageCore_1},
11 mapimagecorebyte::{IMapImageCoreByte, MapImageCoreByte},
12 mapimageindex::{IMapImageIndex, MapImageIndex},
13 },
14 system::object::{IObject, Object},
15 };
16
17 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/mapimagecost/MapImageCost.md"))]
18 #[::unity::class(namespace = "App", name = "MapImageCost")]
19 #[parent(crate::app::mapimagecorebyte::MapImageCoreByte)]
20 pub struct MapImageCost {}
21}
22
23#[cfg(feature = "app-mapimagecost-types")]
24pub use __types::*;
25
26#[cfg(feature = "app-mapimagecost")]
27pub trait IMapImageCostMethods: IMapImageCost {
28 #[doc = "`Update()` overload"]
29 fn update(self) -> () {
30 unsafe {
31 let __receiver = <MapImageCost as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
32 ::unity::il2cpp_call!((::unity::module_base()+0x205fb50usize)as*mut u8,();
33(MapImageCost)__receiver)
34 }
35 }
36 #[doc = "`Update(i32, i32)` overload"]
37 fn update_2(self, x: impl ::core::convert::Into<i32>, z: impl ::core::convert::Into<i32>) -> () {
38 unsafe {
39 let __receiver = <MapImageCost as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
40 ::unity::il2cpp_call!((::unity::module_base()+0x205fe80usize)as*mut u8,();
41(MapImageCost)__receiver,(i32)::core::convert::Into::into(x),(i32)::core::convert::Into::into(z))
42 }
43 }
44 #[doc = "`.ctor()` overload"]
45 fn ctor(self) -> () {
46 unsafe {
47 let __receiver = <MapImageCost as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
48 ::unity::il2cpp_call!((::unity::module_base()+0x2060010usize)as*mut u8,();
49(MapImageCost)__receiver)
50 }
51 }
52}
53
54#[cfg(feature = "app-mapimagecost")]
55impl<__T: IMapImageCost> IMapImageCostMethods for __T {}
56
57#[cfg(feature = "app-mapimagecost")]
58impl MapImageCost {
59 pub fn update_method_info() -> &'static ::unity::il2cpp::MethodInfo {
60 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
61 }
62
63 pub fn update_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
64 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
65 }
66
67 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
68 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
69 }
70}
71
72#[cfg(feature = "app-mapimagecost")]
73impl MapImageCost {
74 #[doc = "`.ctor()` — no args"]
75 pub fn new() -> Self {
76 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
77 panic!(
78 "{}
79::{}
80 failed to instantiate",
81 ::core::stringify!(MapImageCost),
82 ::core::stringify!(new),
83 )
84 });
85 <Self as IMapImageCostMethods>::ctor(this);
86 this
87 }
88}
89
90#[cfg(feature = "app-mapimagecost")]
91#[doc(hidden)]
92pub mod prelude {
93 pub use super::{IMapImageCost, IMapImageCostMethods, MapImageCost};
94 #[cfg(feature = "app-mapimagecore_1")]
95 pub use crate::app::mapimagecore_1::IMapImageCore_1Methods;
96 #[cfg(feature = "app-mapimagecorebyte")]
97 pub use crate::app::mapimagecorebyte::IMapImageCoreByteMethods;
98 #[cfg(feature = "app-mapimageindex")]
99 pub use crate::app::mapimageindex::IMapImageIndexMethods;
100 #[cfg(feature = "system-object")]
101 pub use crate::system::object::IObjectMethods;
102 pub use crate::{
103 app::{mapimagecore_1::IMapImageCore_1, mapimagecorebyte::IMapImageCoreByte, mapimageindex::IMapImageIndex},
104 system::object::IObject,
105 };
106}