1#[cfg(feature = "app-challengedifficultymanager-types")]
4mod __types {
5 #[allow(unused_imports)] use ::unity::prelude::*;
6
7 use super::*;
8 use crate::system::{
9 delegate::{Delegate, IDelegate},
10 multicastdelegate::{IMulticastDelegate, MulticastDelegate},
11 object::{IObject, Object},
12 };
13
14 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/challengedifficultymanager/ChallengeDifficultyManager_ReturnEventHandler.md"))]
15 #[::unity::class(namespace = "App", name = "ChallengeDifficultyManager.ReturnEventHandler")]
16 #[parent(crate::system::multicastdelegate::MulticastDelegate)]
17 pub struct ChallengeDifficultyManager_ReturnEventHandler {}
18
19 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/challengedifficultymanager/ChallengeDifficultyManager.md"))]
20 #[::unity::class(namespace = "App", name = "ChallengeDifficultyManager")]
21 #[parent(crate::system::object::Object)]
22 pub struct ChallengeDifficultyManager {
23 #[offset(16)]
24 #[rename(name = "m_ReturnEventHandler")]
25 pub m_return_event_handler: crate::app::challengedifficultymanager::ChallengeDifficultyManager_ReturnEventHandler,
26 #[offset(24)]
27 #[rename(name = "m_Menu")]
28 pub m_menu: crate::app::challengedifficultymenu::ChallengeDifficultyMenu,
29 #[offset(32)]
30 #[rename(name = "m_ChallengeData")]
31 pub m_challenge_data: crate::app::challengedata::ChallengeData,
32 #[offset(40)]
33 #[rename(name = "m_Difficulty")]
34 pub m_difficulty: i32,
35 }
36}
37
38#[cfg(feature = "app-challengedifficultymanager-types")]
39pub use __types::*;
40
41#[cfg(feature = "app-challengedifficultymanager")]
42pub trait IChallengeDifficultyManager_ReturnEventHandlerMethods: IChallengeDifficultyManager_ReturnEventHandler {
43 #[doc = "`.ctor(crate::system::object::Object, ::unity::IntPtr)` overload"]
44 fn ctor(self, object: impl ::core::convert::Into<crate::system::object::Object>, method: impl ::core::convert::Into<::unity::IntPtr>) -> () {
45 unsafe {
46 let __receiver = <ChallengeDifficultyManager_ReturnEventHandler as ::unity::FromIlInstance>::from_il_instance(
47 <Self as ::unity::SystemObject>::as_instance(self),
48 );
49 ::unity::il2cpp_call!((::unity::module_base()+0x19be880usize)as*mut u8,();
50(ChallengeDifficultyManager_ReturnEventHandler)__receiver,(crate::system::object::Object)::core::convert::Into::into(object),(::unity::IntPtr)::core::convert::Into::into(method))
51 }
52 }
53 #[doc = "`Invoke(crate::app::basicmenu::BasicMenu_Result, i32)` overload"]
54 fn invoke(self, result: impl ::core::convert::Into<crate::app::basicmenu::BasicMenu_Result>, difficulty: impl ::core::convert::Into<i32>) -> () {
55 unsafe {
56 let __receiver = <ChallengeDifficultyManager_ReturnEventHandler as ::unity::FromIlInstance>::from_il_instance(
57 <Self as ::unity::SystemObject>::as_instance(self),
58 );
59 {
60 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
61 let __vi = *__vt.get(13usize).unwrap_or_else(|| {
62 panic!(
63 "unity: virtual slot {}
64 out of range (vtable len {}
65) on the runtime class behind {}
66 (method `{}
67`)",
68 13usize,
69 __vt.len(),
70 <ChallengeDifficultyManager_ReturnEventHandler as ::unity::ClassIdentity>::NAME,
71 "Invoke",
72 )
73 });
74 let __inner: extern "C" fn(
75 ChallengeDifficultyManager_ReturnEventHandler,
76 crate::app::basicmenu::BasicMenu_Result,
77 i32,
78 ::unity::OptionalMethod,
79 ) -> () = ::core::mem::transmute(__vi.method_ptr);
80 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
81 __inner(
82 __receiver,
83 ::core::convert::Into::into(result),
84 ::core::convert::Into::into(difficulty),
85 __mi,
86 )
87 }
88 }
89 }
90}
91
92#[cfg(feature = "app-challengedifficultymanager")]
93impl<__T: IChallengeDifficultyManager_ReturnEventHandler> IChallengeDifficultyManager_ReturnEventHandlerMethods for __T {}
94
95#[cfg(feature = "app-challengedifficultymanager")]
96impl ChallengeDifficultyManager_ReturnEventHandler {
97 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
98 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
99 }
100
101 pub fn invoke_method_info() -> &'static ::unity::il2cpp::MethodInfo {
102 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
103 }
104}
105
106#[cfg(feature = "app-challengedifficultymanager")]
107impl ChallengeDifficultyManager_ReturnEventHandler {
108 #[doc = "Direct (non-virtual) call to `ChallengeDifficultyManager_ReturnEventHandler`'s own `Invoke`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
109 pub unsafe fn invoke(
110 this: impl ::core::convert::Into<::unity::IlInstance>,
111 result: crate::app::basicmenu::BasicMenu_Result,
112 difficulty: i32,
113 ) -> () {
114 let __mi = Self::invoke_method_info();
115 let __inner: extern "C" fn(::unity::IlInstance, crate::app::basicmenu::BasicMenu_Result, i32, ::unity::OptionalMethod) -> () =
116 ::core::mem::transmute(__mi.method_ptr);
117 __inner(this.into(), result, difficulty, ::core::option::Option::None)
118 }
119}
120
121#[cfg(feature = "app-challengedifficultymanager")]
122impl ChallengeDifficultyManager_ReturnEventHandler {
123 #[doc = "`.ctor(crate::system::object::Object, ::unity::IntPtr)` — overload selector"]
124 pub fn new(object: crate::system::object::Object, method: ::unity::IntPtr) -> Self {
125 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
126 panic!(
127 "{}
128::{}
129 failed to instantiate",
130 ::core::stringify!(ChallengeDifficultyManager_ReturnEventHandler),
131 ::core::stringify!(new),
132 )
133 });
134 <Self as IChallengeDifficultyManager_ReturnEventHandlerMethods>::ctor(this, object, method);
135 this
136 }
137}
138
139#[cfg(feature = "app-challengedifficultymanager")]
140impl ChallengeDifficultyManager {
141 #[doc = "`Create(crate::app::procinst::ProcInst, crate::app::challengemapselectroot::ChallengeMapSelectRoot, crate::app::challengedata::ChallengeData, crate::app::challengedifficultymanager::ChallengeDifficultyManager_ReturnEventHandler)` overload"]
142 pub fn create(
143 super_: impl ::core::convert::Into<crate::app::procinst::ProcInst>,
144 root: impl ::core::convert::Into<crate::app::challengemapselectroot::ChallengeMapSelectRoot>,
145 challenge_data: impl ::core::convert::Into<crate::app::challengedata::ChallengeData>,
146 return_event_handler: impl ::core::convert::Into<crate::app::challengedifficultymanager::ChallengeDifficultyManager_ReturnEventHandler>,
147 ) -> crate::app::challengedifficultymanager::ChallengeDifficultyManager {
148 unsafe {
149 ::unity::il2cpp_call!((::unity::module_base()+0x25c21e0usize)as*mut u8,crate::app::challengedifficultymanager::ChallengeDifficultyManager;
150(crate::app::procinst::ProcInst)::core::convert::Into::into(super_),(crate::app::challengemapselectroot::ChallengeMapSelectRoot)::core::convert::Into::into(root),(crate::app::challengedata::ChallengeData)::core::convert::Into::into(challenge_data),(crate::app::challengedifficultymanager::ChallengeDifficultyManager_ReturnEventHandler)::core::convert::Into::into(return_event_handler))
151 }
152 }
153}
154
155#[cfg(feature = "app-challengedifficultymanager")]
156pub trait IChallengeDifficultyManagerMethods: IChallengeDifficultyManager {
157 #[doc = "`.ctor(crate::app::procinst::ProcInst, crate::app::challengemapselectroot::ChallengeMapSelectRoot, crate::app::challengedata::ChallengeData, crate::app::challengedifficultymanager::ChallengeDifficultyManager_ReturnEventHandler)` overload"]
158 fn ctor(
159 self,
160 super_: impl ::core::convert::Into<crate::app::procinst::ProcInst>,
161 root: impl ::core::convert::Into<crate::app::challengemapselectroot::ChallengeMapSelectRoot>,
162 challenge_data: impl ::core::convert::Into<crate::app::challengedata::ChallengeData>,
163 return_event_handler: impl ::core::convert::Into<crate::app::challengedifficultymanager::ChallengeDifficultyManager_ReturnEventHandler>,
164 ) -> () {
165 unsafe {
166 let __receiver =
167 <ChallengeDifficultyManager as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
168 ::unity::il2cpp_call!((::unity::module_base()+0x25c22b0usize)as*mut u8,();
169(ChallengeDifficultyManager)__receiver,(crate::app::procinst::ProcInst)::core::convert::Into::into(super_),(crate::app::challengemapselectroot::ChallengeMapSelectRoot)::core::convert::Into::into(root),(crate::app::challengedata::ChallengeData)::core::convert::Into::into(challenge_data),(crate::app::challengedifficultymanager::ChallengeDifficultyManager_ReturnEventHandler)::core::convert::Into::into(return_event_handler))
170 }
171 }
172 #[doc = "`OnDecide(i32)` overload"]
173 fn on_decide(self, difficulty: impl ::core::convert::Into<i32>) -> () {
174 unsafe {
175 let __receiver =
176 <ChallengeDifficultyManager as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
177 ::unity::il2cpp_call!((::unity::module_base()+0x25c2570usize)as*mut u8,();
178(ChallengeDifficultyManager)__receiver,(i32)::core::convert::Into::into(difficulty))
179 }
180 }
181 #[doc = "`OnDecideYes()` overload"]
182 fn on_decide_yes(self) -> () {
183 unsafe {
184 let __receiver =
185 <ChallengeDifficultyManager as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
186 ::unity::il2cpp_call!((::unity::module_base()+0x25c2740usize)as*mut u8,();
187(ChallengeDifficultyManager)__receiver)
188 }
189 }
190 #[doc = "`OnRequestClose(i32)` overload"]
191 fn on_request_close(self, difficulty: impl ::core::convert::Into<i32>) -> () {
192 unsafe {
193 let __receiver =
194 <ChallengeDifficultyManager as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
195 ::unity::il2cpp_call!((::unity::module_base()+0x25c2790usize)as*mut u8,();
196(ChallengeDifficultyManager)__receiver,(i32)::core::convert::Into::into(difficulty))
197 }
198 }
199}
200
201#[cfg(feature = "app-challengedifficultymanager")]
202impl<__T: IChallengeDifficultyManager> IChallengeDifficultyManagerMethods for __T {}
203
204#[cfg(feature = "app-challengedifficultymanager")]
205impl ChallengeDifficultyManager {
206 pub fn create_method_info() -> &'static ::unity::il2cpp::MethodInfo {
207 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
208 }
209
210 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
211 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
212 }
213
214 pub fn on_decide_method_info() -> &'static ::unity::il2cpp::MethodInfo {
215 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
216 }
217
218 pub fn on_decide_yes_method_info() -> &'static ::unity::il2cpp::MethodInfo {
219 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
220 }
221
222 pub fn on_request_close_method_info() -> &'static ::unity::il2cpp::MethodInfo {
223 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
224 }
225}
226
227#[cfg(feature = "app-challengedifficultymanager")]
228impl ChallengeDifficultyManager {
229 #[doc = "`.ctor(crate::app::procinst::ProcInst, crate::app::challengemapselectroot::ChallengeMapSelectRoot, crate::app::challengedata::ChallengeData, crate::app::challengedifficultymanager::ChallengeDifficultyManager_ReturnEventHandler)` — overload selector"]
230 pub fn new(
231 super_: crate::app::procinst::ProcInst,
232 root: crate::app::challengemapselectroot::ChallengeMapSelectRoot,
233 challenge_data: crate::app::challengedata::ChallengeData,
234 return_event_handler: crate::app::challengedifficultymanager::ChallengeDifficultyManager_ReturnEventHandler,
235 ) -> Self {
236 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
237 panic!(
238 "{}
239::{}
240 failed to instantiate",
241 ::core::stringify!(ChallengeDifficultyManager),
242 ::core::stringify!(new),
243 )
244 });
245 <Self as IChallengeDifficultyManagerMethods>::ctor(this, super_, root, challenge_data, return_event_handler);
246 this
247 }
248}
249
250#[cfg(feature = "app-challengedifficultymanager")]
251#[doc(hidden)]
252pub mod prelude {
253 pub use super::{
254 ChallengeDifficultyManager, ChallengeDifficultyManager_ReturnEventHandler, IChallengeDifficultyManager, IChallengeDifficultyManagerMethods,
255 IChallengeDifficultyManager_ReturnEventHandler, IChallengeDifficultyManager_ReturnEventHandlerMethods,
256 };
257 #[cfg(feature = "system-delegate")]
258 pub use crate::system::delegate::IDelegateMethods;
259 #[cfg(feature = "system-multicastdelegate")]
260 pub use crate::system::multicastdelegate::IMulticastDelegateMethods;
261 #[cfg(feature = "system-object")]
262 pub use crate::system::object::IObjectMethods;
263 pub use crate::system::{delegate::IDelegate, multicastdelegate::IMulticastDelegate, object::IObject};
264}