Skip to main content

engage/generated/app/
refreshvariable.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "app-refreshvariable-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/refreshvariable/RefreshVariable.md"))]
11    #[::unity::class(namespace = "App", name = "RefreshVariable")]
12    #[parent(crate::system::object::Object)]
13    pub struct RefreshVariable {
14        #[static_field]
15        #[rename(name = "m_FlagPrefix")]
16        pub m_flag_prefix: ::unity::Il2CppString,
17        #[static_field]
18        #[rename(name = "m_FacilityAid")]
19        pub m_facility_aid: ::unity::Array<::unity::Il2CppString>,
20        #[static_field]
21        #[rename(name = "m_UnitCount")]
22        pub m_unit_count: i32,
23    }
24}
25
26#[cfg(feature = "app-refreshvariable-types")]
27pub use __types::*;
28
29#[cfg(feature = "app-refreshvariable")]
30impl RefreshVariable {
31    #[doc = "`GetFlagName(::unity::Il2CppString)` overload"]
32    pub fn get_flag_name(aid: impl ::core::convert::Into<::unity::Il2CppString>) -> ::unity::Il2CppString {
33        unsafe {
34            ::unity::il2cpp_call!((::unity::module_base()+0x22c7250usize)as*mut u8, ::unity::Il2CppString;
35(::unity::Il2CppString)::core::convert::Into::into(aid))
36        }
37    }
38
39    #[doc = "`GetFlagName(::unity::Il2CppString, i32)` overload"]
40    pub fn get_flag_name_2(
41        aid: impl ::core::convert::Into<::unity::Il2CppString>,
42        unit_index: impl ::core::convert::Into<i32>,
43    ) -> ::unity::Il2CppString {
44        unsafe {
45            ::unity::il2cpp_call!((::unity::module_base()+0x22c7310usize)as*mut u8, ::unity::Il2CppString;
46(::unity::Il2CppString)::core::convert::Into::into(aid),(i32)::core::convert::Into::into(unit_index))
47        }
48    }
49
50    #[doc = "`RegistGlobalFlags()` overload"]
51    pub fn regist_global_flags() -> () {
52        unsafe {
53            ::unity::il2cpp_call!((::unity::module_base()+0x22c7440usize)as*mut u8,();
54            )
55        }
56    }
57
58    #[doc = "`Clear()` overload"]
59    pub fn clear() -> () {
60        unsafe {
61            ::unity::il2cpp_call!((::unity::module_base()+0x22c7690usize)as*mut u8,();
62            )
63        }
64    }
65
66    #[doc = "`OnCompletedChapter()` overload"]
67    pub fn on_completed_chapter() -> () {
68        unsafe {
69            ::unity::il2cpp_call!((::unity::module_base()+0x22c7b00usize)as*mut u8,();
70            )
71        }
72    }
73
74    #[doc = "`HadVisited(::unity::Il2CppString)` overload"]
75    pub fn had_visited(aid: impl ::core::convert::Into<::unity::Il2CppString>) -> bool {
76        unsafe {
77            ::unity::il2cpp_call!((::unity::module_base()+0x22bd330usize)as*mut u8,bool;
78(::unity::Il2CppString)::core::convert::Into::into(aid))
79        }
80    }
81
82    #[doc = "`SetVisited(::unity::Il2CppString, bool)` overload"]
83    pub fn set_visited(aid: impl ::core::convert::Into<::unity::Il2CppString>, visited: impl ::core::convert::Into<bool>) -> () {
84        unsafe {
85            ::unity::il2cpp_call!((::unity::module_base()+0x22c0430usize)as*mut u8,();
86(::unity::Il2CppString)::core::convert::Into::into(aid),(bool)::core::convert::Into::into(visited))
87        }
88    }
89
90    #[doc = "`GetUnit(::unity::Il2CppString, i32)` overload"]
91    pub fn get_unit(aid: impl ::core::convert::Into<::unity::Il2CppString>, index: impl ::core::convert::Into<i32>) -> crate::app::unit::Unit {
92        unsafe {
93            ::unity::il2cpp_call!((::unity::module_base()+0x22befb0usize)as*mut u8,crate::app::unit::Unit;
94(::unity::Il2CppString)::core::convert::Into::into(aid),(i32)::core::convert::Into::into(index))
95        }
96    }
97
98    #[doc = "`SetUnit(::unity::Il2CppString, i32, crate::app::unit::Unit)` overload"]
99    pub fn set_unit(
100        aid: impl ::core::convert::Into<::unity::Il2CppString>,
101        index: impl ::core::convert::Into<i32>,
102        unit: impl ::core::convert::Into<crate::app::unit::Unit>,
103    ) -> () {
104        unsafe {
105            ::unity::il2cpp_call!((::unity::module_base()+0x22bf1a0usize)as*mut u8,();
106(::unity::Il2CppString)::core::convert::Into::into(aid),(i32)::core::convert::Into::into(index),(crate::app::unit::Unit)::core::convert::Into::into(unit))
107        }
108    }
109
110    #[doc = "`CleanUpUnits()` overload"]
111    pub fn clean_up_units() -> () {
112        unsafe {
113            ::unity::il2cpp_call!((::unity::module_base()+0x22bd850usize)as*mut u8,();
114            )
115        }
116    }
117
118    #[doc = "`.cctor()` overload"]
119    pub fn cctor() -> () {
120        unsafe {
121            ::unity::il2cpp_call!((::unity::module_base()+0x22c7d70usize)as*mut u8,();
122            )
123        }
124    }
125}
126
127#[cfg(feature = "app-refreshvariable")]
128pub trait IRefreshVariableMethods: IRefreshVariable {
129    #[doc = "`.ctor()` overload"]
130    fn ctor(self) -> () {
131        unsafe {
132            let __receiver = <RefreshVariable as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
133            ::unity::il2cpp_call!((::unity::module_base()+0x22c7d60usize)as*mut u8,();
134(RefreshVariable)__receiver)
135        }
136    }
137}
138
139#[cfg(feature = "app-refreshvariable")]
140impl<__T: IRefreshVariable> IRefreshVariableMethods for __T {}
141
142#[cfg(feature = "app-refreshvariable")]
143impl RefreshVariable {
144    pub fn get_flag_name_method_info() -> &'static ::unity::il2cpp::MethodInfo {
145        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
146    }
147
148    pub fn get_flag_name_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
149        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
150    }
151
152    pub fn regist_global_flags_method_info() -> &'static ::unity::il2cpp::MethodInfo {
153        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
154    }
155
156    pub fn clear_method_info() -> &'static ::unity::il2cpp::MethodInfo {
157        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
158    }
159
160    pub fn on_completed_chapter_method_info() -> &'static ::unity::il2cpp::MethodInfo {
161        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
162    }
163
164    pub fn had_visited_method_info() -> &'static ::unity::il2cpp::MethodInfo {
165        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
166    }
167
168    pub fn set_visited_method_info() -> &'static ::unity::il2cpp::MethodInfo {
169        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
170    }
171
172    pub fn get_unit_method_info() -> &'static ::unity::il2cpp::MethodInfo {
173        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
174    }
175
176    pub fn set_unit_method_info() -> &'static ::unity::il2cpp::MethodInfo {
177        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
178    }
179
180    pub fn clean_up_units_method_info() -> &'static ::unity::il2cpp::MethodInfo {
181        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
182    }
183
184    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
185        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
186    }
187
188    pub fn cctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
189        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[11]
190    }
191}
192
193#[cfg(feature = "app-refreshvariable")]
194impl RefreshVariable {
195    #[doc = "`.ctor()` — no args"]
196    pub fn new() -> Self {
197        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
198            panic!(
199                "{}
200::{}
201 failed to instantiate",
202                ::core::stringify!(RefreshVariable),
203                ::core::stringify!(new),
204            )
205        });
206        <Self as IRefreshVariableMethods>::ctor(this);
207        this
208    }
209}
210
211#[cfg(feature = "app-refreshvariable")]
212#[doc(hidden)]
213pub mod prelude {
214    pub use super::{IRefreshVariable, IRefreshVariableMethods, RefreshVariable};
215    pub use crate::system::object::IObject;
216    #[cfg(feature = "system-object")]
217    pub use crate::system::object::IObjectMethods;
218}