Skip to main content

engage/generated/app/
supportinfo.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "app-supportinfo-types")]
4mod __types {
5    #[allow(unused_imports)] use ::unity::prelude::*;
6
7    use super::*;
8    use crate::{
9        system::object::{IObject, Object},
10        unity_engine::{
11            behaviour::{Behaviour, IBehaviour},
12            component::{Component, IComponent},
13            monobehaviour::{IMonoBehaviour, MonoBehaviour},
14            object_2::{IObject_2, Object_2},
15        },
16    };
17
18    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/supportinfo/SupportInfo.md"))]
19    #[::unity::class(namespace = "App", name = "SupportInfo")]
20    #[parent(crate::unity_engine::monobehaviour::MonoBehaviour)]
21    pub struct SupportInfo {
22        #[offset(24)]
23        #[rename(name = "m_SideType")]
24        pub m_side_type: crate::app::battleside::BattleSide_Type,
25        #[offset(28)]
26        #[rename(name = "m_Hit")]
27        pub m_hit: i32,
28        #[offset(32)]
29        #[rename(name = "m_Avoid")]
30        pub m_avoid: i32,
31        #[offset(36)]
32        #[rename(name = "m_Critical")]
33        pub m_critical: i32,
34        #[offset(40)]
35        #[rename(name = "m_Secure")]
36        pub m_secure: i32,
37        #[offset(48)]
38        #[rename(name = "m_SupportUnits")]
39        pub m_support_units: ::unity::Array<crate::app::unit::Unit>,
40        #[offset(56)]
41        #[rename(name = "m_SkillArray")]
42        pub m_skill_array: crate::app::skillarray::SkillArray,
43    }
44}
45
46#[cfg(feature = "app-supportinfo-types")]
47pub use __types::*;
48
49#[cfg(feature = "app-supportinfo")]
50pub trait ISupportInfoMethods: ISupportInfo {
51    #[doc = "`SetBattleInfo(crate::app::battleinfo::BattleInfo, crate::app::battleside::BattleSide_Type)` overload"]
52    fn set_battle_info(
53        self,
54        info: impl ::core::convert::Into<crate::app::battleinfo::BattleInfo>,
55        side_type: impl ::core::convert::Into<crate::app::battleside::BattleSide_Type>,
56    ) -> () {
57        unsafe {
58            let __receiver = <SupportInfo as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
59            ::unity::il2cpp_call!((::unity::module_base()+0x20aec20usize)as*mut u8,();
60(SupportInfo)__receiver,(crate::app::battleinfo::BattleInfo)::core::convert::Into::into(info),(crate::app::battleside::BattleSide_Type)::core::convert::Into::into(side_type))
61        }
62    }
63    #[doc = "`.ctor()` overload"]
64    fn ctor(self) -> () {
65        unsafe {
66            let __receiver = <SupportInfo as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
67            ::unity::il2cpp_call!((::unity::module_base()+0x20aece0usize)as*mut u8,();
68(SupportInfo)__receiver)
69        }
70    }
71}
72
73#[cfg(feature = "app-supportinfo")]
74impl<__T: ISupportInfo> ISupportInfoMethods for __T {}
75
76#[cfg(feature = "app-supportinfo")]
77impl SupportInfo {
78    pub fn set_battle_info_method_info() -> &'static ::unity::il2cpp::MethodInfo {
79        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
80    }
81
82    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
83        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
84    }
85}
86
87#[cfg(feature = "app-supportinfo")]
88impl SupportInfo {
89    #[doc = "`.ctor()` — no args"]
90    pub fn new() -> Self {
91        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
92            panic!(
93                "{}
94::{}
95 failed to instantiate",
96                ::core::stringify!(SupportInfo),
97                ::core::stringify!(new),
98            )
99        });
100        <Self as ISupportInfoMethods>::ctor(this);
101        this
102    }
103}
104
105#[cfg(feature = "app-supportinfo")]
106#[doc(hidden)]
107pub mod prelude {
108    pub use super::{ISupportInfo, ISupportInfoMethods, SupportInfo};
109    #[cfg(feature = "system-object")]
110    pub use crate::system::object::IObjectMethods;
111    #[cfg(feature = "unity_engine-behaviour")]
112    pub use crate::unity_engine::behaviour::IBehaviourMethods;
113    #[cfg(feature = "unity_engine-component")]
114    pub use crate::unity_engine::component::IComponentMethods;
115    #[cfg(feature = "unity_engine-monobehaviour")]
116    pub use crate::unity_engine::monobehaviour::IMonoBehaviourMethods;
117    #[cfg(feature = "unity_engine-object_2")]
118    pub use crate::unity_engine::object_2::IObject_2Methods;
119    pub use crate::{
120        system::object::IObject,
121        unity_engine::{behaviour::IBehaviour, component::IComponent, monobehaviour::IMonoBehaviour, object_2::IObject_2},
122    };
123}