engage/generated/app/
scriptgame.rs1#[cfg(feature = "app-scriptgame-types")]
4mod __types {
5 #[allow(unused_imports)] use ::unity::prelude::*;
6
7 use super::*;
8 use crate::{
9 app::scriptutil::{IScriptUtil, ScriptUtil},
10 system::object::{IObject, Object},
11 };
12
13 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/scriptgame/ScriptGame.md"))]
14 #[::unity::class(namespace = "App", name = "ScriptGame")]
15 #[parent(crate::app::scriptutil::ScriptUtil)]
16 pub struct ScriptGame {}
17}
18
19#[cfg(feature = "app-scriptgame-types")]
20pub use __types::*;
21
22#[cfg(feature = "app-scriptgame")]
23impl ScriptGame {
24 #[doc = "`ItemGain(::unity::Array<crate::moon_sharp::interpreter::dynvalue::DynValue>)` overload"]
25 pub fn item_gain(args: impl ::core::convert::Into<::unity::Array<crate::moon_sharp::interpreter::dynvalue::DynValue>>) -> () {
26 unsafe {
27 ::unity::il2cpp_call!((::unity::module_base()+0x1ec9a80usize)as*mut u8,();
28(::unity::Array<crate::moon_sharp::interpreter::dynvalue::DynValue>)::core::convert::Into::into(args))
29 }
30 }
31
32 #[doc = "`GoldGain(::unity::Array<crate::moon_sharp::interpreter::dynvalue::DynValue>)` overload"]
33 pub fn gold_gain(args: impl ::core::convert::Into<::unity::Array<crate::moon_sharp::interpreter::dynvalue::DynValue>>) -> () {
34 unsafe {
35 ::unity::il2cpp_call!((::unity::module_base()+0x1ec9bd0usize)as*mut u8,();
36(::unity::Array<crate::moon_sharp::interpreter::dynvalue::DynValue>)::core::convert::Into::into(args))
37 }
38 }
39
40 #[doc = "`ItemPutOffAll(::unity::Array<crate::moon_sharp::interpreter::dynvalue::DynValue>)` overload"]
41 pub fn item_put_off_all(args: impl ::core::convert::Into<::unity::Array<crate::moon_sharp::interpreter::dynvalue::DynValue>>) -> () {
42 unsafe {
43 ::unity::il2cpp_call!((::unity::module_base()+0x1ec9d00usize)as*mut u8,();
44(::unity::Array<crate::moon_sharp::interpreter::dynvalue::DynValue>)::core::convert::Into::into(args))
45 }
46 }
47
48 #[doc = "`DifficultyGet(::unity::Array<crate::moon_sharp::interpreter::dynvalue::DynValue>)` overload"]
49 pub fn difficulty_get(
50 args: impl ::core::convert::Into<::unity::Array<crate::moon_sharp::interpreter::dynvalue::DynValue>>,
51 ) -> crate::moon_sharp::interpreter::dynvalue::DynValue {
52 unsafe {
53 ::unity::il2cpp_call!((::unity::module_base()+0x1ec9e20usize)as*mut u8,crate::moon_sharp::interpreter::dynvalue::DynValue;
54(::unity::Array<crate::moon_sharp::interpreter::dynvalue::DynValue>)::core::convert::Into::into(args))
55 }
56 }
57
58 #[doc = "`GameModeGet(::unity::Array<crate::moon_sharp::interpreter::dynvalue::DynValue>)` overload"]
59 pub fn game_mode_get(
60 args: impl ::core::convert::Into<::unity::Array<crate::moon_sharp::interpreter::dynvalue::DynValue>>,
61 ) -> crate::moon_sharp::interpreter::dynvalue::DynValue {
62 unsafe {
63 ::unity::il2cpp_call!((::unity::module_base()+0x1ec9fe0usize)as*mut u8,crate::moon_sharp::interpreter::dynvalue::DynValue;
64(::unity::Array<crate::moon_sharp::interpreter::dynvalue::DynValue>)::core::convert::Into::into(args))
65 }
66 }
67
68 #[doc = "`GoldGet(::unity::Array<crate::moon_sharp::interpreter::dynvalue::DynValue>)` overload"]
69 pub fn gold_get(
70 args: impl ::core::convert::Into<::unity::Array<crate::moon_sharp::interpreter::dynvalue::DynValue>>,
71 ) -> crate::moon_sharp::interpreter::dynvalue::DynValue {
72 unsafe {
73 ::unity::il2cpp_call!((::unity::module_base()+0x1eca0a0usize)as*mut u8,crate::moon_sharp::interpreter::dynvalue::DynValue;
74(::unity::Array<crate::moon_sharp::interpreter::dynvalue::DynValue>)::core::convert::Into::into(args))
75 }
76 }
77
78 #[doc = "`GoldSet(::unity::Array<crate::moon_sharp::interpreter::dynvalue::DynValue>)` overload"]
79 pub fn gold_set(args: impl ::core::convert::Into<::unity::Array<crate::moon_sharp::interpreter::dynvalue::DynValue>>) -> () {
80 unsafe {
81 ::unity::il2cpp_call!((::unity::module_base()+0x1eca160usize)as*mut u8,();
82(::unity::Array<crate::moon_sharp::interpreter::dynvalue::DynValue>)::core::convert::Into::into(args))
83 }
84 }
85
86 #[doc = "`PersonGetIndex(::unity::Array<crate::moon_sharp::interpreter::dynvalue::DynValue>)` overload"]
87 pub fn person_get_index(
88 args: impl ::core::convert::Into<::unity::Array<crate::moon_sharp::interpreter::dynvalue::DynValue>>,
89 ) -> crate::moon_sharp::interpreter::dynvalue::DynValue {
90 unsafe {
91 ::unity::il2cpp_call!((::unity::module_base()+0x1eca230usize)as*mut u8,crate::moon_sharp::interpreter::dynvalue::DynValue;
92(::unity::Array<crate::moon_sharp::interpreter::dynvalue::DynValue>)::core::convert::Into::into(args))
93 }
94 }
95
96 #[doc = "`JobGetIndex(::unity::Array<crate::moon_sharp::interpreter::dynvalue::DynValue>)` overload"]
97 pub fn job_get_index(
98 args: impl ::core::convert::Into<::unity::Array<crate::moon_sharp::interpreter::dynvalue::DynValue>>,
99 ) -> crate::moon_sharp::interpreter::dynvalue::DynValue {
100 unsafe {
101 ::unity::il2cpp_call!((::unity::module_base()+0x1eca330usize)as*mut u8,crate::moon_sharp::interpreter::dynvalue::DynValue;
102(::unity::Array<crate::moon_sharp::interpreter::dynvalue::DynValue>)::core::convert::Into::into(args))
103 }
104 }
105
106 #[doc = "`ItemGetIndex(::unity::Array<crate::moon_sharp::interpreter::dynvalue::DynValue>)` overload"]
107 pub fn item_get_index(
108 args: impl ::core::convert::Into<::unity::Array<crate::moon_sharp::interpreter::dynvalue::DynValue>>,
109 ) -> crate::moon_sharp::interpreter::dynvalue::DynValue {
110 unsafe {
111 ::unity::il2cpp_call!((::unity::module_base()+0x1eca430usize)as*mut u8,crate::moon_sharp::interpreter::dynvalue::DynValue;
112(::unity::Array<crate::moon_sharp::interpreter::dynvalue::DynValue>)::core::convert::Into::into(args))
113 }
114 }
115
116 #[doc = "`SkillGetIndex(::unity::Array<crate::moon_sharp::interpreter::dynvalue::DynValue>)` overload"]
117 pub fn skill_get_index(
118 args: impl ::core::convert::Into<::unity::Array<crate::moon_sharp::interpreter::dynvalue::DynValue>>,
119 ) -> crate::moon_sharp::interpreter::dynvalue::DynValue {
120 unsafe {
121 ::unity::il2cpp_call!((::unity::module_base()+0x1eca530usize)as*mut u8,crate::moon_sharp::interpreter::dynvalue::DynValue;
122(::unity::Array<crate::moon_sharp::interpreter::dynvalue::DynValue>)::core::convert::Into::into(args))
123 }
124 }
125
126 pub fn get_data<M0: ::unity::IlType + ::core::marker::Copy + ::unity::ClassIdentity>(index: impl ::core::convert::Into<i32>) -> M0 {
127 static OPEN: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> =
128 ::std::sync::LazyLock::new(|| ::unity::lookup::method_info_on_class(<ScriptGame as ::unity::ClassIdentity>::class(), "GetData", 1));
129 #[allow(clippy::type_complexity)]
130 static CACHE: ::std::sync::OnceLock<::std::sync::Mutex<::std::collections::HashMap<usize, &'static ::unity::il2cpp::MethodInfo>>> =
131 ::std::sync::OnceLock::new();
132 let _ = true;
133 let __open: &'static ::unity::il2cpp::MethodInfo = match &*OPEN {
134 ::core::result::Result::Ok(mi) => *mi,
135 ::core::result::Result::Err(e) => {
136 panic!(
137 "method lookup failed: {}
138::{}
139: {}
140",
141 <ScriptGame as ::unity::ClassIdentity>::NAME,
142 "GetData",
143 e
144 )
145 },
146 };
147 let __cache = CACHE.get_or_init(|| ::std::sync::Mutex::new(::std::collections::HashMap::new()));
148 let __key: usize = <M0 as ::unity::IlType>::il_type() as *const _ as usize;
149 let __inflated: &'static ::unity::il2cpp::MethodInfo = {
150 let mut __guard = __cache.lock().unwrap();
151 *__guard
152 .entry(__key)
153 .or_insert_with(|| ::unity::il2cpp::generic::create_generic_method_info(__open, &[<M0 as ::unity::IlType>::il_type()]))
154 };
155 unsafe {
156 let __f: extern "C" fn(i32, ::unity::OptionalMethod) -> M0 = ::core::mem::transmute(__inflated.method_ptr);
157 let __mi_opaque: &'static () = &*(__inflated as *const _ as *const ());
158 __f(::core::convert::Into::into(index), ::core::option::Option::Some(__mi_opaque))
159 }
160 }
161
162 #[doc = "`PersonGetID(::unity::Array<crate::moon_sharp::interpreter::dynvalue::DynValue>)` overload"]
163 pub fn person_get_id(
164 args: impl ::core::convert::Into<::unity::Array<crate::moon_sharp::interpreter::dynvalue::DynValue>>,
165 ) -> crate::moon_sharp::interpreter::dynvalue::DynValue {
166 unsafe {
167 ::unity::il2cpp_call!((::unity::module_base()+0x1eca630usize)as*mut u8,crate::moon_sharp::interpreter::dynvalue::DynValue;
168(::unity::Array<crate::moon_sharp::interpreter::dynvalue::DynValue>)::core::convert::Into::into(args))
169 }
170 }
171
172 #[doc = "`JobGetID(::unity::Array<crate::moon_sharp::interpreter::dynvalue::DynValue>)` overload"]
173 pub fn job_get_id(
174 args: impl ::core::convert::Into<::unity::Array<crate::moon_sharp::interpreter::dynvalue::DynValue>>,
175 ) -> crate::moon_sharp::interpreter::dynvalue::DynValue {
176 unsafe {
177 ::unity::il2cpp_call!((::unity::module_base()+0x1eca700usize)as*mut u8,crate::moon_sharp::interpreter::dynvalue::DynValue;
178(::unity::Array<crate::moon_sharp::interpreter::dynvalue::DynValue>)::core::convert::Into::into(args))
179 }
180 }
181
182 #[doc = "`ItemGetID(::unity::Array<crate::moon_sharp::interpreter::dynvalue::DynValue>)` overload"]
183 pub fn item_get_id(
184 args: impl ::core::convert::Into<::unity::Array<crate::moon_sharp::interpreter::dynvalue::DynValue>>,
185 ) -> crate::moon_sharp::interpreter::dynvalue::DynValue {
186 unsafe {
187 ::unity::il2cpp_call!((::unity::module_base()+0x1eca7d0usize)as*mut u8,crate::moon_sharp::interpreter::dynvalue::DynValue;
188(::unity::Array<crate::moon_sharp::interpreter::dynvalue::DynValue>)::core::convert::Into::into(args))
189 }
190 }
191
192 #[doc = "`SkillGetID(::unity::Array<crate::moon_sharp::interpreter::dynvalue::DynValue>)` overload"]
193 pub fn skill_get_id(
194 args: impl ::core::convert::Into<::unity::Array<crate::moon_sharp::interpreter::dynvalue::DynValue>>,
195 ) -> crate::moon_sharp::interpreter::dynvalue::DynValue {
196 unsafe {
197 ::unity::il2cpp_call!((::unity::module_base()+0x1eca8a0usize)as*mut u8,crate::moon_sharp::interpreter::dynvalue::DynValue;
198(::unity::Array<crate::moon_sharp::interpreter::dynvalue::DynValue>)::core::convert::Into::into(args))
199 }
200 }
201
202 #[doc = "`ConfigSetBattleScene(::unity::Array<crate::moon_sharp::interpreter::dynvalue::DynValue>)` overload"]
203 pub fn config_set_battle_scene(args: impl ::core::convert::Into<::unity::Array<crate::moon_sharp::interpreter::dynvalue::DynValue>>) -> () {
204 unsafe {
205 ::unity::il2cpp_call!((::unity::module_base()+0x1eca970usize)as*mut u8,();
206(::unity::Array<crate::moon_sharp::interpreter::dynvalue::DynValue>)::core::convert::Into::into(args))
207 }
208 }
209
210 #[doc = "`ConfigSetSupportScene(::unity::Array<crate::moon_sharp::interpreter::dynvalue::DynValue>)` overload"]
211 pub fn config_set_support_scene(args: impl ::core::convert::Into<::unity::Array<crate::moon_sharp::interpreter::dynvalue::DynValue>>) -> () {
212 unsafe {
213 ::unity::il2cpp_call!((::unity::module_base()+0x1ecaa70usize)as*mut u8,();
214(::unity::Array<crate::moon_sharp::interpreter::dynvalue::DynValue>)::core::convert::Into::into(args))
215 }
216 }
217
218 #[doc = "`ConfigGetBattleScene(::unity::Array<crate::moon_sharp::interpreter::dynvalue::DynValue>)` overload"]
219 pub fn config_get_battle_scene(
220 args: impl ::core::convert::Into<::unity::Array<crate::moon_sharp::interpreter::dynvalue::DynValue>>,
221 ) -> crate::moon_sharp::interpreter::dynvalue::DynValue {
222 unsafe {
223 ::unity::il2cpp_call!((::unity::module_base()+0x1ecab70usize)as*mut u8,crate::moon_sharp::interpreter::dynvalue::DynValue;
224(::unity::Array<crate::moon_sharp::interpreter::dynvalue::DynValue>)::core::convert::Into::into(args))
225 }
226 }
227
228 #[doc = "`ConfigGetSupportScene(::unity::Array<crate::moon_sharp::interpreter::dynvalue::DynValue>)` overload"]
229 pub fn config_get_support_scene(
230 args: impl ::core::convert::Into<::unity::Array<crate::moon_sharp::interpreter::dynvalue::DynValue>>,
231 ) -> crate::moon_sharp::interpreter::dynvalue::DynValue {
232 unsafe {
233 ::unity::il2cpp_call!((::unity::module_base()+0x1ecac80usize)as*mut u8,crate::moon_sharp::interpreter::dynvalue::DynValue;
234(::unity::Array<crate::moon_sharp::interpreter::dynvalue::DynValue>)::core::convert::Into::into(args))
235 }
236 }
237
238 #[doc = "`PlayChapterTitle(::unity::Array<crate::moon_sharp::interpreter::dynvalue::DynValue>)` overload"]
239 pub fn play_chapter_title(args: impl ::core::convert::Into<::unity::Array<crate::moon_sharp::interpreter::dynvalue::DynValue>>) -> () {
240 unsafe {
241 ::unity::il2cpp_call!((::unity::module_base()+0x1ecad90usize)as*mut u8,();
242(::unity::Array<crate::moon_sharp::interpreter::dynvalue::DynValue>)::core::convert::Into::into(args))
243 }
244 }
245
246 #[doc = "`Regist(crate::app::eventscript::EventScript)` overload"]
247 pub fn regist(script: impl ::core::convert::Into<crate::app::eventscript::EventScript>) -> () {
248 unsafe {
249 ::unity::il2cpp_call!((::unity::module_base()+0x1ecaec0usize)as*mut u8,();
250(crate::app::eventscript::EventScript)::core::convert::Into::into(script))
251 }
252 }
253}
254
255#[cfg(feature = "app-scriptgame")]
256pub trait IScriptGameMethods: IScriptGame {
257 #[doc = "`.ctor()` overload"]
258 fn ctor(self) -> () {
259 unsafe {
260 let __receiver = <ScriptGame as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
261 ::unity::il2cpp_call!((::unity::module_base()+0x1ecb490usize)as*mut u8,();
262(ScriptGame)__receiver)
263 }
264 }
265}
266
267#[cfg(feature = "app-scriptgame")]
268impl<__T: IScriptGame> IScriptGameMethods for __T {}
269
270#[cfg(feature = "app-scriptgame")]
271impl ScriptGame {
272 pub fn item_gain_method_info() -> &'static ::unity::il2cpp::MethodInfo {
273 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
274 }
275
276 pub fn gold_gain_method_info() -> &'static ::unity::il2cpp::MethodInfo {
277 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
278 }
279
280 pub fn item_put_off_all_method_info() -> &'static ::unity::il2cpp::MethodInfo {
281 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
282 }
283
284 pub fn difficulty_get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
285 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
286 }
287
288 pub fn game_mode_get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
289 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
290 }
291
292 pub fn gold_get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
293 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
294 }
295
296 pub fn gold_set_method_info() -> &'static ::unity::il2cpp::MethodInfo {
297 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
298 }
299
300 pub fn person_get_index_method_info() -> &'static ::unity::il2cpp::MethodInfo {
301 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
302 }
303
304 pub fn job_get_index_method_info() -> &'static ::unity::il2cpp::MethodInfo {
305 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
306 }
307
308 pub fn item_get_index_method_info() -> &'static ::unity::il2cpp::MethodInfo {
309 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
310 }
311
312 pub fn skill_get_index_method_info() -> &'static ::unity::il2cpp::MethodInfo {
313 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
314 }
315
316 pub fn person_get_id_method_info() -> &'static ::unity::il2cpp::MethodInfo {
317 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[12]
318 }
319
320 pub fn job_get_id_method_info() -> &'static ::unity::il2cpp::MethodInfo {
321 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[13]
322 }
323
324 pub fn item_get_id_method_info() -> &'static ::unity::il2cpp::MethodInfo {
325 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[14]
326 }
327
328 pub fn skill_get_id_method_info() -> &'static ::unity::il2cpp::MethodInfo {
329 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[15]
330 }
331
332 pub fn config_set_battle_scene_method_info() -> &'static ::unity::il2cpp::MethodInfo {
333 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[16]
334 }
335
336 pub fn config_set_support_scene_method_info() -> &'static ::unity::il2cpp::MethodInfo {
337 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[17]
338 }
339
340 pub fn config_get_battle_scene_method_info() -> &'static ::unity::il2cpp::MethodInfo {
341 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[18]
342 }
343
344 pub fn config_get_support_scene_method_info() -> &'static ::unity::il2cpp::MethodInfo {
345 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[19]
346 }
347
348 pub fn play_chapter_title_method_info() -> &'static ::unity::il2cpp::MethodInfo {
349 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[20]
350 }
351
352 pub fn regist_method_info() -> &'static ::unity::il2cpp::MethodInfo {
353 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[21]
354 }
355
356 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
357 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[22]
358 }
359}
360
361#[cfg(feature = "app-scriptgame")]
362impl ScriptGame {
363 #[doc = "`.ctor()` — no args"]
364 pub fn new() -> Self {
365 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
366 panic!(
367 "{}
368::{}
369 failed to instantiate",
370 ::core::stringify!(ScriptGame),
371 ::core::stringify!(new),
372 )
373 });
374 <Self as IScriptGameMethods>::ctor(this);
375 this
376 }
377}
378
379#[cfg(feature = "app-scriptgame")]
380#[doc(hidden)]
381pub mod prelude {
382 pub use super::{IScriptGame, IScriptGameMethods, ScriptGame};
383 #[cfg(feature = "app-scriptutil")]
384 pub use crate::app::scriptutil::IScriptUtilMethods;
385 #[cfg(feature = "system-object")]
386 pub use crate::system::object::IObjectMethods;
387 pub use crate::{app::scriptutil::IScriptUtil, system::object::IObject};
388}