Skip to main content

engage/generated/app/
gamemessage.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "app-gamemessage-types")]
4mod __types {
5    #[allow(unused_imports)] use ::unity::prelude::*;
6
7    use super::*;
8    use crate::{
9        app::{
10            bitfield32::{BitField32, IBitField32},
11            bitfieldcommon::{BitFieldCommon, IBitFieldCommon},
12            procinst::{IProcInst, ProcInst},
13        },
14        system::object::{IObject, Object},
15    };
16
17    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/gamemessage/GameMessage.md"))]
18    #[::unity::class(namespace = "App", name = "GameMessage")]
19    #[parent(crate::app::procinst::ProcInst)]
20    pub struct GameMessage {
21        #[offset(112)]
22        #[rename(name = "m_content")]
23        pub m_content: crate::app::gamemessagecontent::GameMessageContent,
24        #[offset(120)]
25        #[rename(name = "m_status")]
26        pub m_status: crate::app::gamemessage::GameMessage_Status,
27        #[offset(128)]
28        #[rename(name = "m_mess")]
29        pub m_mess: ::unity::Il2CppString,
30        #[offset(136)]
31        #[rename(name = "m_expandedMess")]
32        pub m_expanded_mess: ::unity::Il2CppString,
33        #[offset(144)]
34        #[rename(name = "m_tickCount")]
35        pub m_tick_count: i32,
36        #[offset(148)]
37        #[rename(name = "m_endFrame")]
38        pub m_end_frame: i32,
39    }
40
41    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/gamemessage/GameMessage_Status.md"))]
42    #[::unity::class(namespace = "App", name = "GameMessage.Status")]
43    #[parent(crate::app::bitfield32::BitField32)]
44    pub struct GameMessage_Status {
45        #[static_field]
46        #[rename(name = "SkipDisable")]
47        pub skip_disable: i32,
48        #[static_field]
49        #[rename(name = "KeyWait")]
50        pub key_wait: i32,
51        #[static_field]
52        #[rename(name = "SystemWait")]
53        pub system_wait: i32,
54        #[static_field]
55        #[rename(name = "SystemWaitEnd")]
56        pub system_wait_end: i32,
57        #[static_field]
58        #[rename(name = "Warning")]
59        pub warning: i32,
60        #[static_field]
61        #[rename(name = "FatalError")]
62        pub fatal_error: i32,
63        #[static_field]
64        #[rename(name = "WindowOpened")]
65        pub window_opened: i32,
66    }
67}
68
69#[cfg(feature = "app-gamemessage-types")]
70pub use __types::*;
71
72#[cfg(feature = "app-gamemessage")]
73impl GameMessage {
74    #[doc = "`CreateCommon(crate::app::procinst::ProcInst, ::unity::Il2CppString, bool, i32)` overload"]
75    pub fn create_common(
76        super_: impl ::core::convert::Into<crate::app::procinst::ProcInst>,
77        mess: impl ::core::convert::Into<::unity::Il2CppString>,
78        is_bind: impl ::core::convert::Into<bool>,
79        status: impl ::core::convert::Into<i32>,
80    ) -> crate::app::gamemessage::GameMessage {
81        unsafe {
82            ::unity::il2cpp_call!((::unity::module_base()+0x227ebd0usize)as*mut u8,crate::app::gamemessage::GameMessage;
83(crate::app::procinst::ProcInst)::core::convert::Into::into(super_),(::unity::Il2CppString)::core::convert::Into::into(mess),(bool)::core::convert::Into::into(is_bind),(i32)::core::convert::Into::into(status))
84        }
85    }
86
87    #[doc = "`CreateNoBind(crate::app::procinst::ProcInst, ::unity::Il2CppString, i32)` overload"]
88    pub fn create_no_bind(
89        super_: impl ::core::convert::Into<crate::app::procinst::ProcInst>,
90        mess: impl ::core::convert::Into<::unity::Il2CppString>,
91        status: impl ::core::convert::Into<i32>,
92    ) -> crate::app::gamemessage::GameMessage {
93        unsafe {
94            ::unity::il2cpp_call!((::unity::module_base()+0x227eda0usize)as*mut u8,crate::app::gamemessage::GameMessage;
95(crate::app::procinst::ProcInst)::core::convert::Into::into(super_),(::unity::Il2CppString)::core::convert::Into::into(mess),(i32)::core::convert::Into::into(status))
96        }
97    }
98
99    #[doc = "`CreateBind(crate::app::procinst::ProcInst, ::unity::Il2CppString, i32)` overload"]
100    pub fn create_bind(
101        super_: impl ::core::convert::Into<crate::app::procinst::ProcInst>,
102        mess: impl ::core::convert::Into<::unity::Il2CppString>,
103        status: impl ::core::convert::Into<i32>,
104    ) -> crate::app::gamemessage::GameMessage {
105        unsafe {
106            ::unity::il2cpp_call!((::unity::module_base()+0x227edb0usize)as*mut u8,crate::app::gamemessage::GameMessage;
107(crate::app::procinst::ProcInst)::core::convert::Into::into(super_),(::unity::Il2CppString)::core::convert::Into::into(mess),(i32)::core::convert::Into::into(status))
108        }
109    }
110
111    #[doc = "`CreateKeyWait(crate::app::procinst::ProcInst, ::unity::Il2CppString)` overload"]
112    pub fn create_key_wait(
113        super_: impl ::core::convert::Into<crate::app::procinst::ProcInst>,
114        mess: impl ::core::convert::Into<::unity::Il2CppString>,
115    ) -> crate::app::gamemessage::GameMessage {
116        unsafe {
117            ::unity::il2cpp_call!((::unity::module_base()+0x2270d00usize)as*mut u8,crate::app::gamemessage::GameMessage;
118(crate::app::procinst::ProcInst)::core::convert::Into::into(super_),(::unity::Il2CppString)::core::convert::Into::into(mess))
119        }
120    }
121
122    #[doc = "`CreateSystem(crate::app::procinst::ProcInst, ::unity::Il2CppString)` overload"]
123    pub fn create_system(
124        super_: impl ::core::convert::Into<crate::app::procinst::ProcInst>,
125        mess: impl ::core::convert::Into<::unity::Il2CppString>,
126    ) -> crate::app::gamemessage::GameMessage {
127        unsafe {
128            ::unity::il2cpp_call!((::unity::module_base()+0x227edc0usize)as*mut u8,crate::app::gamemessage::GameMessage;
129(crate::app::procinst::ProcInst)::core::convert::Into::into(super_),(::unity::Il2CppString)::core::convert::Into::into(mess))
130        }
131    }
132
133    #[doc = "`CreateWarning(crate::app::procinst::ProcInst, ::unity::Il2CppString)` overload"]
134    pub fn create_warning(
135        super_: impl ::core::convert::Into<crate::app::procinst::ProcInst>,
136        mess: impl ::core::convert::Into<::unity::Il2CppString>,
137    ) -> crate::app::gamemessage::GameMessage {
138        unsafe {
139            ::unity::il2cpp_call!((::unity::module_base()+0x227edd0usize)as*mut u8,crate::app::gamemessage::GameMessage;
140(crate::app::procinst::ProcInst)::core::convert::Into::into(super_),(::unity::Il2CppString)::core::convert::Into::into(mess))
141        }
142    }
143
144    #[doc = "`CreateItemGetImpl(crate::app::procinst::ProcInst, crate::app::itemdata::ItemData, ::unity::Il2CppString, ::unity::Il2CppString, i32)` overload"]
145    pub fn create_item_get_impl(
146        super_: impl ::core::convert::Into<crate::app::procinst::ProcInst>,
147        item: impl ::core::convert::Into<crate::app::itemdata::ItemData>,
148        name: impl ::core::convert::Into<::unity::Il2CppString>,
149        label: impl ::core::convert::Into<::unity::Il2CppString>,
150        count: impl ::core::convert::Into<i32>,
151    ) -> crate::app::gamemessage::GameMessage {
152        unsafe {
153            ::unity::il2cpp_call!((::unity::module_base()+0x227ee00usize)as*mut u8,crate::app::gamemessage::GameMessage;
154(crate::app::procinst::ProcInst)::core::convert::Into::into(super_),(crate::app::itemdata::ItemData)::core::convert::Into::into(item),(::unity::Il2CppString)::core::convert::Into::into(name),(::unity::Il2CppString)::core::convert::Into::into(label),(i32)::core::convert::Into::into(count))
155        }
156    }
157
158    #[doc = "`CreateItemGet(crate::app::procinst::ProcInst, crate::app::itemdata::ItemData, ::unity::Il2CppString, i32)` overload"]
159    pub fn create_item_get(
160        super_: impl ::core::convert::Into<crate::app::procinst::ProcInst>,
161        item_data: impl ::core::convert::Into<crate::app::itemdata::ItemData>,
162        label: impl ::core::convert::Into<::unity::Il2CppString>,
163        count: impl ::core::convert::Into<i32>,
164    ) -> crate::app::gamemessage::GameMessage {
165        unsafe {
166            ::unity::il2cpp_call!((::unity::module_base()+0x227f120usize)as*mut u8,crate::app::gamemessage::GameMessage;
167(crate::app::procinst::ProcInst)::core::convert::Into::into(super_),(crate::app::itemdata::ItemData)::core::convert::Into::into(item_data),(::unity::Il2CppString)::core::convert::Into::into(label),(i32)::core::convert::Into::into(count))
168        }
169    }
170
171    #[doc = "`CreateUnitItemGet(crate::app::procinst::ProcInst, crate::app::unititem::UnitItem, ::unity::Il2CppString, i32)` overload"]
172    pub fn create_unit_item_get(
173        super_: impl ::core::convert::Into<crate::app::procinst::ProcInst>,
174        unit_item: impl ::core::convert::Into<crate::app::unititem::UnitItem>,
175        label: impl ::core::convert::Into<::unity::Il2CppString>,
176        count: impl ::core::convert::Into<i32>,
177    ) -> crate::app::gamemessage::GameMessage {
178        unsafe {
179            ::unity::il2cpp_call!((::unity::module_base()+0x227f170usize)as*mut u8,crate::app::gamemessage::GameMessage;
180(crate::app::procinst::ProcInst)::core::convert::Into::into(super_),(crate::app::unititem::UnitItem)::core::convert::Into::into(unit_item),(::unity::Il2CppString)::core::convert::Into::into(label),(i32)::core::convert::Into::into(count))
181        }
182    }
183
184    #[doc = "`CreateGoldGain(crate::app::procinst::ProcInst, i32, ::unity::Il2CppString)` overload"]
185    pub fn create_gold_gain(
186        super_: impl ::core::convert::Into<crate::app::procinst::ProcInst>,
187        gold: impl ::core::convert::Into<i32>,
188        label: impl ::core::convert::Into<::unity::Il2CppString>,
189    ) -> crate::app::gamemessage::GameMessage {
190        unsafe {
191            ::unity::il2cpp_call!((::unity::module_base()+0x227f4c0usize)as*mut u8,crate::app::gamemessage::GameMessage;
192(crate::app::procinst::ProcInst)::core::convert::Into::into(super_),(i32)::core::convert::Into::into(gold),(::unity::Il2CppString)::core::convert::Into::into(label))
193        }
194    }
195
196    #[doc = "`CreateGrowUpItemUse(crate::app::procinst::ProcInst, crate::app::itemdata::ItemData)` overload"]
197    pub fn create_grow_up_item_use(
198        super_: impl ::core::convert::Into<crate::app::procinst::ProcInst>,
199        item: impl ::core::convert::Into<crate::app::itemdata::ItemData>,
200    ) -> crate::app::gamemessage::GameMessage {
201        unsafe {
202            ::unity::il2cpp_call!((::unity::module_base()+0x227f730usize)as*mut u8,crate::app::gamemessage::GameMessage;
203(crate::app::procinst::ProcInst)::core::convert::Into::into(super_),(crate::app::itemdata::ItemData)::core::convert::Into::into(item))
204        }
205    }
206
207    #[doc = "`CreateEnhanceItemUse(crate::app::procinst::ProcInst, crate::app::itemdata::ItemData)` overload"]
208    pub fn create_enhance_item_use(
209        super_: impl ::core::convert::Into<crate::app::procinst::ProcInst>,
210        item: impl ::core::convert::Into<crate::app::itemdata::ItemData>,
211    ) -> crate::app::gamemessage::GameMessage {
212        unsafe {
213            ::unity::il2cpp_call!((::unity::module_base()+0x227f9c0usize)as*mut u8,crate::app::gamemessage::GameMessage;
214(crate::app::procinst::ProcInst)::core::convert::Into::into(super_),(crate::app::itemdata::ItemData)::core::convert::Into::into(item))
215        }
216    }
217}
218
219#[cfg(feature = "app-gamemessage")]
220pub trait IGameMessageMethods: IGameMessage {
221    #[doc = "`.ctor(::unity::Il2CppString, crate::app::gamemessagecontent::GameMessageContent, i32)` overload"]
222    fn ctor(
223        self,
224        mess: impl ::core::convert::Into<::unity::Il2CppString>,
225        content: impl ::core::convert::Into<crate::app::gamemessagecontent::GameMessageContent>,
226        status: impl ::core::convert::Into<i32>,
227    ) -> () {
228        unsafe {
229            let __receiver = <GameMessage as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
230            ::unity::il2cpp_call!((::unity::module_base()+0x227d890usize)as*mut u8,();
231(GameMessage)__receiver,(::unity::Il2CppString)::core::convert::Into::into(mess),(crate::app::gamemessagecontent::GameMessageContent)::core::convert::Into::into(content),(i32)::core::convert::Into::into(status))
232        }
233    }
234    #[doc = "`CreateDefaultDesc()` overload"]
235    fn create_default_desc(self) -> ::unity::Array<crate::app::procdesc::ProcDesc> {
236        unsafe {
237            let __receiver = <GameMessage as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
238            ::unity::il2cpp_call!((::unity::module_base()+0x227d980usize)as*mut u8, ::unity::Array<crate::app::procdesc::ProcDesc> ;
239(GameMessage)__receiver)
240        }
241    }
242    #[doc = "`OnCreate()` overload"]
243    fn on_create(self) -> () {
244        unsafe {
245            let __receiver = <GameMessage as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
246            {
247                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
248                let __vi = *__vt.get(9usize).unwrap_or_else(|| {
249                    panic!(
250                        "unity: virtual slot {}
251 out of range (vtable len {}
252) on the runtime class behind {}
253 (method `{}
254`)",
255                        9usize,
256                        __vt.len(),
257                        <GameMessage as ::unity::ClassIdentity>::NAME,
258                        "OnCreate",
259                    )
260                });
261                let __inner: extern "C" fn(GameMessage, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
262                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
263                __inner(__receiver, __mi)
264            }
265        }
266    }
267    #[doc = "`OnDispose()` overload"]
268    fn on_dispose(self) -> () {
269        unsafe {
270            let __receiver = <GameMessage as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
271            {
272                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
273                let __vi = *__vt.get(10usize).unwrap_or_else(|| {
274                    panic!(
275                        "unity: virtual slot {}
276 out of range (vtable len {}
277) on the runtime class behind {}
278 (method `{}
279`)",
280                        10usize,
281                        __vt.len(),
282                        <GameMessage as ::unity::ClassIdentity>::NAME,
283                        "OnDispose",
284                    )
285                });
286                let __inner: extern "C" fn(GameMessage, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
287                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
288                __inner(__receiver, __mi)
289            }
290        }
291    }
292    #[doc = "`GetStatus()` overload"]
293    fn get_status(self) -> crate::app::gamemessage::GameMessage_Status {
294        unsafe {
295            let __receiver = <GameMessage as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
296            ::unity::il2cpp_call!((::unity::module_base()+0x227e170usize)as*mut u8,crate::app::gamemessage::GameMessage_Status;
297(GameMessage)__receiver)
298        }
299    }
300    #[doc = "`GetMess()` overload"]
301    fn get_mess(self) -> ::unity::Il2CppString {
302        unsafe {
303            let __receiver = <GameMessage as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
304            ::unity::il2cpp_call!((::unity::module_base()+0x227e180usize)as*mut u8, ::unity::Il2CppString;
305(GameMessage)__receiver)
306        }
307    }
308    #[doc = "`GetExpandedMess()` overload"]
309    fn get_expanded_mess(self) -> ::unity::Il2CppString {
310        unsafe {
311            let __receiver = <GameMessage as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
312            ::unity::il2cpp_call!((::unity::module_base()+0x227e190usize)as*mut u8, ::unity::Il2CppString;
313(GameMessage)__receiver)
314        }
315    }
316    #[doc = "`Build()` overload"]
317    fn build(self) -> () {
318        unsafe {
319            let __receiver = <GameMessage as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
320            {
321                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
322                let __vi = *__vt.get(18usize).unwrap_or_else(|| {
323                    panic!(
324                        "unity: virtual slot {}
325 out of range (vtable len {}
326) on the runtime class behind {}
327 (method `{}
328`)",
329                        18usize,
330                        __vt.len(),
331                        <GameMessage as ::unity::ClassIdentity>::NAME,
332                        "Build",
333                    )
334                });
335                let __inner: extern "C" fn(GameMessage, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
336                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
337                __inner(__receiver, __mi)
338            }
339        }
340    }
341    #[doc = "`OpenWindow()` overload"]
342    fn open_window(self) -> () {
343        unsafe {
344            let __receiver = <GameMessage as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
345            {
346                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
347                let __vi = *__vt.get(19usize).unwrap_or_else(|| {
348                    panic!(
349                        "unity: virtual slot {}
350 out of range (vtable len {}
351) on the runtime class behind {}
352 (method `{}
353`)",
354                        19usize,
355                        __vt.len(),
356                        <GameMessage as ::unity::ClassIdentity>::NAME,
357                        "OpenWindow",
358                    )
359                });
360                let __inner: extern "C" fn(GameMessage, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
361                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
362                __inner(__receiver, __mi)
363            }
364        }
365    }
366    #[doc = "`WaitOpenWindow()` overload"]
367    fn wait_open_window(self) -> () {
368        unsafe {
369            let __receiver = <GameMessage as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
370            {
371                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
372                let __vi = *__vt.get(20usize).unwrap_or_else(|| {
373                    panic!(
374                        "unity: virtual slot {}
375 out of range (vtable len {}
376) on the runtime class behind {}
377 (method `{}
378`)",
379                        20usize,
380                        __vt.len(),
381                        <GameMessage as ::unity::ClassIdentity>::NAME,
382                        "WaitOpenWindow",
383                    )
384                });
385                let __inner: extern "C" fn(GameMessage, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
386                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
387                __inner(__receiver, __mi)
388            }
389        }
390    }
391    #[doc = "`CloseWindow()` overload"]
392    fn close_window(self) -> () {
393        unsafe {
394            let __receiver = <GameMessage as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
395            {
396                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
397                let __vi = *__vt.get(21usize).unwrap_or_else(|| {
398                    panic!(
399                        "unity: virtual slot {}
400 out of range (vtable len {}
401) on the runtime class behind {}
402 (method `{}
403`)",
404                        21usize,
405                        __vt.len(),
406                        <GameMessage as ::unity::ClassIdentity>::NAME,
407                        "CloseWindow",
408                    )
409                });
410                let __inner: extern "C" fn(GameMessage, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
411                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
412                __inner(__receiver, __mi)
413            }
414        }
415    }
416    #[doc = "`WaitCloseWindow()` overload"]
417    fn wait_close_window(self) -> () {
418        unsafe {
419            let __receiver = <GameMessage as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
420            {
421                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
422                let __vi = *__vt.get(22usize).unwrap_or_else(|| {
423                    panic!(
424                        "unity: virtual slot {}
425 out of range (vtable len {}
426) on the runtime class behind {}
427 (method `{}
428`)",
429                        22usize,
430                        __vt.len(),
431                        <GameMessage as ::unity::ClassIdentity>::NAME,
432                        "WaitCloseWindow",
433                    )
434                });
435                let __inner: extern "C" fn(GameMessage, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
436                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
437                __inner(__receiver, __mi)
438            }
439        }
440    }
441    #[doc = "`Tick()` overload"]
442    fn tick(self) -> () {
443        unsafe {
444            let __receiver = <GameMessage as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
445            {
446                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
447                let __vi = *__vt.get(23usize).unwrap_or_else(|| {
448                    panic!(
449                        "unity: virtual slot {}
450 out of range (vtable len {}
451) on the runtime class behind {}
452 (method `{}
453`)",
454                        23usize,
455                        __vt.len(),
456                        <GameMessage as ::unity::ClassIdentity>::NAME,
457                        "Tick",
458                    )
459                });
460                let __inner: extern "C" fn(GameMessage, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
461                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
462                __inner(__receiver, __mi)
463            }
464        }
465    }
466    #[doc = "`SetShadowOff()` overload"]
467    fn set_shadow_off(self) -> crate::app::gamemessage::GameMessage {
468        unsafe {
469            let __receiver = <GameMessage as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
470            ::unity::il2cpp_call!((::unity::module_base()+0x227fc50usize)as*mut u8,crate::app::gamemessage::GameMessage;
471(GameMessage)__receiver)
472        }
473    }
474    #[doc = "`SetPosition(f32, f32)` overload"]
475    fn set_position(self, x: impl ::core::convert::Into<f32>, y: impl ::core::convert::Into<f32>) -> crate::app::gamemessage::GameMessage {
476        unsafe {
477            let __receiver = <GameMessage as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
478            ::unity::il2cpp_call!((::unity::module_base()+0x227fdb0usize)as*mut u8,crate::app::gamemessage::GameMessage;
479(GameMessage)__receiver,(f32)::core::convert::Into::into(x),(f32)::core::convert::Into::into(y))
480        }
481    }
482}
483
484#[cfg(feature = "app-gamemessage")]
485impl<__T: IGameMessage> IGameMessageMethods for __T {}
486
487#[cfg(feature = "app-gamemessage")]
488impl GameMessage {
489    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
490        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
491    }
492
493    pub fn create_default_desc_method_info() -> &'static ::unity::il2cpp::MethodInfo {
494        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
495    }
496
497    pub fn on_create_method_info() -> &'static ::unity::il2cpp::MethodInfo {
498        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
499    }
500
501    pub fn on_dispose_method_info() -> &'static ::unity::il2cpp::MethodInfo {
502        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
503    }
504
505    pub fn get_status_method_info() -> &'static ::unity::il2cpp::MethodInfo {
506        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
507    }
508
509    pub fn get_mess_method_info() -> &'static ::unity::il2cpp::MethodInfo {
510        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
511    }
512
513    pub fn get_expanded_mess_method_info() -> &'static ::unity::il2cpp::MethodInfo {
514        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
515    }
516
517    pub fn build_method_info() -> &'static ::unity::il2cpp::MethodInfo {
518        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
519    }
520
521    pub fn open_window_method_info() -> &'static ::unity::il2cpp::MethodInfo {
522        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
523    }
524
525    pub fn wait_open_window_method_info() -> &'static ::unity::il2cpp::MethodInfo {
526        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
527    }
528
529    pub fn close_window_method_info() -> &'static ::unity::il2cpp::MethodInfo {
530        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
531    }
532
533    pub fn wait_close_window_method_info() -> &'static ::unity::il2cpp::MethodInfo {
534        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[11]
535    }
536
537    pub fn tick_method_info() -> &'static ::unity::il2cpp::MethodInfo {
538        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[12]
539    }
540
541    pub fn create_common_method_info() -> &'static ::unity::il2cpp::MethodInfo {
542        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[13]
543    }
544
545    pub fn create_no_bind_method_info() -> &'static ::unity::il2cpp::MethodInfo {
546        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[14]
547    }
548
549    pub fn create_bind_method_info() -> &'static ::unity::il2cpp::MethodInfo {
550        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[15]
551    }
552
553    pub fn create_key_wait_method_info() -> &'static ::unity::il2cpp::MethodInfo {
554        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[16]
555    }
556
557    pub fn create_system_method_info() -> &'static ::unity::il2cpp::MethodInfo {
558        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[17]
559    }
560
561    pub fn create_warning_method_info() -> &'static ::unity::il2cpp::MethodInfo {
562        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[18]
563    }
564
565    pub fn create_item_get_impl_method_info() -> &'static ::unity::il2cpp::MethodInfo {
566        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[19]
567    }
568
569    pub fn create_item_get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
570        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[20]
571    }
572
573    pub fn create_unit_item_get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
574        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[21]
575    }
576
577    pub fn create_gold_gain_method_info() -> &'static ::unity::il2cpp::MethodInfo {
578        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[22]
579    }
580
581    pub fn create_grow_up_item_use_method_info() -> &'static ::unity::il2cpp::MethodInfo {
582        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[23]
583    }
584
585    pub fn create_enhance_item_use_method_info() -> &'static ::unity::il2cpp::MethodInfo {
586        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[24]
587    }
588
589    pub fn set_shadow_off_method_info() -> &'static ::unity::il2cpp::MethodInfo {
590        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[25]
591    }
592
593    pub fn set_position_method_info() -> &'static ::unity::il2cpp::MethodInfo {
594        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[26]
595    }
596}
597
598#[cfg(feature = "app-gamemessage")]
599impl GameMessage {
600    #[doc = "Direct (non-virtual) call to `GameMessage`'s own `OnCreate`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
601    pub unsafe fn on_create(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
602        let __mi = Self::on_create_method_info();
603        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
604        __inner(this.into(), ::core::option::Option::None)
605    }
606
607    #[doc = "Direct (non-virtual) call to `GameMessage`'s own `OnDispose`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
608    pub unsafe fn on_dispose(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
609        let __mi = Self::on_dispose_method_info();
610        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
611        __inner(this.into(), ::core::option::Option::None)
612    }
613
614    #[doc = "Direct (non-virtual) call to `GameMessage`'s own `Build`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
615    pub unsafe fn build(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
616        let __mi = Self::build_method_info();
617        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
618        __inner(this.into(), ::core::option::Option::None)
619    }
620
621    #[doc = "Direct (non-virtual) call to `GameMessage`'s own `OpenWindow`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
622    pub unsafe fn open_window(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
623        let __mi = Self::open_window_method_info();
624        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
625        __inner(this.into(), ::core::option::Option::None)
626    }
627
628    #[doc = "Direct (non-virtual) call to `GameMessage`'s own `WaitOpenWindow`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
629    pub unsafe fn wait_open_window(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
630        let __mi = Self::wait_open_window_method_info();
631        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
632        __inner(this.into(), ::core::option::Option::None)
633    }
634
635    #[doc = "Direct (non-virtual) call to `GameMessage`'s own `CloseWindow`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
636    pub unsafe fn close_window(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
637        let __mi = Self::close_window_method_info();
638        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
639        __inner(this.into(), ::core::option::Option::None)
640    }
641
642    #[doc = "Direct (non-virtual) call to `GameMessage`'s own `WaitCloseWindow`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
643    pub unsafe fn wait_close_window(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
644        let __mi = Self::wait_close_window_method_info();
645        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
646        __inner(this.into(), ::core::option::Option::None)
647    }
648
649    #[doc = "Direct (non-virtual) call to `GameMessage`'s own `Tick`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
650    pub unsafe fn tick(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
651        let __mi = Self::tick_method_info();
652        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
653        __inner(this.into(), ::core::option::Option::None)
654    }
655}
656
657#[cfg(feature = "app-gamemessage")]
658impl GameMessage {
659    #[doc = "`.ctor(::unity::Il2CppString, crate::app::gamemessagecontent::GameMessageContent, i32)` — overload selector"]
660    pub fn new(mess: ::unity::Il2CppString, content: crate::app::gamemessagecontent::GameMessageContent, status: i32) -> Self {
661        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
662            panic!(
663                "{}
664::{}
665 failed to instantiate",
666                ::core::stringify!(GameMessage),
667                ::core::stringify!(new),
668            )
669        });
670        <Self as IGameMessageMethods>::ctor(this, mess, content, status);
671        this
672    }
673}
674
675#[cfg(feature = "app-gamemessage")]
676pub trait IGameMessage_StatusMethods: IGameMessage_Status {
677    #[doc = "`.ctor()` overload"]
678    fn ctor(self) -> () {
679        unsafe {
680            let __receiver = <GameMessage_Status as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
681            ::unity::il2cpp_call!((::unity::module_base()+0x1e66570usize)as*mut u8,();
682(GameMessage_Status)__receiver)
683        }
684    }
685}
686
687#[cfg(feature = "app-gamemessage")]
688impl<__T: IGameMessage_Status> IGameMessage_StatusMethods for __T {}
689
690#[cfg(feature = "app-gamemessage")]
691impl GameMessage_Status {
692    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
693        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
694    }
695}
696
697#[cfg(feature = "app-gamemessage")]
698impl GameMessage_Status {
699    #[doc = "`.ctor()` — no args"]
700    pub fn new() -> Self {
701        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
702            panic!(
703                "{}
704::{}
705 failed to instantiate",
706                ::core::stringify!(GameMessage_Status),
707                ::core::stringify!(new),
708            )
709        });
710        <Self as IGameMessage_StatusMethods>::ctor(this);
711        this
712    }
713}
714
715#[cfg(feature = "app-gamemessage")]
716#[doc(hidden)]
717pub mod prelude {
718    pub use super::{GameMessage, GameMessage_Status, IGameMessage, IGameMessageMethods, IGameMessage_Status, IGameMessage_StatusMethods};
719    #[cfg(feature = "app-bitfield32")]
720    pub use crate::app::bitfield32::IBitField32Methods;
721    #[cfg(feature = "app-bitfieldcommon")]
722    pub use crate::app::bitfieldcommon::IBitFieldCommonMethods;
723    #[cfg(feature = "app-procinst")]
724    pub use crate::app::procinst::IProcInstMethods;
725    #[cfg(feature = "system-object")]
726    pub use crate::system::object::IObjectMethods;
727    pub use crate::{
728        app::{bitfield32::IBitField32, bitfieldcommon::IBitFieldCommon, procinst::IProcInst},
729        system::object::IObject,
730    };
731}