engage/generated/app/
savedatareadhandle.rs1#[cfg(feature = "app-savedatareadhandle-types")]
4mod __types {
5 #[allow(unused_imports)] use ::unity::prelude::*;
6
7 use super::*;
8 use crate::{
9 app::savedatahandle::{ISaveDataHandle, SaveDataHandle},
10 system::object::{IObject, Object},
11 };
12
13 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/savedatareadhandle/SaveDataReadHandle.md"))]
14 #[::unity::class(namespace = "App", name = "SaveDataReadHandle")]
15 #[parent(crate::app::savedatahandle::SaveDataHandle)]
16 pub struct SaveDataReadHandle {}
17}
18
19#[cfg(feature = "app-savedatareadhandle-types")]
20pub use __types::*;
21
22#[cfg(feature = "app-savedatareadhandle")]
23pub trait ISaveDataReadHandleMethods: ISaveDataReadHandle {
24 #[doc = "`get_Data()` overload"]
25 fn get_data(self) -> ::unity::Array<u8> {
26 unsafe {
27 let __receiver = <SaveDataReadHandle as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
28 ::unity::il2cpp_call!((::unity::module_base()+0x1ec84f0usize)as*mut u8, ::unity::Array<u8> ;
29(SaveDataReadHandle)__receiver)
30 }
31 }
32 #[doc = "`set_Data(::unity::Array<u8>)` overload"]
33 fn set_data(self, value: impl ::core::convert::Into<::unity::Array<u8>>) -> () {
34 unsafe {
35 let __receiver = <SaveDataReadHandle as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
36 ::unity::il2cpp_call!((::unity::module_base()+0x1ec8500usize)as*mut u8,();
37(SaveDataReadHandle)__receiver,(::unity::Array<u8>)::core::convert::Into::into(value))
38 }
39 }
40 #[doc = "`get_ReadSize()` overload"]
41 fn get_read_size(self) -> i64 {
42 unsafe {
43 let __receiver = <SaveDataReadHandle as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
44 ::unity::il2cpp_call!((::unity::module_base()+0x1ec8510usize)as*mut u8,i64;
45(SaveDataReadHandle)__receiver)
46 }
47 }
48 #[doc = "`set_ReadSize(i64)` overload"]
49 fn set_read_size(self, value: impl ::core::convert::Into<i64>) -> () {
50 unsafe {
51 let __receiver = <SaveDataReadHandle as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
52 ::unity::il2cpp_call!((::unity::module_base()+0x1ec8520usize)as*mut u8,();
53(SaveDataReadHandle)__receiver,(i64)::core::convert::Into::into(value))
54 }
55 }
56 #[doc = "`.ctor()` overload"]
57 fn ctor(self) -> () {
58 unsafe {
59 let __receiver = <SaveDataReadHandle as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
60 ::unity::il2cpp_call!((::unity::module_base()+0x1ec4f60usize)as*mut u8,();
61(SaveDataReadHandle)__receiver)
62 }
63 }
64}
65
66#[cfg(feature = "app-savedatareadhandle")]
67impl<__T: ISaveDataReadHandle> ISaveDataReadHandleMethods for __T {}
68
69#[cfg(feature = "app-savedatareadhandle")]
70impl SaveDataReadHandle {
71 pub fn get_data_method_info() -> &'static ::unity::il2cpp::MethodInfo {
72 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
73 }
74
75 pub fn set_data_method_info() -> &'static ::unity::il2cpp::MethodInfo {
76 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
77 }
78
79 pub fn get_read_size_method_info() -> &'static ::unity::il2cpp::MethodInfo {
80 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
81 }
82
83 pub fn set_read_size_method_info() -> &'static ::unity::il2cpp::MethodInfo {
84 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
85 }
86
87 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
88 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
89 }
90}
91
92#[cfg(feature = "app-savedatareadhandle")]
93impl SaveDataReadHandle {
94 #[doc = "`.ctor()` — no args"]
95 pub fn new() -> Self {
96 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
97 panic!(
98 "{}
99::{}
100 failed to instantiate",
101 ::core::stringify!(SaveDataReadHandle),
102 ::core::stringify!(new),
103 )
104 });
105 <Self as ISaveDataReadHandleMethods>::ctor(this);
106 this
107 }
108}
109
110#[cfg(feature = "app-savedatareadhandle")]
111#[doc(hidden)]
112pub mod prelude {
113 pub use super::{ISaveDataReadHandle, ISaveDataReadHandleMethods, SaveDataReadHandle};
114 #[cfg(feature = "app-savedatahandle")]
115 pub use crate::app::savedatahandle::ISaveDataHandleMethods;
116 #[cfg(feature = "system-object")]
117 pub use crate::system::object::IObjectMethods;
118 pub use crate::{app::savedatahandle::ISaveDataHandle, system::object::IObject};
119}