Skip to main content

engage/generated/app/
rawvaluelist.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "app-rawvaluelist-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/rawvaluelist/RawValueList.md"))]
11    #[::unity::class(namespace = "App", name = "RawValueList")]
12    #[parent(crate::system::object::Object)]
13    pub struct RawValueList {
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-rawvaluelist-types")]
24pub use __types::*;
25
26#[cfg(feature = "app-rawvaluelist")]
27pub trait IRawValueListMethods: IRawValueList {
28    #[doc = "`get_Capacity()` overload"]
29    fn get_capacity(self) -> i32 {
30        unsafe {
31            let __receiver = <RawValueList as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
32            ::unity::il2cpp_call!((::unity::module_base()+0x237e360usize)as*mut u8,i32;
33(RawValueList)__receiver)
34        }
35    }
36    #[doc = "`.ctor(i32)` overload"]
37    fn ctor(self, capacity: impl ::core::convert::Into<i32>) -> () {
38        unsafe {
39            let __receiver = <RawValueList as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
40            ::unity::il2cpp_call!((::unity::module_base()+0x237e370usize)as*mut u8,();
41(RawValueList)__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 = <RawValueList as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
48            ::unity::il2cpp_call!((::unity::module_base()+0x237e400usize)as*mut u8,crate::system::valuetype::ValueType;
49(RawValueList)__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 = <RawValueList 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()+0x237e440usize)as*mut u8,();
58(RawValueList)__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 = "`Add(crate::system::valuetype::ValueType)` overload"]
63    fn add(self, value: impl ::core::convert::Into<crate::system::valuetype::ValueType>) -> () {
64        unsafe {
65            let __receiver = <RawValueList as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
66            ::unity::il2cpp_call!((::unity::module_base()+0x237e4c0usize)as*mut u8,();
67(RawValueList)__receiver,(crate::system::valuetype::ValueType)::core::convert::Into::into(value))
68        }
69    }
70    #[doc = "`Clear()` overload"]
71    fn clear(self) -> () {
72        unsafe {
73            let __receiver = <RawValueList as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
74            ::unity::il2cpp_call!((::unity::module_base()+0x237e540usize)as*mut u8,();
75(RawValueList)__receiver)
76        }
77    }
78}
79
80#[cfg(feature = "app-rawvaluelist")]
81impl<__T: IRawValueList> IRawValueListMethods for __T {}
82
83#[cfg(feature = "app-rawvaluelist")]
84impl RawValueList {
85    pub fn get_capacity_method_info() -> &'static ::unity::il2cpp::MethodInfo {
86        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
87    }
88
89    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
90        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
91    }
92
93    pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
94        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
95    }
96
97    pub fn set_method_info() -> &'static ::unity::il2cpp::MethodInfo {
98        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
99    }
100
101    pub fn add_method_info() -> &'static ::unity::il2cpp::MethodInfo {
102        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
103    }
104
105    pub fn clear_method_info() -> &'static ::unity::il2cpp::MethodInfo {
106        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
107    }
108}
109
110#[cfg(feature = "app-rawvaluelist")]
111impl RawValueList {
112    #[doc = "`.ctor(i32)` — overload selector"]
113    pub fn new(capacity: i32) -> Self {
114        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
115            panic!(
116                "{}
117::{}
118 failed to instantiate",
119                ::core::stringify!(RawValueList),
120                ::core::stringify!(new),
121            )
122        });
123        <Self as IRawValueListMethods>::ctor(this, capacity);
124        this
125    }
126}
127
128#[cfg(feature = "app-rawvaluelist")]
129#[doc(hidden)]
130pub mod prelude {
131    pub use super::{IRawValueList, IRawValueListMethods, RawValueList};
132    pub use crate::system::object::IObject;
133    #[cfg(feature = "system-object")]
134    pub use crate::system::object::IObjectMethods;
135}