Skip to main content

engage/generated/app/
mapbattleinfowindowsingle.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "app-mapbattleinfowindowsingle-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/mapbattleinfowindowsingle/MapBattleInfoWindowSingle.md"))]
11    #[::unity::class(namespace = "App", name = "MapBattleInfoWindowSingle")]
12    #[parent(crate::system::object::Object)]
13    pub struct MapBattleInfoWindowSingle {
14        #[offset(16)]
15        #[rename(name = "m_MapBattleInfoParamSetter")]
16        pub m_map_battle_info_param_setter: crate::app::mapbattleinfoparamsetter::MapBattleInfoParamSetter,
17        #[offset(24)]
18        #[rename(name = "m_SideType")]
19        pub m_side_type: crate::app::battleside::BattleSide_Type,
20    }
21}
22
23#[cfg(feature = "app-mapbattleinfowindowsingle-types")]
24pub use __types::*;
25
26#[cfg(feature = "app-mapbattleinfowindowsingle")]
27pub trait IMapBattleInfoWindowSingleMethods: IMapBattleInfoWindowSingle {
28    #[doc = "`.ctor(crate::app::battleside::BattleSide_Type)` overload"]
29    fn ctor(self, side_type: impl ::core::convert::Into<crate::app::battleside::BattleSide_Type>) -> () {
30        unsafe {
31            let __receiver =
32                <MapBattleInfoWindowSingle as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
33            ::unity::il2cpp_call!((::unity::module_base()+0x2999140usize)as*mut u8,();
34(MapBattleInfoWindowSingle)__receiver,(crate::app::battleside::BattleSide_Type)::core::convert::Into::into(side_type))
35        }
36    }
37    #[doc = "`Setup(crate::unity_engine::gameobject::GameObject)` overload"]
38    fn setup(self, game_object: impl ::core::convert::Into<crate::unity_engine::gameobject::GameObject>) -> bool {
39        unsafe {
40            let __receiver =
41                <MapBattleInfoWindowSingle as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
42            ::unity::il2cpp_call!((::unity::module_base()+0x2999170usize)as*mut u8,bool;
43(MapBattleInfoWindowSingle)__receiver,(crate::unity_engine::gameobject::GameObject)::core::convert::Into::into(game_object))
44        }
45    }
46    #[doc = "`SetBattleInfo(bool, crate::app::battleinfo::BattleInfo, crate::app::battlescenelist::BattleSceneList)` overload"]
47    fn set_battle_info(
48        self,
49        b_show_wdw: impl ::core::convert::Into<bool>,
50        info: impl ::core::convert::Into<crate::app::battleinfo::BattleInfo>,
51        scene_list: impl ::core::convert::Into<crate::app::battlescenelist::BattleSceneList>,
52    ) -> () {
53        unsafe {
54            let __receiver =
55                <MapBattleInfoWindowSingle as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
56            ::unity::il2cpp_call!((::unity::module_base()+0x29982e0usize)as*mut u8,();
57(MapBattleInfoWindowSingle)__receiver,(bool)::core::convert::Into::into(b_show_wdw),(crate::app::battleinfo::BattleInfo)::core::convert::Into::into(info),(crate::app::battlescenelist::BattleSceneList)::core::convert::Into::into(scene_list))
58        }
59    }
60    #[doc = "`SetWeaponChangeVisible(bool)` overload"]
61    fn set_weapon_change_visible(self, is_visible: impl ::core::convert::Into<bool>) -> () {
62        unsafe {
63            let __receiver =
64                <MapBattleInfoWindowSingle as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
65            ::unity::il2cpp_call!((::unity::module_base()+0x29983b0usize)as*mut u8,();
66(MapBattleInfoWindowSingle)__receiver,(bool)::core::convert::Into::into(is_visible))
67        }
68    }
69    #[doc = "`IsSimple()` overload"]
70    fn is_simple(self) -> bool {
71        unsafe {
72            let __receiver =
73                <MapBattleInfoWindowSingle as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
74            ::unity::il2cpp_call!((::unity::module_base()+0x2999380usize)as*mut u8,bool;
75(MapBattleInfoWindowSingle)__receiver)
76        }
77    }
78}
79
80#[cfg(feature = "app-mapbattleinfowindowsingle")]
81impl<__T: IMapBattleInfoWindowSingle> IMapBattleInfoWindowSingleMethods for __T {}
82
83#[cfg(feature = "app-mapbattleinfowindowsingle")]
84impl MapBattleInfoWindowSingle {
85    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
86        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
87    }
88
89    pub fn setup_method_info() -> &'static ::unity::il2cpp::MethodInfo {
90        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
91    }
92
93    pub fn set_battle_info_method_info() -> &'static ::unity::il2cpp::MethodInfo {
94        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
95    }
96
97    pub fn set_weapon_change_visible_method_info() -> &'static ::unity::il2cpp::MethodInfo {
98        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
99    }
100
101    pub fn is_simple_method_info() -> &'static ::unity::il2cpp::MethodInfo {
102        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
103    }
104}
105
106#[cfg(feature = "app-mapbattleinfowindowsingle")]
107impl MapBattleInfoWindowSingle {
108    #[doc = "`.ctor(crate::app::battleside::BattleSide_Type)` — overload selector"]
109    pub fn new(side_type: crate::app::battleside::BattleSide_Type) -> Self {
110        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
111            panic!(
112                "{}
113::{}
114 failed to instantiate",
115                ::core::stringify!(MapBattleInfoWindowSingle),
116                ::core::stringify!(new),
117            )
118        });
119        <Self as IMapBattleInfoWindowSingleMethods>::ctor(this, side_type);
120        this
121    }
122}
123
124#[cfg(feature = "app-mapbattleinfowindowsingle")]
125#[doc(hidden)]
126pub mod prelude {
127    pub use super::{IMapBattleInfoWindowSingle, IMapBattleInfoWindowSingleMethods, MapBattleInfoWindowSingle};
128    pub use crate::system::object::IObject;
129    #[cfg(feature = "system-object")]
130    pub use crate::system::object::IObjectMethods;
131}