Skip to main content

engage/generated/app/
profilelist.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "app-profilelist-types")]
4mod __types {
5    #[allow(unused_imports)] use ::unity::prelude::*;
6
7    use super::*;
8    use crate::system::{
9        collections::generic::list_1::{IList_1, List_1},
10        object::{IObject, Object},
11    };
12
13    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/profilelist/ProfileList.md"))]
14    #[::unity::class(namespace = "App", name = "ProfileList")]
15    #[parent(crate::system::collections::generic::list_1::List_1<crate::app::profilecard::ProfileCard>)]
16    pub struct ProfileList {
17        #[static_field]
18        #[rename(name = "Version")]
19        pub version: i32,
20        #[static_field]
21        #[rename(name = "ProfileCountMax")]
22        pub profile_count_max: i32,
23    }
24}
25
26#[cfg(feature = "app-profilelist-types")]
27pub use __types::*;
28
29#[cfg(feature = "app-profilelist")]
30pub trait IProfileListMethods: IProfileList {
31    #[doc = "`TryGet(i32)` overload"]
32    fn try_get(self, index: impl ::core::convert::Into<i32>) -> crate::app::profilecard::ProfileCard {
33        unsafe {
34            let __receiver = <ProfileList as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
35            ::unity::il2cpp_call!((::unity::module_base()+0x2c07940usize)as*mut u8,crate::app::profilecard::ProfileCard;
36(ProfileList)__receiver,(i32)::core::convert::Into::into(index))
37        }
38    }
39    #[doc = "`Serialize(crate::app::stream_2::Stream_2)` overload"]
40    fn serialize(self, stream: impl ::core::convert::Into<crate::app::stream_2::Stream_2>) -> () {
41        unsafe {
42            let __receiver = <ProfileList as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
43            ::unity::il2cpp_call!((::unity::module_base()+0x2c079d0usize)as*mut u8,();
44(ProfileList)__receiver,(crate::app::stream_2::Stream_2)::core::convert::Into::into(stream))
45        }
46    }
47    #[doc = "`Deserialize(crate::app::stream_2::Stream_2)` overload"]
48    fn deserialize(self, stream: impl ::core::convert::Into<crate::app::stream_2::Stream_2>) -> () {
49        unsafe {
50            let __receiver = <ProfileList as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
51            ::unity::il2cpp_call!((::unity::module_base()+0x2c07aa0usize)as*mut u8,();
52(ProfileList)__receiver,(crate::app::stream_2::Stream_2)::core::convert::Into::into(stream))
53        }
54    }
55    #[doc = "`TryGet(u64, *mutcrate::app::profilecard::ProfileCard)` overload"]
56    fn try_get_2(self, owner_id: impl ::core::convert::Into<u64>) -> (bool, crate::app::profilecard::ProfileCard) {
57        unsafe {
58            let __receiver = <ProfileList as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
59            let mut __out_0 = ::core::mem::MaybeUninit::<crate::app::profilecard::ProfileCard>::uninit();
60            let __ret = {
61                ::unity::il2cpp_call!((::unity::module_base()+0x2c07c50usize)as*mut u8,bool;
62(ProfileList)__receiver,(u64)::core::convert::Into::into(owner_id),(*mut crate::app::profilecard::ProfileCard)__out_0.as_mut_ptr())
63            };
64            (__ret, __out_0.assume_init())
65        }
66    }
67    #[doc = "`TryAdd(crate::app::profilecard::ProfileCard)` overload"]
68    fn try_add(self, card: impl ::core::convert::Into<crate::app::profilecard::ProfileCard>) -> bool {
69        unsafe {
70            let __receiver = <ProfileList as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
71            ::unity::il2cpp_call!((::unity::module_base()+0x2c07dd0usize)as*mut u8,bool;
72(ProfileList)__receiver,(crate::app::profilecard::ProfileCard)::core::convert::Into::into(card))
73        }
74    }
75    #[doc = "`ForceAdd(crate::app::profilecard::ProfileCard)` overload"]
76    fn force_add(self, card: impl ::core::convert::Into<crate::app::profilecard::ProfileCard>) -> bool {
77        unsafe {
78            let __receiver = <ProfileList as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
79            ::unity::il2cpp_call!((::unity::module_base()+0x2c07ec0usize)as*mut u8,bool;
80(ProfileList)__receiver,(crate::app::profilecard::ProfileCard)::core::convert::Into::into(card))
81        }
82    }
83    #[doc = "`IsFull()` overload"]
84    fn is_full(self) -> bool {
85        unsafe {
86            let __receiver = <ProfileList as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
87            ::unity::il2cpp_call!((::unity::module_base()+0x2c07fa0usize)as*mut u8,bool;
88(ProfileList)__receiver)
89        }
90    }
91    #[doc = "`IsOver()` overload"]
92    fn is_over(self) -> bool {
93        unsafe {
94            let __receiver = <ProfileList as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
95            ::unity::il2cpp_call!((::unity::module_base()+0x2c07ff0usize)as*mut u8,bool;
96(ProfileList)__receiver)
97        }
98    }
99    #[doc = "`.ctor()` overload"]
100    fn ctor(self) -> () {
101        unsafe {
102            let __receiver = <ProfileList as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
103            ::unity::il2cpp_call!((::unity::module_base()+0x2c08040usize)as*mut u8,();
104(ProfileList)__receiver)
105        }
106    }
107}
108
109#[cfg(feature = "app-profilelist")]
110impl<__T: IProfileList> IProfileListMethods for __T {}
111
112#[cfg(feature = "app-profilelist")]
113impl ProfileList {
114    pub fn try_get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
115        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
116    }
117
118    pub fn serialize_method_info() -> &'static ::unity::il2cpp::MethodInfo {
119        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
120    }
121
122    pub fn deserialize_method_info() -> &'static ::unity::il2cpp::MethodInfo {
123        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
124    }
125
126    pub fn try_get_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
127        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
128    }
129
130    pub fn try_add_method_info() -> &'static ::unity::il2cpp::MethodInfo {
131        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
132    }
133
134    pub fn force_add_method_info() -> &'static ::unity::il2cpp::MethodInfo {
135        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
136    }
137
138    pub fn is_full_method_info() -> &'static ::unity::il2cpp::MethodInfo {
139        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
140    }
141
142    pub fn is_over_method_info() -> &'static ::unity::il2cpp::MethodInfo {
143        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
144    }
145
146    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
147        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
148    }
149}
150
151#[cfg(feature = "app-profilelist")]
152impl ProfileList {
153    #[doc = "`.ctor()` — no args"]
154    pub fn new() -> Self {
155        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
156            panic!(
157                "{}
158::{}
159 failed to instantiate",
160                ::core::stringify!(ProfileList),
161                ::core::stringify!(new),
162            )
163        });
164        <Self as IProfileListMethods>::ctor(this);
165        this
166    }
167}
168
169#[cfg(feature = "app-profilelist")]
170#[doc(hidden)]
171pub mod prelude {
172    pub use super::{IProfileList, IProfileListMethods, ProfileList};
173    #[cfg(feature = "system-collections-generic-list_1")]
174    pub use crate::system::collections::generic::list_1::IList_1Methods;
175    #[cfg(feature = "system-object")]
176    pub use crate::system::object::IObjectMethods;
177    pub use crate::system::{collections::generic::list_1::IList_1, object::IObject};
178}