engage/generated/app/
refreshcommon.rs1#[cfg(feature = "app-refreshcommon-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/refreshcommon/RefreshCommon.md"))]
11 #[::unity::class(namespace = "App", name = "RefreshCommon")]
12 #[parent(crate::system::object::Object)]
13 pub struct RefreshCommon {
14 #[static_field]
15 #[rename(name = "UnitCount")]
16 pub unit_count: i32,
17 #[static_field]
18 #[rename(name = "FacilityAidArray")]
19 pub facility_aid_array: ::unity::Array<::unity::Il2CppString>,
20 #[static_field]
21 #[rename(name = "FacilityCount")]
22 pub facility_count: i32,
23 }
24}
25
26#[cfg(feature = "app-refreshcommon-types")]
27pub use __types::*;
28
29#[cfg(feature = "app-refreshcommon")]
30impl RefreshCommon {
31 #[doc = "`GetFacilityIndex(::unity::Il2CppString)` overload"]
32 pub fn get_facility_index(facility_aid: impl ::core::convert::Into<::unity::Il2CppString>) -> i32 {
33 unsafe {
34 ::unity::il2cpp_call!((::unity::module_base()+0x22b7c50usize)as*mut u8,i32;
35(::unity::Il2CppString)::core::convert::Into::into(facility_aid))
36 }
37 }
38
39 #[doc = "`GetUnitRandom(crate::app::unit::Unit)` overload"]
40 pub fn get_unit_random(excepted_unit: impl ::core::convert::Into<crate::app::unit::Unit>) -> crate::app::unit::Unit {
41 unsafe {
42 ::unity::il2cpp_call!((::unity::module_base()+0x22b7d90usize)as*mut u8,crate::app::unit::Unit;
43(crate::app::unit::Unit)::core::convert::Into::into(excepted_unit))
44 }
45 }
46
47 #[doc = "`GetUnitEntrusted(crate::app::unit::Unit)` overload"]
48 pub fn get_unit_entrusted(another_unit: impl ::core::convert::Into<crate::app::unit::Unit>) -> crate::app::unit::Unit {
49 unsafe {
50 ::unity::il2cpp_call!((::unity::module_base()+0x22b7e50usize)as*mut u8,crate::app::unit::Unit;
51(crate::app::unit::Unit)::core::convert::Into::into(another_unit))
52 }
53 }
54
55 #[doc = "`GetUnitEntrusted(::unity::Array<crate::app::unit::Unit>)` overload"]
56 pub fn get_unit_entrusted_2(unit_array: impl ::core::convert::Into<::unity::Array<crate::app::unit::Unit>>) -> () {
57 unsafe {
58 ::unity::il2cpp_call!((::unity::module_base()+0x22b8200usize)as*mut u8,();
59(::unity::Array<crate::app::unit::Unit>)::core::convert::Into::into(unit_array))
60 }
61 }
62
63 #[doc = "`CalcUnitEntrusted(crate::app::unit::Unit)` overload"]
64 pub fn calc_unit_entrusted(another_unit: impl ::core::convert::Into<crate::app::unit::Unit>) -> crate::app::unit::Unit {
65 unsafe {
66 ::unity::il2cpp_call!((::unity::module_base()+0x22b7f90usize)as*mut u8,crate::app::unit::Unit;
67(crate::app::unit::Unit)::core::convert::Into::into(another_unit))
68 }
69 }
70
71 #[doc = "`.cctor()` overload"]
72 pub fn cctor() -> () {
73 unsafe {
74 ::unity::il2cpp_call!((::unity::module_base()+0x22b85f0usize)as*mut u8,();
75 )
76 }
77 }
78}
79
80#[cfg(feature = "app-refreshcommon")]
81pub trait IRefreshCommonMethods: IRefreshCommon {
82 #[doc = "`.ctor()` overload"]
83 fn ctor(self) -> () {
84 unsafe {
85 let __receiver = <RefreshCommon as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
86 ::unity::il2cpp_call!((::unity::module_base()+0x22b85e0usize)as*mut u8,();
87(RefreshCommon)__receiver)
88 }
89 }
90}
91
92#[cfg(feature = "app-refreshcommon")]
93impl<__T: IRefreshCommon> IRefreshCommonMethods for __T {}
94
95#[cfg(feature = "app-refreshcommon")]
96impl RefreshCommon {
97 pub fn get_facility_index_method_info() -> &'static ::unity::il2cpp::MethodInfo {
98 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
99 }
100
101 pub fn get_unit_random_method_info() -> &'static ::unity::il2cpp::MethodInfo {
102 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
103 }
104
105 pub fn get_unit_entrusted_method_info() -> &'static ::unity::il2cpp::MethodInfo {
106 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
107 }
108
109 pub fn get_unit_entrusted_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
110 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
111 }
112
113 pub fn calc_unit_entrusted_method_info() -> &'static ::unity::il2cpp::MethodInfo {
114 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
115 }
116
117 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
118 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
119 }
120
121 pub fn cctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
122 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
123 }
124}
125
126#[cfg(feature = "app-refreshcommon")]
127impl RefreshCommon {
128 #[doc = "`.ctor()` — no args"]
129 pub fn new() -> Self {
130 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
131 panic!(
132 "{}
133::{}
134 failed to instantiate",
135 ::core::stringify!(RefreshCommon),
136 ::core::stringify!(new),
137 )
138 });
139 <Self as IRefreshCommonMethods>::ctor(this);
140 this
141 }
142}
143
144#[cfg(feature = "app-refreshcommon")]
145#[doc(hidden)]
146pub mod prelude {
147 pub use super::{IRefreshCommon, IRefreshCommonMethods, RefreshCommon};
148 pub use crate::system::object::IObject;
149 #[cfg(feature = "system-object")]
150 pub use crate::system::object::IObjectMethods;
151}