Skip to main content

engage/generated/app/
sortiereliancemanager.rs

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