Skip to main content

engage/generated/app/
playreportsendbase.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "app-playreportsendbase-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/playreportsendbase/PlayReportSendBase.md"))]
11    #[::unity::class(namespace = "App", name = "PlayReportSendBase")]
12    #[parent(crate::system::object::Object)]
13    pub struct PlayReportSendBase {}
14}
15
16#[cfg(feature = "app-playreportsendbase-types")]
17pub use __types::*;
18
19#[cfg(feature = "app-playreportsendbase")]
20pub trait IPlayReportSendBaseMethods: IPlayReportSendBase {
21    #[doc = "`GetBufferSize()` overload"]
22    fn get_buffer_size(self) -> i64 {
23        unsafe {
24            let __receiver = <PlayReportSendBase as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
25            ::unity::il2cpp_call!((::unity::module_base()+0x2813ce0usize)as*mut u8,i64;
26(PlayReportSendBase)__receiver)
27        }
28    }
29    #[doc = "`GetBufferSizeImpl()` overload"]
30    fn get_buffer_size_impl(self) -> i64 {
31        unsafe {
32            let __receiver = <PlayReportSendBase as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
33            {
34                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
35                let __vi = *__vt.get(4usize).unwrap_or_else(|| {
36                    panic!(
37                        "unity: virtual slot {}
38 out of range (vtable len {}
39) on the runtime class behind {}
40 (method `{}
41`)",
42                        4usize,
43                        __vt.len(),
44                        <PlayReportSendBase as ::unity::ClassIdentity>::NAME,
45                        "GetBufferSizeImpl",
46                    )
47                });
48                let __inner: extern "C" fn(PlayReportSendBase, ::unity::OptionalMethod) -> i64 = ::core::mem::transmute(__vi.method_ptr);
49                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
50                __inner(__receiver, __mi)
51            }
52        }
53    }
54    #[doc = "`GetUndefined()` overload"]
55    fn get_undefined(self) -> ::unity::Il2CppString {
56        unsafe {
57            let __receiver = <PlayReportSendBase as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
58            ::unity::il2cpp_call!((::unity::module_base()+0x2810840usize)as*mut u8, ::unity::Il2CppString;
59(PlayReportSendBase)__receiver)
60        }
61    }
62    #[doc = "`.ctor()` overload"]
63    fn ctor(self) -> () {
64        unsafe {
65            let __receiver = <PlayReportSendBase as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
66            ::unity::il2cpp_call!((::unity::module_base()+0x28137a0usize)as*mut u8,();
67(PlayReportSendBase)__receiver)
68        }
69    }
70}
71
72#[cfg(feature = "app-playreportsendbase")]
73impl<__T: IPlayReportSendBase> IPlayReportSendBaseMethods for __T {}
74
75#[cfg(feature = "app-playreportsendbase")]
76impl PlayReportSendBase {
77    pub fn get_buffer_size_method_info() -> &'static ::unity::il2cpp::MethodInfo {
78        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
79    }
80
81    pub fn get_buffer_size_impl_method_info() -> &'static ::unity::il2cpp::MethodInfo {
82        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
83    }
84
85    pub fn get_undefined_method_info() -> &'static ::unity::il2cpp::MethodInfo {
86        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
87    }
88
89    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
90        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
91    }
92}
93
94#[cfg(feature = "app-playreportsendbase")]
95impl PlayReportSendBase {
96    #[doc = "Direct (non-virtual) call to `PlayReportSendBase`'s own `GetBufferSizeImpl`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
97    pub unsafe fn get_buffer_size_impl(this: impl ::core::convert::Into<::unity::IlInstance>) -> i64 {
98        let __mi = Self::get_buffer_size_impl_method_info();
99        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> i64 = ::core::mem::transmute(__mi.method_ptr);
100        __inner(this.into(), ::core::option::Option::None)
101    }
102}
103
104#[cfg(feature = "app-playreportsendbase")]
105impl PlayReportSendBase {
106    #[doc = "`.ctor()` — no args"]
107    pub fn new() -> Self {
108        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
109            panic!(
110                "{}
111::{}
112 failed to instantiate",
113                ::core::stringify!(PlayReportSendBase),
114                ::core::stringify!(new),
115            )
116        });
117        <Self as IPlayReportSendBaseMethods>::ctor(this);
118        this
119    }
120}
121
122#[cfg(feature = "app-playreportsendbase")]
123#[doc(hidden)]
124pub mod prelude {
125    pub use super::{IPlayReportSendBase, IPlayReportSendBaseMethods, PlayReportSendBase};
126    pub use crate::system::object::IObject;
127    #[cfg(feature = "system-object")]
128    pub use crate::system::object::IObjectMethods;
129}