engage/generated/app/
scripthub.rs1#[cfg(feature = "app-scripthub-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/scripthub/ScriptHub.md"))]
14 #[::unity::class(namespace = "App", name = "ScriptHub")]
15 #[parent(crate::app::scriptutil::ScriptUtil)]
16 pub struct ScriptHub {}
17}
18
19#[cfg(feature = "app-scripthub-types")]
20pub use __types::*;
21
22#[cfg(feature = "app-scripthub")]
23impl ScriptHub {
24 #[doc = "`HubNextChapter(::unity::Array<crate::moon_sharp::interpreter::dynvalue::DynValue>)` overload"]
25 pub fn hub_next_chapter(args: impl ::core::convert::Into<::unity::Array<crate::moon_sharp::interpreter::dynvalue::DynValue>>) -> () {
26 unsafe {
27 ::unity::il2cpp_call!((::unity::module_base()+0x1ecb500usize)as*mut u8,();
28(::unity::Array<crate::moon_sharp::interpreter::dynvalue::DynValue>)::core::convert::Into::into(args))
29 }
30 }
31
32 #[doc = "`HubNextGmap(::unity::Array<crate::moon_sharp::interpreter::dynvalue::DynValue>)` overload"]
33 pub fn hub_next_gmap(args: impl ::core::convert::Into<::unity::Array<crate::moon_sharp::interpreter::dynvalue::DynValue>>) -> () {
34 unsafe {
35 ::unity::il2cpp_call!((::unity::module_base()+0x1ecb580usize)as*mut u8,();
36(::unity::Array<crate::moon_sharp::interpreter::dynvalue::DynValue>)::core::convert::Into::into(args))
37 }
38 }
39
40 #[doc = "`HubNextMap(::unity::Array<crate::moon_sharp::interpreter::dynvalue::DynValue>)` overload"]
41 pub fn hub_next_map(args: impl ::core::convert::Into<::unity::Array<crate::moon_sharp::interpreter::dynvalue::DynValue>>) -> () {
42 unsafe {
43 ::unity::il2cpp_call!((::unity::module_base()+0x1ecb590usize)as*mut u8,();
44(::unity::Array<crate::moon_sharp::interpreter::dynvalue::DynValue>)::core::convert::Into::into(args))
45 }
46 }
47
48 #[doc = "`HubDisableLocator(::unity::Array<crate::moon_sharp::interpreter::dynvalue::DynValue>)` overload"]
49 pub fn hub_disable_locator(args: impl ::core::convert::Into<::unity::Array<crate::moon_sharp::interpreter::dynvalue::DynValue>>) -> () {
50 unsafe {
51 ::unity::il2cpp_call!((::unity::module_base()+0x1ecb630usize)as*mut u8,();
52(::unity::Array<crate::moon_sharp::interpreter::dynvalue::DynValue>)::core::convert::Into::into(args))
53 }
54 }
55
56 #[doc = "`HubIsCompleteChapter(::unity::Array<crate::moon_sharp::interpreter::dynvalue::DynValue>)` overload"]
57 pub fn hub_is_complete_chapter(
58 args: impl ::core::convert::Into<::unity::Array<crate::moon_sharp::interpreter::dynvalue::DynValue>>,
59 ) -> crate::moon_sharp::interpreter::dynvalue::DynValue {
60 unsafe {
61 ::unity::il2cpp_call!((::unity::module_base()+0x1ecb6d0usize)as*mut u8,crate::moon_sharp::interpreter::dynvalue::DynValue;
62(::unity::Array<crate::moon_sharp::interpreter::dynvalue::DynValue>)::core::convert::Into::into(args))
63 }
64 }
65
66 #[doc = "`HubIsCondition(::unity::Array<crate::moon_sharp::interpreter::dynvalue::DynValue>)` overload"]
67 pub fn hub_is_condition(
68 args: impl ::core::convert::Into<::unity::Array<crate::moon_sharp::interpreter::dynvalue::DynValue>>,
69 ) -> crate::moon_sharp::interpreter::dynvalue::DynValue {
70 unsafe {
71 ::unity::il2cpp_call!((::unity::module_base()+0x1ecb8f0usize)as*mut u8,crate::moon_sharp::interpreter::dynvalue::DynValue;
72(::unity::Array<crate::moon_sharp::interpreter::dynvalue::DynValue>)::core::convert::Into::into(args))
73 }
74 }
75
76 #[doc = "`HubIsFacilityComplete(::unity::Array<crate::moon_sharp::interpreter::dynvalue::DynValue>)` overload"]
77 pub fn hub_is_facility_complete(
78 args: impl ::core::convert::Into<::unity::Array<crate::moon_sharp::interpreter::dynvalue::DynValue>>,
79 ) -> crate::moon_sharp::interpreter::dynvalue::DynValue {
80 unsafe {
81 ::unity::il2cpp_call!((::unity::module_base()+0x1ecb9e0usize)as*mut u8,crate::moon_sharp::interpreter::dynvalue::DynValue;
82(::unity::Array<crate::moon_sharp::interpreter::dynvalue::DynValue>)::core::convert::Into::into(args))
83 }
84 }
85
86 #[doc = "`HubChangeTalk(::unity::Array<crate::moon_sharp::interpreter::dynvalue::DynValue>)` overload"]
87 pub fn hub_change_talk(args: impl ::core::convert::Into<::unity::Array<crate::moon_sharp::interpreter::dynvalue::DynValue>>) -> () {
88 unsafe {
89 ::unity::il2cpp_call!((::unity::module_base()+0x1ecbb10usize)as*mut u8,();
90(::unity::Array<crate::moon_sharp::interpreter::dynvalue::DynValue>)::core::convert::Into::into(args))
91 }
92 }
93
94 #[doc = "`HubIsEnabledLocator(::unity::Array<crate::moon_sharp::interpreter::dynvalue::DynValue>)` overload"]
95 pub fn hub_is_enabled_locator(
96 args: impl ::core::convert::Into<::unity::Array<crate::moon_sharp::interpreter::dynvalue::DynValue>>,
97 ) -> crate::moon_sharp::interpreter::dynvalue::DynValue {
98 unsafe {
99 ::unity::il2cpp_call!((::unity::module_base()+0x1ecbc10usize)as*mut u8,crate::moon_sharp::interpreter::dynvalue::DynValue;
100(::unity::Array<crate::moon_sharp::interpreter::dynvalue::DynValue>)::core::convert::Into::into(args))
101 }
102 }
103
104 #[doc = "`CompleteEncountMap(::unity::Array<crate::moon_sharp::interpreter::dynvalue::DynValue>)` overload"]
105 pub fn complete_encount_map(args: impl ::core::convert::Into<::unity::Array<crate::moon_sharp::interpreter::dynvalue::DynValue>>) -> () {
106 unsafe {
107 ::unity::il2cpp_call!((::unity::module_base()+0x1ecbd30usize)as*mut u8,();
108(::unity::Array<crate::moon_sharp::interpreter::dynvalue::DynValue>)::core::convert::Into::into(args))
109 }
110 }
111
112 #[doc = "`HubIsEncountMap(::unity::Array<crate::moon_sharp::interpreter::dynvalue::DynValue>)` overload"]
113 pub fn hub_is_encount_map(
114 args: impl ::core::convert::Into<::unity::Array<crate::moon_sharp::interpreter::dynvalue::DynValue>>,
115 ) -> crate::moon_sharp::interpreter::dynvalue::DynValue {
116 unsafe {
117 ::unity::il2cpp_call!((::unity::module_base()+0x1ecbdb0usize)as*mut u8,crate::moon_sharp::interpreter::dynvalue::DynValue;
118(::unity::Array<crate::moon_sharp::interpreter::dynvalue::DynValue>)::core::convert::Into::into(args))
119 }
120 }
121
122 #[doc = "`Regist(crate::app::eventscript::EventScript)` overload"]
123 pub fn regist(script: impl ::core::convert::Into<crate::app::eventscript::EventScript>) -> () {
124 unsafe {
125 ::unity::il2cpp_call!((::unity::module_base()+0x1ecbeb0usize)as*mut u8,();
126(crate::app::eventscript::EventScript)::core::convert::Into::into(script))
127 }
128 }
129}
130
131#[cfg(feature = "app-scripthub")]
132pub trait IScriptHubMethods: IScriptHub {
133 #[doc = "`.ctor()` overload"]
134 fn ctor(self) -> () {
135 unsafe {
136 let __receiver = <ScriptHub as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
137 ::unity::il2cpp_call!((::unity::module_base()+0x1ecc210usize)as*mut u8,();
138(ScriptHub)__receiver)
139 }
140 }
141}
142
143#[cfg(feature = "app-scripthub")]
144impl<__T: IScriptHub> IScriptHubMethods for __T {}
145
146#[cfg(feature = "app-scripthub")]
147impl ScriptHub {
148 pub fn hub_next_chapter_method_info() -> &'static ::unity::il2cpp::MethodInfo {
149 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
150 }
151
152 pub fn hub_next_gmap_method_info() -> &'static ::unity::il2cpp::MethodInfo {
153 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
154 }
155
156 pub fn hub_next_map_method_info() -> &'static ::unity::il2cpp::MethodInfo {
157 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
158 }
159
160 pub fn hub_disable_locator_method_info() -> &'static ::unity::il2cpp::MethodInfo {
161 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
162 }
163
164 pub fn hub_is_complete_chapter_method_info() -> &'static ::unity::il2cpp::MethodInfo {
165 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
166 }
167
168 pub fn hub_is_condition_method_info() -> &'static ::unity::il2cpp::MethodInfo {
169 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
170 }
171
172 pub fn hub_is_facility_complete_method_info() -> &'static ::unity::il2cpp::MethodInfo {
173 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
174 }
175
176 pub fn hub_change_talk_method_info() -> &'static ::unity::il2cpp::MethodInfo {
177 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
178 }
179
180 pub fn hub_is_enabled_locator_method_info() -> &'static ::unity::il2cpp::MethodInfo {
181 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
182 }
183
184 pub fn complete_encount_map_method_info() -> &'static ::unity::il2cpp::MethodInfo {
185 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
186 }
187
188 pub fn hub_is_encount_map_method_info() -> &'static ::unity::il2cpp::MethodInfo {
189 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
190 }
191
192 pub fn regist_method_info() -> &'static ::unity::il2cpp::MethodInfo {
193 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[11]
194 }
195
196 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
197 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[12]
198 }
199}
200
201#[cfg(feature = "app-scripthub")]
202impl ScriptHub {
203 #[doc = "`.ctor()` — no args"]
204 pub fn new() -> Self {
205 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
206 panic!(
207 "{}
208::{}
209 failed to instantiate",
210 ::core::stringify!(ScriptHub),
211 ::core::stringify!(new),
212 )
213 });
214 <Self as IScriptHubMethods>::ctor(this);
215 this
216 }
217}
218
219#[cfg(feature = "app-scripthub")]
220#[doc(hidden)]
221pub mod prelude {
222 pub use super::{IScriptHub, IScriptHubMethods, ScriptHub};
223 #[cfg(feature = "app-scriptutil")]
224 pub use crate::app::scriptutil::IScriptUtilMethods;
225 #[cfg(feature = "system-object")]
226 pub use crate::system::object::IObjectMethods;
227 pub use crate::{app::scriptutil::IScriptUtil, system::object::IObject};
228}