engage/generated/app/
gameui.rs1#[cfg(feature = "app-gameui-types")]
4mod __types {
5 #[allow(unused_imports)] use ::unity::prelude::*;
6
7 use super::*;
8 use crate::{
9 app::singletonmonobehaviour_1::{ISingletonMonoBehaviour_1, SingletonMonoBehaviour_1},
10 system::{
11 object::{IObject, Object},
12 r#enum::{Enum, IEnum},
13 valuetype::{IValueType, ValueType},
14 },
15 unity_engine::{
16 behaviour::{Behaviour, IBehaviour},
17 component::{Component, IComponent},
18 monobehaviour::{IMonoBehaviour, MonoBehaviour},
19 object_2::{IObject_2, Object_2},
20 },
21 };
22
23 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/gameui/GameUI.md"))]
24 #[::unity::class(namespace = "App", name = "GameUI")]
25 #[parent(crate::app::singletonmonobehaviour_1::SingletonMonoBehaviour_1<crate::app::gameui::GameUI>)]
26 pub struct GameUI {
27 #[static_field]
28 #[rename(name = "UnknownName")]
29 pub unknown_name: ::unity::Il2CppString,
30 }
31
32 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/gameui/GameUI_Priority.md"))]
33 #[repr(C)]
34 #[derive(::core::clone::Clone, ::core::marker::Copy, ::core::fmt::Debug, ::core::cmp::PartialEq, ::core::cmp::Eq)]
35 pub struct GameUI_Priority {
36 pub value: i32,
37 }
38 impl ::unity::ClassIdentity for GameUI_Priority {
39 const NAME: &'static str = "GameUI.Priority";
40 const NAMESPACE: &'static str = "App";
41
42 fn class() -> ::unity::Class {
43 static CACHE: ::std::sync::OnceLock<::unity::Class> = ::std::sync::OnceLock::new();
44 *CACHE.get_or_init(|| ::unity::Class::lookup(Self::NAMESPACE, Self::NAME))
45 }
46 }
47 impl ::unity::IlType for GameUI_Priority {
48 fn il_type() -> &'static ::unity::il2cpp::Il2CppType {
49 &<Self as ::unity::ClassIdentity>::class().raw()._1.byval_arg
50 }
51 }
52 impl GameUI_Priority {
53 pub fn map_unit() -> Self {
54 Self { value: -200 }
55 }
56
57 pub fn map_ui() -> Self {
58 Self { value: -100 }
59 }
60
61 pub fn unit_info() -> Self {
62 Self { value: -50 }
63 }
64
65 pub fn default() -> Self {
66 Self { value: 0 }
67 }
68
69 pub fn level_up() -> Self {
70 Self { value: 10 }
71 }
72
73 pub fn terrain_info() -> Self {
74 Self { value: 50 }
75 }
76
77 pub fn basic_menu() -> Self {
78 Self { value: 500 }
79 }
80
81 pub fn title_bar() -> Self {
82 Self { value: 600 }
83 }
84
85 pub fn tutorial() -> Self {
86 Self { value: 700 }
87 }
88
89 pub fn help() -> Self {
90 Self { value: 800 }
91 }
92
93 pub fn telop() -> Self {
94 Self { value: 1000 }
95 }
96
97 pub fn movie() -> Self {
98 Self { value: 1050 }
99 }
100
101 pub fn achieve() -> Self {
102 Self { value: 1100 }
103 }
104
105 pub fn talk_ui() -> Self {
106 Self { value: 1100 }
107 }
108
109 pub fn fade() -> Self {
110 Self { value: 1200 }
111 }
112
113 pub fn dialog() -> Self {
114 Self { value: 1500 }
115 }
116
117 pub fn debug() -> Self {
118 Self { value: 2000 }
119 }
120 }
121}
122
123#[cfg(feature = "app-gameui-types")]
124pub use __types::*;
125
126#[cfg(feature = "app-gameui")]
127impl GameUI {
128 #[doc = "`GetRoot()` overload"]
129 pub fn get_root() -> crate::unity_engine::gameobject::GameObject {
130 unsafe {
131 ::unity::il2cpp_call!((::unity::module_base()+0x250df40usize)as*mut u8,crate::unity_engine::gameobject::GameObject;
132 )
133 }
134 }
135
136 #[doc = "`GetCanvas(crate::app::gameui::GameUI_Priority)` overload"]
137 pub fn get_canvas(priority: impl ::core::convert::Into<crate::app::gameui::GameUI_Priority>) -> crate::unity_engine::gameobject::GameObject {
138 unsafe {
139 ::unity::il2cpp_call!((::unity::module_base()+0x250dfc0usize)as*mut u8,crate::unity_engine::gameobject::GameObject;
140(crate::app::gameui::GameUI_Priority)::core::convert::Into::into(priority))
141 }
142 }
143
144 #[doc = "`GetCanvas(::unity::Il2CppString, crate::app::gameui::GameUI_Priority)` overload"]
145 pub fn get_canvas_2(
146 name: impl ::core::convert::Into<::unity::Il2CppString>,
147 priority: impl ::core::convert::Into<crate::app::gameui::GameUI_Priority>,
148 ) -> crate::unity_engine::gameobject::GameObject {
149 unsafe {
150 ::unity::il2cpp_call!((::unity::module_base()+0x250e1d0usize)as*mut u8,crate::unity_engine::gameobject::GameObject;
151(::unity::Il2CppString)::core::convert::Into::into(name),(crate::app::gameui::GameUI_Priority)::core::convert::Into::into(priority))
152 }
153 }
154
155 #[doc = "`TryCreateCanvas(crate::unity_engine::gameobject::GameObject, ::unity::Il2CppString, crate::app::gameui::GameUI_Priority)` overload"]
156 pub fn try_create_canvas(
157 parent: impl ::core::convert::Into<crate::unity_engine::gameobject::GameObject>,
158 name: impl ::core::convert::Into<::unity::Il2CppString>,
159 priority: impl ::core::convert::Into<crate::app::gameui::GameUI_Priority>,
160 ) -> crate::unity_engine::gameobject::GameObject {
161 unsafe {
162 ::unity::il2cpp_call!((::unity::module_base()+0x250e080usize)as*mut u8,crate::unity_engine::gameobject::GameObject;
163(crate::unity_engine::gameobject::GameObject)::core::convert::Into::into(parent),(::unity::Il2CppString)::core::convert::Into::into(name),(crate::app::gameui::GameUI_Priority)::core::convert::Into::into(priority))
164 }
165 }
166
167 #[doc = "`TrySetSortOrder(crate::unity_engine::gameobject::GameObject, crate::app::gameui::GameUI_Priority)` overload"]
168 pub fn try_set_sort_order(
169 go: impl ::core::convert::Into<crate::unity_engine::gameobject::GameObject>,
170 priority: impl ::core::convert::Into<crate::app::gameui::GameUI_Priority>,
171 ) -> () {
172 unsafe {
173 ::unity::il2cpp_call!((::unity::module_base()+0x250e300usize)as*mut u8,();
174(crate::unity_engine::gameobject::GameObject)::core::convert::Into::into(go),(crate::app::gameui::GameUI_Priority)::core::convert::Into::into(priority))
175 }
176 }
177}
178
179#[cfg(feature = "app-gameui")]
180pub trait IGameUIMethods: IGameUI {
181 #[doc = "`.ctor()` overload"]
182 fn ctor(self) -> () {
183 unsafe {
184 let __receiver = <GameUI as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
185 ::unity::il2cpp_call!((::unity::module_base()+0x250e380usize)as*mut u8,();
186(GameUI)__receiver)
187 }
188 }
189}
190
191#[cfg(feature = "app-gameui")]
192impl<__T: IGameUI> IGameUIMethods for __T {}
193
194#[cfg(feature = "app-gameui")]
195impl GameUI {
196 pub fn get_root_method_info() -> &'static ::unity::il2cpp::MethodInfo {
197 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
198 }
199
200 pub fn get_canvas_method_info() -> &'static ::unity::il2cpp::MethodInfo {
201 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
202 }
203
204 pub fn get_canvas_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
205 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
206 }
207
208 pub fn try_create_canvas_method_info() -> &'static ::unity::il2cpp::MethodInfo {
209 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
210 }
211
212 pub fn try_set_sort_order_method_info() -> &'static ::unity::il2cpp::MethodInfo {
213 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
214 }
215
216 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
217 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
218 }
219}
220
221#[cfg(feature = "app-gameui")]
222impl GameUI {
223 #[doc = "`.ctor()` — no args"]
224 pub fn new() -> Self {
225 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
226 panic!(
227 "{}
228::{}
229 failed to instantiate",
230 ::core::stringify!(GameUI),
231 ::core::stringify!(new),
232 )
233 });
234 <Self as IGameUIMethods>::ctor(this);
235 this
236 }
237}
238
239#[cfg(feature = "app-gameui")]
240#[doc(hidden)]
241pub mod prelude {
242 pub use super::{GameUI, GameUI_Priority, IGameUI, IGameUIMethods};
243 #[cfg(feature = "app-singletonmonobehaviour_1")]
244 pub use crate::app::singletonmonobehaviour_1::ISingletonMonoBehaviour_1Methods;
245 #[cfg(feature = "system-object")]
246 pub use crate::system::object::IObjectMethods;
247 #[cfg(feature = "system-enum")]
248 pub use crate::system::r#enum::IEnumMethods;
249 #[cfg(feature = "system-valuetype")]
250 pub use crate::system::valuetype::IValueTypeMethods;
251 #[cfg(feature = "unity_engine-behaviour")]
252 pub use crate::unity_engine::behaviour::IBehaviourMethods;
253 #[cfg(feature = "unity_engine-component")]
254 pub use crate::unity_engine::component::IComponentMethods;
255 #[cfg(feature = "unity_engine-monobehaviour")]
256 pub use crate::unity_engine::monobehaviour::IMonoBehaviourMethods;
257 #[cfg(feature = "unity_engine-object_2")]
258 pub use crate::unity_engine::object_2::IObject_2Methods;
259 pub use crate::{
260 app::singletonmonobehaviour_1::ISingletonMonoBehaviour_1,
261 system::{object::IObject, r#enum::IEnum, valuetype::IValueType},
262 unity_engine::{behaviour::IBehaviour, component::IComponent, monobehaviour::IMonoBehaviour, object_2::IObject_2},
263 };
264}