Skip to main content

engage/generated/app/
chapterrecord.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "app-chapterrecord-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/chapterrecord/ChapterRecord.md"))]
11    #[::unity::class(namespace = "App", name = "ChapterRecord")]
12    #[parent(crate::system::object::Object)]
13    pub struct ChapterRecord {
14        #[static_field]
15        #[rename(name = "Version")]
16        pub version: i32,
17        #[offset(16)]
18        #[rename(name = "m_List")]
19        pub m_list: crate::system::collections::generic::list_1::List_1<crate::app::chapterrecord::ChapterRecord_Record>,
20        #[offset(24)]
21        #[rename(name = "m_Dictionary")]
22        pub m_dictionary:
23            crate::system::collections::generic::dictionary_2::Dictionary_2<::unity::Il2CppString, crate::app::chapterrecord::ChapterRecord_Record>,
24    }
25
26    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/chapterrecord/ChapterRecord_Record.md"))]
27    #[::unity::class(namespace = "App", name = "ChapterRecord.Record")]
28    #[parent(crate::system::object::Object)]
29    pub struct ChapterRecord_Record {
30        #[offset(16)]
31        #[rename(name = "Cid")]
32        pub cid: ::unity::Il2CppString,
33        #[offset(24)]
34        #[rename(name = "MvpPid")]
35        pub mvp_pid: ::unity::Il2CppString,
36        #[offset(32)]
37        #[rename(name = "MvpJid")]
38        pub mvp_jid: ::unity::Il2CppString,
39        #[offset(40)]
40        #[rename(name = "MvpGid")]
41        pub mvp_gid: ::unity::Il2CppString,
42        #[offset(48)]
43        #[rename(name = "ClearTime")]
44        pub clear_time: f32,
45        #[offset(52)]
46        #[rename(name = "ClearTurn")]
47        pub clear_turn: i32,
48    }
49}
50
51#[cfg(feature = "app-chapterrecord-types")]
52pub use __types::*;
53
54#[cfg(feature = "app-chapterrecord")]
55pub trait IChapterRecordMethods: IChapterRecord {
56    #[doc = "`.ctor()` overload"]
57    fn ctor(self) -> () {
58        unsafe {
59            let __receiver = <ChapterRecord as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
60            ::unity::il2cpp_call!((::unity::module_base()+0x2afb480usize)as*mut u8,();
61(ChapterRecord)__receiver)
62        }
63    }
64    #[doc = "`get_Count()` overload"]
65    fn get_count(self) -> i32 {
66        unsafe {
67            let __receiver = <ChapterRecord as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
68            ::unity::il2cpp_call!((::unity::module_base()+0x2afb560usize)as*mut u8,i32;
69(ChapterRecord)__receiver)
70        }
71    }
72    #[doc = "`get_Item(i32)` overload"]
73    fn get_item(self, index: impl ::core::convert::Into<i32>) -> crate::app::chapterrecord::ChapterRecord_Record {
74        unsafe {
75            let __receiver = <ChapterRecord as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
76            ::unity::il2cpp_call!((::unity::module_base()+0x2afb5b0usize)as*mut u8,crate::app::chapterrecord::ChapterRecord_Record;
77(ChapterRecord)__receiver,(i32)::core::convert::Into::into(index))
78        }
79    }
80    #[doc = "`Find(::unity::Il2CppString)` overload"]
81    fn find(self, cid: impl ::core::convert::Into<::unity::Il2CppString>) -> crate::app::chapterrecord::ChapterRecord_Record {
82        unsafe {
83            let __receiver = <ChapterRecord as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
84            ::unity::il2cpp_call!((::unity::module_base()+0x2afb620usize)as*mut u8,crate::app::chapterrecord::ChapterRecord_Record;
85(ChapterRecord)__receiver,(::unity::Il2CppString)::core::convert::Into::into(cid))
86        }
87    }
88    #[doc = "`Find(crate::app::chapterdata::ChapterData)` overload"]
89    fn find_2(self, chapter: impl ::core::convert::Into<crate::app::chapterdata::ChapterData>) -> crate::app::chapterrecord::ChapterRecord_Record {
90        unsafe {
91            let __receiver = <ChapterRecord as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
92            ::unity::il2cpp_call!((::unity::module_base()+0x2afb6a0usize)as*mut u8,crate::app::chapterrecord::ChapterRecord_Record;
93(ChapterRecord)__receiver,(crate::app::chapterdata::ChapterData)::core::convert::Into::into(chapter))
94        }
95    }
96    #[doc = "`Clear()` overload"]
97    fn clear(self) -> () {
98        unsafe {
99            let __receiver = <ChapterRecord as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
100            ::unity::il2cpp_call!((::unity::module_base()+0x2afb730usize)as*mut u8,();
101(ChapterRecord)__receiver)
102        }
103    }
104    #[doc = "`TryAdd(crate::app::chapterrecord::ChapterRecord_Record)` overload"]
105    fn try_add(
106        self,
107        record: impl ::core::convert::Into<crate::app::chapterrecord::ChapterRecord_Record>,
108    ) -> crate::app::chapterrecord::ChapterRecord_Record {
109        unsafe {
110            let __receiver = <ChapterRecord as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
111            ::unity::il2cpp_call!((::unity::module_base()+0x2afb7b0usize)as*mut u8,crate::app::chapterrecord::ChapterRecord_Record;
112(ChapterRecord)__receiver,(crate::app::chapterrecord::ChapterRecord_Record)::core::convert::Into::into(record))
113        }
114    }
115    #[doc = "`TryAdd(::unity::Il2CppString)` overload"]
116    fn try_add_2(self, cid: impl ::core::convert::Into<::unity::Il2CppString>) -> crate::app::chapterrecord::ChapterRecord_Record {
117        unsafe {
118            let __receiver = <ChapterRecord as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
119            ::unity::il2cpp_call!((::unity::module_base()+0x2afb840usize)as*mut u8,crate::app::chapterrecord::ChapterRecord_Record;
120(ChapterRecord)__receiver,(::unity::Il2CppString)::core::convert::Into::into(cid))
121        }
122    }
123    #[doc = "`TryAdd(crate::app::chapterdata::ChapterData)` overload"]
124    fn try_add_3(self, chapter: impl ::core::convert::Into<crate::app::chapterdata::ChapterData>) -> crate::app::chapterrecord::ChapterRecord_Record {
125        unsafe {
126            let __receiver = <ChapterRecord as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
127            ::unity::il2cpp_call!((::unity::module_base()+0x2afb970usize)as*mut u8,crate::app::chapterrecord::ChapterRecord_Record;
128(ChapterRecord)__receiver,(crate::app::chapterdata::ChapterData)::core::convert::Into::into(chapter))
129        }
130    }
131    #[doc = "`Serialize(crate::app::stream_2::Stream_2)` overload"]
132    fn serialize(self, stream: impl ::core::convert::Into<crate::app::stream_2::Stream_2>) -> () {
133        unsafe {
134            let __receiver = <ChapterRecord as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
135            ::unity::il2cpp_call!((::unity::module_base()+0x2afb990usize)as*mut u8,();
136(ChapterRecord)__receiver,(crate::app::stream_2::Stream_2)::core::convert::Into::into(stream))
137        }
138    }
139    #[doc = "`Deserialize(crate::app::stream_2::Stream_2)` overload"]
140    fn deserialize(self, stream: impl ::core::convert::Into<crate::app::stream_2::Stream_2>) -> () {
141        unsafe {
142            let __receiver = <ChapterRecord as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
143            ::unity::il2cpp_call!((::unity::module_base()+0x2afbac0usize)as*mut u8,();
144(ChapterRecord)__receiver,(crate::app::stream_2::Stream_2)::core::convert::Into::into(stream))
145        }
146    }
147}
148
149#[cfg(feature = "app-chapterrecord")]
150impl<__T: IChapterRecord> IChapterRecordMethods for __T {}
151
152#[cfg(feature = "app-chapterrecord")]
153impl ChapterRecord {
154    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
155        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
156    }
157
158    pub fn get_count_method_info() -> &'static ::unity::il2cpp::MethodInfo {
159        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
160    }
161
162    pub fn get_item_method_info() -> &'static ::unity::il2cpp::MethodInfo {
163        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
164    }
165
166    pub fn find_method_info() -> &'static ::unity::il2cpp::MethodInfo {
167        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
168    }
169
170    pub fn find_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
171        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
172    }
173
174    pub fn clear_method_info() -> &'static ::unity::il2cpp::MethodInfo {
175        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
176    }
177
178    pub fn try_add_method_info() -> &'static ::unity::il2cpp::MethodInfo {
179        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
180    }
181
182    pub fn try_add_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
183        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
184    }
185
186    pub fn try_add_3_method_info() -> &'static ::unity::il2cpp::MethodInfo {
187        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
188    }
189
190    pub fn serialize_method_info() -> &'static ::unity::il2cpp::MethodInfo {
191        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
192    }
193
194    pub fn deserialize_method_info() -> &'static ::unity::il2cpp::MethodInfo {
195        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
196    }
197}
198
199#[cfg(feature = "app-chapterrecord")]
200impl ChapterRecord {
201    #[doc = "`.ctor()` — no args"]
202    pub fn new() -> Self {
203        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
204            panic!(
205                "{}
206::{}
207 failed to instantiate",
208                ::core::stringify!(ChapterRecord),
209                ::core::stringify!(new),
210            )
211        });
212        <Self as IChapterRecordMethods>::ctor(this);
213        this
214    }
215}
216
217#[cfg(feature = "app-chapterrecord")]
218pub trait IChapterRecord_RecordMethods: IChapterRecord_Record {
219    #[doc = "`.ctor(::unity::Il2CppString)` overload"]
220    fn ctor(self, cid: impl ::core::convert::Into<::unity::Il2CppString>) -> () {
221        unsafe {
222            let __receiver = <ChapterRecord_Record as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
223            ::unity::il2cpp_call!((::unity::module_base()+0x19c00f0usize)as*mut u8,();
224(ChapterRecord_Record)__receiver,(::unity::Il2CppString)::core::convert::Into::into(cid))
225        }
226    }
227}
228
229#[cfg(feature = "app-chapterrecord")]
230impl<__T: IChapterRecord_Record> IChapterRecord_RecordMethods for __T {}
231
232#[cfg(feature = "app-chapterrecord")]
233impl ChapterRecord_Record {
234    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
235        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
236    }
237}
238
239#[cfg(feature = "app-chapterrecord")]
240impl ChapterRecord_Record {
241    #[doc = "`.ctor(::unity::Il2CppString)` — overload selector"]
242    pub fn new(cid: ::unity::Il2CppString) -> Self {
243        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
244            panic!(
245                "{}
246::{}
247 failed to instantiate",
248                ::core::stringify!(ChapterRecord_Record),
249                ::core::stringify!(new),
250            )
251        });
252        <Self as IChapterRecord_RecordMethods>::ctor(this, cid);
253        this
254    }
255}
256
257#[cfg(feature = "app-chapterrecord")]
258#[doc(hidden)]
259pub mod prelude {
260    pub use super::{
261        ChapterRecord, ChapterRecord_Record, IChapterRecord, IChapterRecordMethods, IChapterRecord_Record, IChapterRecord_RecordMethods,
262    };
263    pub use crate::system::object::IObject;
264    #[cfg(feature = "system-object")]
265    pub use crate::system::object::IObjectMethods;
266}