engage/generated/app/
playreportevent.rs1#[cfg(feature = "app-playreportevent-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/playreportevent/PlayReportEvent.md"))]
11 #[::unity::class(namespace = "App", name = "PlayReportEvent")]
12 #[parent(crate::system::object::Object)]
13 pub struct PlayReportEvent {
14 #[static_field]
15 #[rename(name = "s_EventId")]
16 pub s_event_id: ::unity::Il2CppString,
17 #[static_field]
18 #[rename(name = "s_KeyValueCount")]
19 pub s_key_value_count: i32,
20 }
21}
22
23#[cfg(feature = "app-playreportevent-types")]
24pub use __types::*;
25
26#[cfg(feature = "app-playreportevent")]
27impl PlayReportEvent {
28 #[doc = "`End()` overload"]
29 pub fn end() -> () {
30 unsafe {
31 ::unity::il2cpp_call!((::unity::module_base()+0x280e220usize)as*mut u8,();
32 )
33 }
34 }
35
36 pub fn add<M0: ::unity::IlType + ::core::marker::Copy + ::unity::ClassIdentity>(
37 key: impl ::core::convert::Into<::unity::Il2CppString>,
38 val: impl ::core::convert::Into<i64>,
39 ) -> () {
40 static OPEN: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> =
41 ::std::sync::LazyLock::new(|| ::unity::lookup::method_info_on_class(<PlayReportEvent as ::unity::ClassIdentity>::class(), "Add", 2));
42 #[allow(clippy::type_complexity)]
43 static CACHE: ::std::sync::OnceLock<::std::sync::Mutex<::std::collections::HashMap<usize, &'static ::unity::il2cpp::MethodInfo>>> =
44 ::std::sync::OnceLock::new();
45 let _ = true;
46 let __open: &'static ::unity::il2cpp::MethodInfo = match &*OPEN {
47 ::core::result::Result::Ok(mi) => *mi,
48 ::core::result::Result::Err(e) => {
49 panic!(
50 "method lookup failed: {}
51::{}
52: {}
53",
54 <PlayReportEvent as ::unity::ClassIdentity>::NAME,
55 "Add",
56 e
57 )
58 },
59 };
60 let __cache = CACHE.get_or_init(|| ::std::sync::Mutex::new(::std::collections::HashMap::new()));
61 let __key: usize = <M0 as ::unity::IlType>::il_type() as *const _ as usize;
62 let __inflated: &'static ::unity::il2cpp::MethodInfo = {
63 let mut __guard = __cache.lock().unwrap();
64 *__guard
65 .entry(__key)
66 .or_insert_with(|| ::unity::il2cpp::generic::create_generic_method_info(__open, &[<M0 as ::unity::IlType>::il_type()]))
67 };
68 unsafe {
69 let __f: extern "C" fn(::unity::Il2CppString, i64, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__inflated.method_ptr);
70 let __mi_opaque: &'static () = &*(__inflated as *const _ as *const ());
71 __f(
72 ::core::convert::Into::into(key),
73 ::core::convert::Into::into(val),
74 ::core::option::Option::Some(__mi_opaque),
75 )
76 }
77 }
78
79 #[doc = "`Add(::unity::Il2CppString, u64)` overload"]
80 pub fn add_2(key: impl ::core::convert::Into<::unity::Il2CppString>, val: impl ::core::convert::Into<u64>) -> () {
81 unsafe {
82 ::unity::il2cpp_call!((::unity::module_base()+0x280cab0usize)as*mut u8,();
83(::unity::Il2CppString)::core::convert::Into::into(key),(u64)::core::convert::Into::into(val))
84 }
85 }
86
87 #[doc = "`Add(::unity::Il2CppString, f32)` overload"]
88 pub fn add_3(key: impl ::core::convert::Into<::unity::Il2CppString>, val: impl ::core::convert::Into<f32>) -> () {
89 unsafe {
90 ::unity::il2cpp_call!((::unity::module_base()+0x2810890usize)as*mut u8,();
91(::unity::Il2CppString)::core::convert::Into::into(key),(f32)::core::convert::Into::into(val))
92 }
93 }
94
95 #[doc = "`Add(::unity::Il2CppString, f64)` overload"]
96 pub fn add_4(key: impl ::core::convert::Into<::unity::Il2CppString>, val: impl ::core::convert::Into<f64>) -> () {
97 unsafe {
98 ::unity::il2cpp_call!((::unity::module_base()+0x2813850usize)as*mut u8,();
99(::unity::Il2CppString)::core::convert::Into::into(key),(f64)::core::convert::Into::into(val))
100 }
101 }
102
103 #[doc = "`Add(::unity::Il2CppString, ::unity::Il2CppString)` overload"]
104 pub fn add_5(key: impl ::core::convert::Into<::unity::Il2CppString>, val: impl ::core::convert::Into<::unity::Il2CppString>) -> () {
105 unsafe {
106 ::unity::il2cpp_call!((::unity::module_base()+0x280cbb0usize)as*mut u8,();
107(::unity::Il2CppString)::core::convert::Into::into(key),(::unity::Il2CppString)::core::convert::Into::into(val))
108 }
109 }
110
111 #[doc = "`Add(::unity::Il2CppString, bool)` overload"]
112 pub fn add_6(key: impl ::core::convert::Into<::unity::Il2CppString>, val: impl ::core::convert::Into<bool>) -> () {
113 unsafe {
114 ::unity::il2cpp_call!((::unity::module_base()+0x2811300usize)as*mut u8,();
115(::unity::Il2CppString)::core::convert::Into::into(key),(bool)::core::convert::Into::into(val))
116 }
117 }
118
119 #[doc = "`Add(::unity::Il2CppString, ::unity::Array<u8>)` overload"]
120 pub fn add_7(key: impl ::core::convert::Into<::unity::Il2CppString>, val: impl ::core::convert::Into<::unity::Array<u8>>) -> () {
121 unsafe {
122 ::unity::il2cpp_call!((::unity::module_base()+0x2813960usize)as*mut u8,();
123(::unity::Il2CppString)::core::convert::Into::into(key),(::unity::Array<u8>)::core::convert::Into::into(val))
124 }
125 }
126
127 #[doc = "`AddStruct(::unity::Il2CppString)` overload"]
128 pub fn add_struct(key: impl ::core::convert::Into<::unity::Il2CppString>) -> () {
129 unsafe {
130 ::unity::il2cpp_call!((::unity::module_base()+0x28135c0usize)as*mut u8,();
131(::unity::Il2CppString)::core::convert::Into::into(key))
132 }
133 }
134
135 #[doc = "`PrepareAddReport()` overload"]
136 pub fn prepare_add_report() -> () {
137 unsafe {
138 ::unity::il2cpp_call!((::unity::module_base()+0x28137e0usize)as*mut u8,();
139 )
140 }
141 }
142
143 pub fn to_bytes<M0: ::unity::IlType + ::core::marker::Copy + ::unity::ClassIdentity>(data: impl ::core::convert::Into<M0>) -> ::unity::Array<u8> {
144 static OPEN: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> =
145 ::std::sync::LazyLock::new(|| ::unity::lookup::method_info_on_class(<PlayReportEvent as ::unity::ClassIdentity>::class(), "ToBytes", 1));
146 #[allow(clippy::type_complexity)]
147 static CACHE: ::std::sync::OnceLock<::std::sync::Mutex<::std::collections::HashMap<usize, &'static ::unity::il2cpp::MethodInfo>>> =
148 ::std::sync::OnceLock::new();
149 let _ = true;
150 let __open: &'static ::unity::il2cpp::MethodInfo = match &*OPEN {
151 ::core::result::Result::Ok(mi) => *mi,
152 ::core::result::Result::Err(e) => {
153 panic!(
154 "method lookup failed: {}
155::{}
156: {}
157",
158 <PlayReportEvent as ::unity::ClassIdentity>::NAME,
159 "ToBytes",
160 e
161 )
162 },
163 };
164 let __cache = CACHE.get_or_init(|| ::std::sync::Mutex::new(::std::collections::HashMap::new()));
165 let __key: usize = <M0 as ::unity::IlType>::il_type() as *const _ as usize;
166 let __inflated: &'static ::unity::il2cpp::MethodInfo = {
167 let mut __guard = __cache.lock().unwrap();
168 *__guard
169 .entry(__key)
170 .or_insert_with(|| ::unity::il2cpp::generic::create_generic_method_info(__open, &[<M0 as ::unity::IlType>::il_type()]))
171 };
172 unsafe {
173 let __f: extern "C" fn(M0, ::unity::OptionalMethod) -> ::unity::Array<u8> = ::core::mem::transmute(__inflated.method_ptr);
174 let __mi_opaque: &'static () = &*(__inflated as *const _ as *const ());
175 __f(::core::convert::Into::into(data), ::core::option::Option::Some(__mi_opaque))
176 }
177 }
178
179 pub fn from_bytes<M0: ::unity::IlType + ::core::marker::Copy + ::unity::ClassIdentity>(
180 bytes: impl ::core::convert::Into<::unity::Array<u8>>,
181 ) -> M0 {
182 static OPEN: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
183 ::unity::lookup::method_info_on_class(<PlayReportEvent as ::unity::ClassIdentity>::class(), "FromBytes", 1)
184 });
185 #[allow(clippy::type_complexity)]
186 static CACHE: ::std::sync::OnceLock<::std::sync::Mutex<::std::collections::HashMap<usize, &'static ::unity::il2cpp::MethodInfo>>> =
187 ::std::sync::OnceLock::new();
188 let _ = true;
189 let __open: &'static ::unity::il2cpp::MethodInfo = match &*OPEN {
190 ::core::result::Result::Ok(mi) => *mi,
191 ::core::result::Result::Err(e) => {
192 panic!(
193 "method lookup failed: {}
194::{}
195: {}
196",
197 <PlayReportEvent as ::unity::ClassIdentity>::NAME,
198 "FromBytes",
199 e
200 )
201 },
202 };
203 let __cache = CACHE.get_or_init(|| ::std::sync::Mutex::new(::std::collections::HashMap::new()));
204 let __key: usize = <M0 as ::unity::IlType>::il_type() as *const _ as usize;
205 let __inflated: &'static ::unity::il2cpp::MethodInfo = {
206 let mut __guard = __cache.lock().unwrap();
207 *__guard
208 .entry(__key)
209 .or_insert_with(|| ::unity::il2cpp::generic::create_generic_method_info(__open, &[<M0 as ::unity::IlType>::il_type()]))
210 };
211 unsafe {
212 let __f: extern "C" fn(::unity::Array<u8>, ::unity::OptionalMethod) -> M0 = ::core::mem::transmute(__inflated.method_ptr);
213 let __mi_opaque: &'static () = &*(__inflated as *const _ as *const ());
214 __f(::core::convert::Into::into(bytes), ::core::option::Option::Some(__mi_opaque))
215 }
216 }
217
218 #[doc = "`.cctor()` overload"]
219 pub fn cctor() -> () {
220 unsafe {
221 ::unity::il2cpp_call!((::unity::module_base()+0x2813a80usize)as*mut u8,();
222 )
223 }
224 }
225}
226
227#[cfg(feature = "app-playreportevent")]
228pub trait IPlayReportEventMethods: IPlayReportEvent {
229 #[doc = "`.ctor()` overload"]
230 fn ctor(self) -> () {
231 unsafe {
232 let __receiver = <PlayReportEvent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
233 ::unity::il2cpp_call!((::unity::module_base()+0x2813a70usize)as*mut u8,();
234(PlayReportEvent)__receiver)
235 }
236 }
237}
238
239#[cfg(feature = "app-playreportevent")]
240impl<__T: IPlayReportEvent> IPlayReportEventMethods for __T {}
241
242#[cfg(feature = "app-playreportevent")]
243impl PlayReportEvent {
244 pub fn end_method_info() -> &'static ::unity::il2cpp::MethodInfo {
245 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
246 }
247
248 pub fn add_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
249 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
250 }
251
252 pub fn add_3_method_info() -> &'static ::unity::il2cpp::MethodInfo {
253 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
254 }
255
256 pub fn add_4_method_info() -> &'static ::unity::il2cpp::MethodInfo {
257 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
258 }
259
260 pub fn add_5_method_info() -> &'static ::unity::il2cpp::MethodInfo {
261 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
262 }
263
264 pub fn add_6_method_info() -> &'static ::unity::il2cpp::MethodInfo {
265 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
266 }
267
268 pub fn add_7_method_info() -> &'static ::unity::il2cpp::MethodInfo {
269 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
270 }
271
272 pub fn add_struct_method_info() -> &'static ::unity::il2cpp::MethodInfo {
273 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
274 }
275
276 pub fn prepare_add_report_method_info() -> &'static ::unity::il2cpp::MethodInfo {
277 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
278 }
279
280 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
281 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[14]
282 }
283
284 pub fn cctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
285 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[15]
286 }
287}
288
289#[cfg(feature = "app-playreportevent")]
290impl PlayReportEvent {
291 #[doc = "`.ctor()` — no args"]
292 pub fn new() -> Self {
293 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
294 panic!(
295 "{}
296::{}
297 failed to instantiate",
298 ::core::stringify!(PlayReportEvent),
299 ::core::stringify!(new),
300 )
301 });
302 <Self as IPlayReportEventMethods>::ctor(this);
303 this
304 }
305}
306
307#[cfg(feature = "app-playreportevent")]
308#[doc(hidden)]
309pub mod prelude {
310 pub use super::{IPlayReportEvent, IPlayReportEventMethods, PlayReportEvent};
311 pub use crate::system::object::IObject;
312 #[cfg(feature = "system-object")]
313 pub use crate::system::object::IObjectMethods;
314}