Skip to main content

engage/generated/app/
itemsequence.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "app-itemsequence-types")]
4mod __types {
5    #[allow(unused_imports)] use ::unity::prelude::*;
6
7    use super::*;
8    use crate::system::object::{IObject, Object};
9
10    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/itemsequence/ItemSequence.md"))]
11    #[::unity::class(namespace = "App", name = "ItemSequence")]
12    #[parent(crate::system::object::Object)]
13    pub struct ItemSequence {}
14}
15
16#[cfg(feature = "app-itemsequence-types")]
17pub use __types::*;
18
19#[cfg(feature = "app-itemsequence")]
20impl ItemSequence {
21    #[doc = "`SetOffset(crate::app::gamemessage::GameMessage)` overload"]
22    pub fn set_offset(msg: impl ::core::convert::Into<crate::app::gamemessage::GameMessage>) -> () {
23        unsafe {
24            ::unity::il2cpp_call!((::unity::module_base()+0x203ec80usize)as*mut u8,();
25(crate::app::gamemessage::GameMessage)::core::convert::Into::into(msg))
26        }
27    }
28}
29
30#[cfg(feature = "app-itemsequence")]
31pub trait IItemSequenceMethods: IItemSequence {
32    #[doc = "`.ctor()` overload"]
33    fn ctor(self) -> () {
34        unsafe {
35            let __receiver = <ItemSequence as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
36            ::unity::il2cpp_call!((::unity::module_base()+0x204a270usize)as*mut u8,();
37(ItemSequence)__receiver)
38        }
39    }
40}
41
42#[cfg(feature = "app-itemsequence")]
43impl<__T: IItemSequence> IItemSequenceMethods for __T {}
44
45#[cfg(feature = "app-itemsequence")]
46impl ItemSequence {
47    pub fn set_offset_method_info() -> &'static ::unity::il2cpp::MethodInfo {
48        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
49    }
50
51    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
52        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
53    }
54}
55
56#[cfg(feature = "app-itemsequence")]
57impl ItemSequence {
58    #[doc = "`.ctor()` — no args"]
59    pub fn new() -> Self {
60        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
61            panic!(
62                "{}
63::{}
64 failed to instantiate",
65                ::core::stringify!(ItemSequence),
66                ::core::stringify!(new),
67            )
68        });
69        <Self as IItemSequenceMethods>::ctor(this);
70        this
71    }
72}
73
74#[cfg(feature = "app-itemsequence")]
75#[doc(hidden)]
76pub mod prelude {
77    pub use super::{IItemSequence, IItemSequenceMethods, ItemSequence};
78    pub use crate::system::object::IObject;
79    #[cfg(feature = "system-object")]
80    pub use crate::system::object::IObjectMethods;
81}