engage/generated/app/
viewmode.rs1#[cfg(feature = "app-viewmode-types")]
4mod __types {
5 #[allow(unused_imports)] use ::unity::prelude::*;
6
7 use super::*;
8 use crate::system::{
9 object::{IObject, Object},
10 r#enum::{Enum, IEnum},
11 valuetype::{IValueType, ValueType},
12 };
13
14 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/viewmode/ViewMode.md"))]
15 #[::unity::class(namespace = "App", name = "ViewMode")]
16 #[parent(crate::system::object::Object)]
17 pub struct ViewMode {
18 #[static_field]
19 #[rename(name = "s_Transition")]
20 pub s_transition: f32,
21 #[static_field]
22 #[rename(name = "s_Mode")]
23 pub s_mode: crate::app::viewmode::ViewMode_Mode,
24 #[static_field]
25 #[rename(name = "s_Stack")]
26 pub s_stack: crate::system::collections::generic::stack_1::Stack_1<crate::app::viewmode::ViewMode_Mode>,
27 #[static_field]
28 #[rename(name = "s_BmapSkinQuality")]
29 pub s_bmap_skin_quality: crate::unity_engine::skinquality::SkinQuality,
30 #[static_field]
31 #[rename(name = "m_ModeThreshold")]
32 pub m_mode_threshold: crate::app::gameparam::GameParam_Holder,
33 }
34
35 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/viewmode/ViewMode_Mode.md"))]
36 #[repr(C)]
37 #[derive(::core::clone::Clone, ::core::marker::Copy, ::core::fmt::Debug, ::core::cmp::PartialEq, ::core::cmp::Eq)]
38 pub struct ViewMode_Mode {
39 pub value: i32,
40 }
41 impl ::unity::ClassIdentity for ViewMode_Mode {
42 const NAME: &'static str = "ViewMode.Mode";
43 const NAMESPACE: &'static str = "App";
44
45 fn class() -> ::unity::Class {
46 static CACHE: ::std::sync::OnceLock<::unity::Class> = ::std::sync::OnceLock::new();
47 *CACHE.get_or_init(|| ::unity::Class::lookup(Self::NAMESPACE, Self::NAME))
48 }
49 }
50 impl ::unity::IlType for ViewMode_Mode {
51 fn il_type() -> &'static ::unity::il2cpp::Il2CppType {
52 &<Self as ::unity::ClassIdentity>::class().raw()._1.byval_arg
53 }
54 }
55 impl ViewMode_Mode {
56 pub fn none() -> Self {
57 Self { value: 0 }
58 }
59
60 pub fn bmap() -> Self {
61 Self { value: 1 }
62 }
63
64 pub fn combat() -> Self {
65 Self { value: 2 }
66 }
67
68 pub fn kizuna() -> Self {
69 Self { value: 3 }
70 }
71
72 pub fn hub() -> Self {
73 Self { value: 4 }
74 }
75
76 pub fn ride() -> Self {
77 Self { value: 5 }
78 }
79
80 pub fn gmap() -> Self {
81 Self { value: 6 }
82 }
83
84 pub fn demo() -> Self {
85 Self { value: 7 }
86 }
87 }
88}
89
90#[cfg(feature = "app-viewmode-types")]
91pub use __types::*;
92
93#[cfg(feature = "app-viewmode")]
94impl ViewMode {
95 #[doc = "`get_ModeThreshold()` overload"]
96 pub fn get_mode_threshold() -> f32 {
97 unsafe {
98 ::unity::il2cpp_call!((::unity::module_base()+0x21c1160usize)as*mut u8,f32;
99 )
100 }
101 }
102
103 #[doc = "`GetMode()` overload"]
104 pub fn get_mode() -> crate::app::viewmode::ViewMode_Mode {
105 unsafe {
106 ::unity::il2cpp_call!((::unity::module_base()+0x21c11d0usize)as*mut u8,crate::app::viewmode::ViewMode_Mode;
107 )
108 }
109 }
110
111 #[doc = "`GetBmapSkinQuality()` overload"]
112 pub fn get_bmap_skin_quality() -> crate::unity_engine::skinquality::SkinQuality {
113 unsafe {
114 ::unity::il2cpp_call!((::unity::module_base()+0x21c1320usize)as*mut u8,crate::unity_engine::skinquality::SkinQuality;
115 )
116 }
117 }
118
119 #[doc = "`GetBmapAlpha()` overload"]
120 pub fn get_bmap_alpha() -> f32 {
121 unsafe {
122 ::unity::il2cpp_call!((::unity::module_base()+0x21c1390usize)as*mut u8,f32;
123 )
124 }
125 }
126
127 #[doc = "`IsBmapShowing()` overload"]
128 pub fn is_bmap_showing() -> bool {
129 unsafe {
130 ::unity::il2cpp_call!((::unity::module_base()+0x21c1590usize)as*mut u8,bool;
131 )
132 }
133 }
134
135 #[doc = "`GetTransition()` overload"]
136 pub fn get_transition() -> f32 {
137 unsafe {
138 ::unity::il2cpp_call!((::unity::module_base()+0x21c1880usize)as*mut u8,f32;
139 )
140 }
141 }
142
143 #[doc = "`SetMode(crate::app::viewmode::ViewMode_Mode)` overload"]
144 pub fn set_mode(mode: impl ::core::convert::Into<crate::app::viewmode::ViewMode_Mode>) -> () {
145 unsafe {
146 ::unity::il2cpp_call!((::unity::module_base()+0x21c18f0usize)as*mut u8,();
147(crate::app::viewmode::ViewMode_Mode)::core::convert::Into::into(mode))
148 }
149 }
150
151 #[doc = "`SetMode(crate::unity_engine::camera::Camera, crate::app::viewmode::ViewMode_Mode)` overload"]
152 pub fn set_mode_2(
153 camera: impl ::core::convert::Into<crate::unity_engine::camera::Camera>,
154 mode: impl ::core::convert::Into<crate::app::viewmode::ViewMode_Mode>,
155 ) -> () {
156 unsafe {
157 ::unity::il2cpp_call!((::unity::module_base()+0x21c1970usize)as*mut u8,();
158(crate::unity_engine::camera::Camera)::core::convert::Into::into(camera),(crate::app::viewmode::ViewMode_Mode)::core::convert::Into::into(mode))
159 }
160 }
161
162 #[doc = "`PushMode(crate::app::viewmode::ViewMode_Mode)` overload"]
163 pub fn push_mode(mode: impl ::core::convert::Into<crate::app::viewmode::ViewMode_Mode>) -> () {
164 unsafe {
165 ::unity::il2cpp_call!((::unity::module_base()+0x21c2e60usize)as*mut u8,();
166(crate::app::viewmode::ViewMode_Mode)::core::convert::Into::into(mode))
167 }
168 }
169
170 #[doc = "`PopMode()` overload"]
171 pub fn pop_mode() -> () {
172 unsafe {
173 ::unity::il2cpp_call!((::unity::module_base()+0x21c3070usize)as*mut u8,();
174 )
175 }
176 }
177
178 #[doc = "`SetTransition(f32)` overload"]
179 pub fn set_transition(transition: impl ::core::convert::Into<f32>) -> () {
180 unsafe {
181 ::unity::il2cpp_call!((::unity::module_base()+0x21c3150usize)as*mut u8,();
182(f32)::core::convert::Into::into(transition))
183 }
184 }
185
186 #[doc = "`SetLayerCullingMask(crate::unity_engine::camera::Camera, ::unity::Il2CppString, bool)` overload"]
187 pub fn set_layer_culling_mask(
188 camera: impl ::core::convert::Into<crate::unity_engine::camera::Camera>,
189 name: impl ::core::convert::Into<::unity::Il2CppString>,
190 enable: impl ::core::convert::Into<bool>,
191 ) -> () {
192 unsafe {
193 ::unity::il2cpp_call!((::unity::module_base()+0x21c31d0usize)as*mut u8,();
194(crate::unity_engine::camera::Camera)::core::convert::Into::into(camera),(::unity::Il2CppString)::core::convert::Into::into(name),(bool)::core::convert::Into::into(enable))
195 }
196 }
197
198 #[doc = "`SetTransition(crate::unity_engine::camera::Camera, f32)` overload"]
199 pub fn set_transition_2(
200 camera: impl ::core::convert::Into<crate::unity_engine::camera::Camera>,
201 transition: impl ::core::convert::Into<f32>,
202 ) -> () {
203 unsafe {
204 ::unity::il2cpp_call!((::unity::module_base()+0x21c1a60usize)as*mut u8,();
205(crate::unity_engine::camera::Camera)::core::convert::Into::into(camera),(f32)::core::convert::Into::into(transition))
206 }
207 }
208
209 #[doc = "`UpdateBoostMode(bool)` overload"]
210 pub fn update_boost_mode(is_boost: impl ::core::convert::Into<bool>) -> () {
211 unsafe {
212 ::unity::il2cpp_call!((::unity::module_base()+0x21c32b0usize)as*mut u8,();
213(bool)::core::convert::Into::into(is_boost))
214 }
215 }
216
217 #[doc = "`.cctor()` overload"]
218 pub fn cctor() -> () {
219 unsafe {
220 ::unity::il2cpp_call!((::unity::module_base()+0x21c32d0usize)as*mut u8,();
221 )
222 }
223 }
224}
225
226#[cfg(feature = "app-viewmode")]
227pub trait IViewModeMethods: IViewMode {
228 #[doc = "`.ctor()` overload"]
229 fn ctor(self) -> () {
230 unsafe {
231 let __receiver = <ViewMode as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
232 ::unity::il2cpp_call!((::unity::module_base()+0x21c32c0usize)as*mut u8,();
233(ViewMode)__receiver)
234 }
235 }
236}
237
238#[cfg(feature = "app-viewmode")]
239impl<__T: IViewMode> IViewModeMethods for __T {}
240
241#[cfg(feature = "app-viewmode")]
242impl ViewMode {
243 pub fn get_mode_threshold_method_info() -> &'static ::unity::il2cpp::MethodInfo {
244 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
245 }
246
247 pub fn get_mode_method_info() -> &'static ::unity::il2cpp::MethodInfo {
248 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
249 }
250
251 pub fn get_bmap_skin_quality_method_info() -> &'static ::unity::il2cpp::MethodInfo {
252 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
253 }
254
255 pub fn get_bmap_alpha_method_info() -> &'static ::unity::il2cpp::MethodInfo {
256 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
257 }
258
259 pub fn is_bmap_showing_method_info() -> &'static ::unity::il2cpp::MethodInfo {
260 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
261 }
262
263 pub fn get_transition_method_info() -> &'static ::unity::il2cpp::MethodInfo {
264 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
265 }
266
267 pub fn set_mode_method_info() -> &'static ::unity::il2cpp::MethodInfo {
268 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
269 }
270
271 pub fn set_mode_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
272 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
273 }
274
275 pub fn push_mode_method_info() -> &'static ::unity::il2cpp::MethodInfo {
276 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
277 }
278
279 pub fn pop_mode_method_info() -> &'static ::unity::il2cpp::MethodInfo {
280 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
281 }
282
283 pub fn set_transition_method_info() -> &'static ::unity::il2cpp::MethodInfo {
284 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
285 }
286
287 pub fn set_layer_culling_mask_method_info() -> &'static ::unity::il2cpp::MethodInfo {
288 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[11]
289 }
290
291 pub fn set_transition_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
292 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[12]
293 }
294
295 pub fn update_boost_mode_method_info() -> &'static ::unity::il2cpp::MethodInfo {
296 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[13]
297 }
298
299 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
300 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[14]
301 }
302
303 pub fn cctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
304 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[15]
305 }
306}
307
308#[cfg(feature = "app-viewmode")]
309impl ViewMode {
310 #[doc = "`.ctor()` — no args"]
311 pub fn new() -> Self {
312 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
313 panic!(
314 "{}
315::{}
316 failed to instantiate",
317 ::core::stringify!(ViewMode),
318 ::core::stringify!(new),
319 )
320 });
321 <Self as IViewModeMethods>::ctor(this);
322 this
323 }
324}
325
326#[cfg(feature = "app-viewmode")]
327#[doc(hidden)]
328pub mod prelude {
329 pub use super::{IViewMode, IViewModeMethods, ViewMode, ViewMode_Mode};
330 #[cfg(feature = "system-object")]
331 pub use crate::system::object::IObjectMethods;
332 #[cfg(feature = "system-enum")]
333 pub use crate::system::r#enum::IEnumMethods;
334 #[cfg(feature = "system-valuetype")]
335 pub use crate::system::valuetype::IValueTypeMethods;
336 pub use crate::system::{object::IObject, r#enum::IEnum, valuetype::IValueType};
337}