engage/generated/app/
stackprocinst_1.rs1#[cfg(feature = "app-stackprocinst_1-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/stackprocinst_1/StackProcInst_1.md"))]
14 #[::unity::class(namespace = "App", name = "StackProcInst`1")]
15 #[parent(crate::app::procinst::ProcInst)]
16 #[parent(crate::system::object::Object)]
17 pub struct StackProcInst_1<T0: ::unity::ClassIdentity> {
18 #[static_field]
19 #[rename(name = "s_Instances")]
20 pub s_instances: crate::system::collections::generic::stack_1::Stack_1<T0>,
21 #[static_field]
22 #[rename(name = "s_Instance")]
23 pub s_instance: T0,
24 }
25}
26
27#[cfg(feature = "app-stackprocinst_1-types")]
28pub use __types::*;
29
30#[cfg(feature = "app-stackprocinst_1")]
31#[::unity::methods]
32impl<T0: ::unity::ClassIdentity> StackProcInst_1<T0> {
33 #[doc = "`get_Instance()` overload"]
34 #[method(name = "get_Instance", args = 0)]
35 pub fn get_instance() -> T0;
36
37 #[doc = "`OnSingletonCreate()` overload"]
38 #[method(name = "OnSingletonCreate", args = 0)]
39 pub fn on_singleton_create(self) -> ();
40
41 #[doc = "`OnSingletonDispose()` overload"]
42 #[method(name = "OnSingletonDispose", args = 0)]
43 pub fn on_singleton_dispose(self) -> ();
44
45 #[doc = "`op_Implicit(crate::app::stackprocinst_1::StackProcInst_1<T0>)` overload"]
46 #[method(name = "op_Implicit", args = 1)]
47 pub fn op_implicit(exists: crate::app::stackprocinst_1::StackProcInst_1<T0>) -> bool;
48
49 #[doc = "`.ctor()` overload"]
50 #[method(name = ".ctor", args = 0)]
51 pub fn ctor(self) -> ();
52
53 #[doc = "`.cctor()` overload"]
54 #[method(name = ".cctor", args = 0)]
55 pub fn cctor() -> ();
56}
57
58#[cfg(feature = "app-stackprocinst_1")]
59impl<T0: ::unity::ClassIdentity> StackProcInst_1<T0> {
60 #[doc = "`.ctor()` — no args"]
61 pub fn new() -> Self {
62 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
63 panic!(
64 "{}
65::{}
66 failed to instantiate",
67 ::core::stringify!(StackProcInst_1),
68 ::core::stringify!(new),
69 )
70 });
71 <Self as IStackProcInst_1Methods<T0>>::ctor(this);
72 this
73 }
74}
75
76#[cfg(feature = "app-stackprocinst_1")]
77#[doc(hidden)]
78pub mod prelude {
79 pub use super::{IStackProcInst_1, IStackProcInst_1Methods, StackProcInst_1};
80 #[cfg(feature = "app-procinst")]
81 pub use crate::app::procinst::IProcInstMethods;
82 #[cfg(feature = "system-object")]
83 pub use crate::system::object::IObjectMethods;
84 pub use crate::{app::procinst::IProcInst, system::object::IObject};
85}