Skip to main content

engage/generated/app/
rawvaluestack.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "app-rawvaluestack-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/rawvaluestack/RawValueStack.md"))]
11    #[::unity::class(namespace = "App", name = "RawValueStack")]
12    #[parent(crate::system::object::Object)]
13    pub struct RawValueStack {
14        #[offset(16)]
15        #[rename(name = "Count")]
16        pub count: i32,
17        #[offset(24)]
18        #[rename(name = "Values")]
19        pub values: ::unity::Array<crate::system::valuetype::ValueType>,
20    }
21}
22
23#[cfg(feature = "app-rawvaluestack-types")]
24pub use __types::*;
25
26#[cfg(feature = "app-rawvaluestack")]
27pub trait IRawValueStackMethods: IRawValueStack {
28    #[doc = "`get_Capacity()` overload"]
29    fn get_capacity(self) -> i32 {
30        unsafe {
31            let __receiver = <RawValueStack as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
32            ::unity::il2cpp_call!((::unity::module_base()+0x237e580usize)as*mut u8,i32;
33(RawValueStack)__receiver)
34        }
35    }
36    #[doc = "`.ctor(i32)` overload"]
37    fn ctor(self, capacity: impl ::core::convert::Into<i32>) -> () {
38        unsafe {
39            let __receiver = <RawValueStack as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
40            ::unity::il2cpp_call!((::unity::module_base()+0x237e590usize)as*mut u8,();
41(RawValueStack)__receiver,(i32)::core::convert::Into::into(capacity))
42        }
43    }
44    #[doc = "`Get(i32)` overload"]
45    fn get(self, index: impl ::core::convert::Into<i32>) -> crate::system::valuetype::ValueType {
46        unsafe {
47            let __receiver = <RawValueStack as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
48            ::unity::il2cpp_call!((::unity::module_base()+0x237e620usize)as*mut u8,crate::system::valuetype::ValueType;
49(RawValueStack)__receiver,(i32)::core::convert::Into::into(index))
50        }
51    }
52    #[doc = "`Set(i32, *mutcrate::system::valuetype::ValueType)` overload"]
53    fn set(self, index: impl ::core::convert::Into<i32>) -> crate::system::valuetype::ValueType {
54        unsafe {
55            let __receiver = <RawValueStack as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
56            let mut __out_0 = ::core::mem::MaybeUninit::<crate::system::valuetype::ValueType>::uninit();
57            ::unity::il2cpp_call!((::unity::module_base()+0x237e660usize)as*mut u8,();
58(RawValueStack)__receiver,(i32)::core::convert::Into::into(index),(*mut crate::system::valuetype::ValueType)__out_0.as_mut_ptr());
59            __out_0.assume_init()
60        }
61    }
62    #[doc = "`Push(crate::system::valuetype::ValueType)` overload"]
63    fn push(self, value: impl ::core::convert::Into<crate::system::valuetype::ValueType>) -> () {
64        unsafe {
65            let __receiver = <RawValueStack as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
66            ::unity::il2cpp_call!((::unity::module_base()+0x237e6e0usize)as*mut u8,();
67(RawValueStack)__receiver,(crate::system::valuetype::ValueType)::core::convert::Into::into(value))
68        }
69    }
70    #[doc = "`Pop()` overload"]
71    fn pop(self) -> crate::system::valuetype::ValueType {
72        unsafe {
73            let __receiver = <RawValueStack as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
74            ::unity::il2cpp_call!((::unity::module_base()+0x237e760usize)as*mut u8,crate::system::valuetype::ValueType;
75(RawValueStack)__receiver)
76        }
77    }
78    #[doc = "`Clear()` overload"]
79    fn clear(self) -> () {
80        unsafe {
81            let __receiver = <RawValueStack as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
82            ::unity::il2cpp_call!((::unity::module_base()+0x237e7c0usize)as*mut u8,();
83(RawValueStack)__receiver)
84        }
85    }
86}
87
88#[cfg(feature = "app-rawvaluestack")]
89impl<__T: IRawValueStack> IRawValueStackMethods for __T {}
90
91#[cfg(feature = "app-rawvaluestack")]
92impl RawValueStack {
93    pub fn get_capacity_method_info() -> &'static ::unity::il2cpp::MethodInfo {
94        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
95    }
96
97    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
98        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
99    }
100
101    pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
102        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
103    }
104
105    pub fn set_method_info() -> &'static ::unity::il2cpp::MethodInfo {
106        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
107    }
108
109    pub fn push_method_info() -> &'static ::unity::il2cpp::MethodInfo {
110        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
111    }
112
113    pub fn pop_method_info() -> &'static ::unity::il2cpp::MethodInfo {
114        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
115    }
116
117    pub fn clear_method_info() -> &'static ::unity::il2cpp::MethodInfo {
118        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
119    }
120}
121
122#[cfg(feature = "app-rawvaluestack")]
123impl RawValueStack {
124    #[doc = "`.ctor(i32)` — overload selector"]
125    pub fn new(capacity: i32) -> Self {
126        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
127            panic!(
128                "{}
129::{}
130 failed to instantiate",
131                ::core::stringify!(RawValueStack),
132                ::core::stringify!(new),
133            )
134        });
135        <Self as IRawValueStackMethods>::ctor(this, capacity);
136        this
137    }
138}
139
140#[cfg(feature = "app-rawvaluestack")]
141#[doc(hidden)]
142pub mod prelude {
143    pub use super::{IRawValueStack, IRawValueStackMethods, RawValueStack};
144    pub use crate::system::object::IObject;
145    #[cfg(feature = "system-object")]
146    pub use crate::system::object::IObjectMethods;
147}