engage/generated/app/
investmentsequence.rs1#[cfg(feature = "app-investmentsequence-types")]
4mod __types {
5 #[allow(unused_imports)] use ::unity::prelude::*;
6
7 use super::*;
8 use crate::{
9 app::{
10 procinst::{IProcInst, ProcInst},
11 singletonprocinst_1::{ISingletonProcInst_1, SingletonProcInst_1},
12 },
13 system::{
14 object::{IObject, Object},
15 r#enum::{Enum, IEnum},
16 valuetype::{IValueType, ValueType},
17 },
18 };
19
20 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/investmentsequence/InvestmentSequence.md"))]
21 #[::unity::class(namespace = "App", name = "InvestmentSequence")]
22 #[parent(crate::app::singletonprocinst_1::SingletonProcInst_1<crate::app::investmentsequence::InvestmentSequence>)]
23 pub struct InvestmentSequence {}
24
25 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/investmentsequence/InvestmentSequence_Label2.md"))]
26 #[repr(C)]
27 #[derive(::core::clone::Clone, ::core::marker::Copy, ::core::fmt::Debug, ::core::cmp::PartialEq, ::core::cmp::Eq)]
28 pub struct InvestmentSequence_Label2 {
29 pub value: i32,
30 }
31 impl ::unity::ClassIdentity for InvestmentSequence_Label2 {
32 const NAME: &'static str = "InvestmentSequence.Label2";
33 const NAMESPACE: &'static str = "App";
34
35 fn class() -> ::unity::Class {
36 static CACHE: ::std::sync::OnceLock<::unity::Class> = ::std::sync::OnceLock::new();
37 *CACHE.get_or_init(|| ::unity::Class::lookup(Self::NAMESPACE, Self::NAME))
38 }
39 }
40 impl ::unity::IlType for InvestmentSequence_Label2 {
41 fn il_type() -> &'static ::unity::il2cpp::Il2CppType {
42 &<Self as ::unity::ClassIdentity>::class().raw()._1.byval_arg
43 }
44 }
45 impl InvestmentSequence_Label2 {
46 pub fn entry() -> Self {
47 Self { value: 0 }
48 }
49
50 pub fn r#return() -> Self {
51 Self { value: 1 }
52 }
53
54 pub fn end() -> Self {
55 Self { value: 2 }
56 }
57 }
58}
59
60#[cfg(feature = "app-investmentsequence-types")]
61pub use __types::*;
62
63#[cfg(feature = "app-investmentsequence")]
64impl InvestmentSequence {
65 #[doc = "`CreateBind(crate::app::procinst::ProcInst)` overload"]
66 pub fn create_bind(super_: impl ::core::convert::Into<crate::app::procinst::ProcInst>) -> () {
67 unsafe {
68 ::unity::il2cpp_call!((::unity::module_base()+0x27a5620usize)as*mut u8,();
69(crate::app::procinst::ProcInst)::core::convert::Into::into(super_))
70 }
71 }
72}
73
74#[cfg(feature = "app-investmentsequence")]
75pub trait IInvestmentSequenceMethods: IInvestmentSequence {
76 #[doc = "`.ctor()` overload"]
77 fn ctor(self) -> () {
78 unsafe {
79 let __receiver = <InvestmentSequence as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
80 ::unity::il2cpp_call!((::unity::module_base()+0x27a5700usize)as*mut u8,();
81(InvestmentSequence)__receiver)
82 }
83 }
84 #[doc = "`CreateDesc()` overload"]
85 fn create_desc(self) -> ::unity::Array<crate::app::procdesc::ProcDesc> {
86 unsafe {
87 let __receiver = <InvestmentSequence as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
88 ::unity::il2cpp_call!((::unity::module_base()+0x27a5780usize)as*mut u8, ::unity::Array<crate::app::procdesc::ProcDesc> ;
89(InvestmentSequence)__receiver)
90 }
91 }
92 #[doc = "`LoadRes()` overload"]
93 fn load_res(self) -> () {
94 unsafe {
95 let __receiver = <InvestmentSequence as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
96 ::unity::il2cpp_call!((::unity::module_base()+0x27a5b40usize)as*mut u8,();
97(InvestmentSequence)__receiver)
98 }
99 }
100 #[doc = "`Open()` overload"]
101 fn open(self) -> () {
102 unsafe {
103 let __receiver = <InvestmentSequence as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
104 ::unity::il2cpp_call!((::unity::module_base()+0x27a5c20usize)as*mut u8,();
105(InvestmentSequence)__receiver)
106 }
107 }
108 #[doc = "`Close()` overload"]
109 fn close(self) -> () {
110 unsafe {
111 let __receiver = <InvestmentSequence as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
112 ::unity::il2cpp_call!((::unity::module_base()+0x27a5d90usize)as*mut u8,();
113(InvestmentSequence)__receiver)
114 }
115 }
116}
117
118#[cfg(feature = "app-investmentsequence")]
119impl<__T: IInvestmentSequence> IInvestmentSequenceMethods for __T {}
120
121#[cfg(feature = "app-investmentsequence")]
122impl InvestmentSequence {
123 pub fn create_bind_method_info() -> &'static ::unity::il2cpp::MethodInfo {
124 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
125 }
126
127 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
128 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
129 }
130
131 pub fn create_desc_method_info() -> &'static ::unity::il2cpp::MethodInfo {
132 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
133 }
134
135 pub fn load_res_method_info() -> &'static ::unity::il2cpp::MethodInfo {
136 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
137 }
138
139 pub fn open_method_info() -> &'static ::unity::il2cpp::MethodInfo {
140 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
141 }
142
143 pub fn close_method_info() -> &'static ::unity::il2cpp::MethodInfo {
144 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
145 }
146}
147
148#[cfg(feature = "app-investmentsequence")]
149impl InvestmentSequence {
150 #[doc = "`.ctor()` — no args"]
151 pub fn new() -> Self {
152 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
153 panic!(
154 "{}
155::{}
156 failed to instantiate",
157 ::core::stringify!(InvestmentSequence),
158 ::core::stringify!(new),
159 )
160 });
161 <Self as IInvestmentSequenceMethods>::ctor(this);
162 this
163 }
164}
165
166#[cfg(feature = "app-investmentsequence")]
167#[doc(hidden)]
168pub mod prelude {
169 pub use super::{IInvestmentSequence, IInvestmentSequenceMethods, InvestmentSequence, InvestmentSequence_Label2};
170 #[cfg(feature = "app-procinst")]
171 pub use crate::app::procinst::IProcInstMethods;
172 #[cfg(feature = "app-singletonprocinst_1")]
173 pub use crate::app::singletonprocinst_1::ISingletonProcInst_1Methods;
174 #[cfg(feature = "system-object")]
175 pub use crate::system::object::IObjectMethods;
176 #[cfg(feature = "system-enum")]
177 pub use crate::system::r#enum::IEnumMethods;
178 #[cfg(feature = "system-valuetype")]
179 pub use crate::system::valuetype::IValueTypeMethods;
180 pub use crate::{
181 app::{procinst::IProcInst, singletonprocinst_1::ISingletonProcInst_1},
182 system::{object::IObject, r#enum::IEnum, valuetype::IValueType},
183 };
184}