engage/generated/app/
multiitemgainsequence.rs1#[cfg(feature = "app-multiitemgainsequence-types")]
4mod __types {
5 #[allow(unused_imports)] use ::unity::prelude::*;
6
7 use super::*;
8 use crate::{
9 app::procinst::{IProcInst, ProcInst},
10 system::object::{IObject, Object},
11 };
12
13 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/multiitemgainsequence/MultiItemGainSequence.md"))]
14 #[::unity::class(namespace = "App", name = "MultiItemGainSequence")]
15 #[parent(crate::app::procinst::ProcInst)]
16 pub struct MultiItemGainSequence {
17 #[offset(112)]
18 #[rename(name = "m_Items")]
19 pub m_items: crate::system::collections::generic::list_1::List_1<crate::app::itemdata::ItemData>,
20 #[offset(120)]
21 #[rename(name = "m_Index")]
22 pub m_index: i32,
23 }
24}
25
26#[cfg(feature = "app-multiitemgainsequence-types")]
27pub use __types::*;
28
29#[cfg(feature = "app-multiitemgainsequence")]
30impl MultiItemGainSequence {
31 #[doc = "`CreateBind(crate::app::procinst::ProcInst, crate::system::collections::generic::list_1::List_1<crate::app::itemdata::ItemData>)` overload"]
32 pub fn create_bind(
33 super_: impl ::core::convert::Into<crate::app::procinst::ProcInst>,
34 items: impl ::core::convert::Into<crate::system::collections::generic::list_1::List_1<crate::app::itemdata::ItemData>>,
35 ) -> () {
36 unsafe {
37 ::unity::il2cpp_call!((::unity::module_base()+0x2782f90usize)as*mut u8,();
38(crate::app::procinst::ProcInst)::core::convert::Into::into(super_),(crate::system::collections::generic::list_1::List_1<crate::app::itemdata::ItemData>)::core::convert::Into::into(items))
39 }
40 }
41}
42
43#[cfg(feature = "app-multiitemgainsequence")]
44pub trait IMultiItemGainSequenceMethods: IMultiItemGainSequence {
45 #[doc = "`.ctor(crate::system::collections::generic::list_1::List_1<crate::app::itemdata::ItemData>)` overload"]
46 fn ctor(self, items: impl ::core::convert::Into<crate::system::collections::generic::list_1::List_1<crate::app::itemdata::ItemData>>) -> () {
47 unsafe {
48 let __receiver = <MultiItemGainSequence as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
49 ::unity::il2cpp_call!((::unity::module_base()+0x2782e90usize)as*mut u8,();
50(MultiItemGainSequence)__receiver,(crate::system::collections::generic::list_1::List_1<crate::app::itemdata::ItemData>)::core::convert::Into::into(items))
51 }
52 }
53 #[doc = "`OnTick()` overload"]
54 fn on_tick(self) -> () {
55 unsafe {
56 let __receiver = <MultiItemGainSequence as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
57 {
58 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
59 let __vi = *__vt.get(6usize).unwrap_or_else(|| {
60 panic!(
61 "unity: virtual slot {}
62 out of range (vtable len {}
63) on the runtime class behind {}
64 (method `{}
65`)",
66 6usize,
67 __vt.len(),
68 <MultiItemGainSequence as ::unity::ClassIdentity>::NAME,
69 "OnTick",
70 )
71 });
72 let __inner: extern "C" fn(MultiItemGainSequence, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
73 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
74 __inner(__receiver, __mi)
75 }
76 }
77 }
78}
79
80#[cfg(feature = "app-multiitemgainsequence")]
81impl<__T: IMultiItemGainSequence> IMultiItemGainSequenceMethods for __T {}
82
83#[cfg(feature = "app-multiitemgainsequence")]
84impl MultiItemGainSequence {
85 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
86 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
87 }
88
89 pub fn on_tick_method_info() -> &'static ::unity::il2cpp::MethodInfo {
90 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
91 }
92
93 pub fn create_bind_method_info() -> &'static ::unity::il2cpp::MethodInfo {
94 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
95 }
96}
97
98#[cfg(feature = "app-multiitemgainsequence")]
99impl MultiItemGainSequence {
100 #[doc = "Direct (non-virtual) call to `MultiItemGainSequence`'s own `OnTick`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
101 pub unsafe fn on_tick(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
102 let __mi = Self::on_tick_method_info();
103 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
104 __inner(this.into(), ::core::option::Option::None)
105 }
106}
107
108#[cfg(feature = "app-multiitemgainsequence")]
109impl MultiItemGainSequence {
110 #[doc = "`.ctor(crate::system::collections::generic::list_1::List_1<crate::app::itemdata::ItemData>)` — overload selector"]
111 pub fn new(items: crate::system::collections::generic::list_1::List_1<crate::app::itemdata::ItemData>) -> Self {
112 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
113 panic!(
114 "{}
115::{}
116 failed to instantiate",
117 ::core::stringify!(MultiItemGainSequence),
118 ::core::stringify!(new),
119 )
120 });
121 <Self as IMultiItemGainSequenceMethods>::ctor(this, items);
122 this
123 }
124}
125
126#[cfg(feature = "app-multiitemgainsequence")]
127#[doc(hidden)]
128pub mod prelude {
129 pub use super::{IMultiItemGainSequence, IMultiItemGainSequenceMethods, MultiItemGainSequence};
130 #[cfg(feature = "app-procinst")]
131 pub use crate::app::procinst::IProcInstMethods;
132 #[cfg(feature = "system-object")]
133 pub use crate::system::object::IObjectMethods;
134 pub use crate::{app::procinst::IProcInst, system::object::IObject};
135}