Skip to main content

engage/generated/app/
mapimagetalk.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "app-mapimagetalk-types")]
4mod __types {
5    #[allow(unused_imports)] use ::unity::prelude::*;
6
7    use super::*;
8    use crate::{
9        app::mapimagecorebit::{IMapImageCoreBit, MapImageCoreBit},
10        system::object::{IObject, Object},
11    };
12
13    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/mapimagetalk/MapImageTalk.md"))]
14    #[::unity::class(namespace = "App", name = "MapImageTalk")]
15    #[parent(crate::app::mapimagecorebit::MapImageCoreBit)]
16    pub struct MapImageTalk {}
17}
18
19#[cfg(feature = "app-mapimagetalk-types")]
20pub use __types::*;
21
22#[cfg(feature = "app-mapimagetalk")]
23impl MapImageTalk {
24    #[doc = "`IsTalk(crate::app::unit::Unit, crate::app::unit::Unit)` overload"]
25    pub fn is_talk(from: impl ::core::convert::Into<crate::app::unit::Unit>, to: impl ::core::convert::Into<crate::app::unit::Unit>) -> bool {
26        unsafe {
27            ::unity::il2cpp_call!((::unity::module_base()+0x2062a90usize)as*mut u8,bool;
28(crate::app::unit::Unit)::core::convert::Into::into(from),(crate::app::unit::Unit)::core::convert::Into::into(to))
29        }
30    }
31}
32
33#[cfg(feature = "app-mapimagetalk")]
34pub trait IMapImageTalkMethods: IMapImageTalk {
35    #[doc = "`Update(crate::app::unit::Unit)` overload"]
36    fn update(self, from: impl ::core::convert::Into<crate::app::unit::Unit>) -> () {
37        unsafe {
38            let __receiver = <MapImageTalk as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
39            ::unity::il2cpp_call!((::unity::module_base()+0x2062fb0usize)as*mut u8,();
40(MapImageTalk)__receiver,(crate::app::unit::Unit)::core::convert::Into::into(from))
41        }
42    }
43    #[doc = "`IsImmediate(i32, i32)` overload"]
44    fn is_immediate(self, x: impl ::core::convert::Into<i32>, z: impl ::core::convert::Into<i32>) -> bool {
45        unsafe {
46            let __receiver = <MapImageTalk as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
47            ::unity::il2cpp_call!((::unity::module_base()+0x2063be0usize)as*mut u8,bool;
48(MapImageTalk)__receiver,(i32)::core::convert::Into::into(x),(i32)::core::convert::Into::into(z))
49        }
50    }
51    #[doc = "`.ctor()` overload"]
52    fn ctor(self) -> () {
53        unsafe {
54            let __receiver = <MapImageTalk as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
55            ::unity::il2cpp_call!((::unity::module_base()+0x2064030usize)as*mut u8,();
56(MapImageTalk)__receiver)
57        }
58    }
59}
60
61#[cfg(feature = "app-mapimagetalk")]
62impl<__T: IMapImageTalk> IMapImageTalkMethods for __T {}
63
64#[cfg(feature = "app-mapimagetalk")]
65impl MapImageTalk {
66    pub fn is_talk_method_info() -> &'static ::unity::il2cpp::MethodInfo {
67        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
68    }
69
70    pub fn update_method_info() -> &'static ::unity::il2cpp::MethodInfo {
71        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
72    }
73
74    pub fn is_immediate_method_info() -> &'static ::unity::il2cpp::MethodInfo {
75        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
76    }
77
78    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
79        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
80    }
81}
82
83#[cfg(feature = "app-mapimagetalk")]
84impl MapImageTalk {
85    #[doc = "`.ctor()` — no args"]
86    pub fn new() -> Self {
87        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
88            panic!(
89                "{}
90::{}
91 failed to instantiate",
92                ::core::stringify!(MapImageTalk),
93                ::core::stringify!(new),
94            )
95        });
96        <Self as IMapImageTalkMethods>::ctor(this);
97        this
98    }
99}
100
101#[cfg(feature = "app-mapimagetalk")]
102#[doc(hidden)]
103pub mod prelude {
104    pub use super::{IMapImageTalk, IMapImageTalkMethods, MapImageTalk};
105    #[cfg(feature = "app-mapimagecorebit")]
106    pub use crate::app::mapimagecorebit::IMapImageCoreBitMethods;
107    #[cfg(feature = "system-object")]
108    pub use crate::system::object::IObjectMethods;
109    pub use crate::{app::mapimagecorebit::IMapImageCoreBit, system::object::IObject};
110}