Skip to main content

engage/generated/app/
godreliances.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "app-godreliances-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/godreliances/GodRelianceS.md"))]
11    #[::unity::class(namespace = "App", name = "GodRelianceS")]
12    #[parent(crate::system::object::Object)]
13    pub struct GodRelianceS {
14        #[static_field]
15        #[rename(name = "Version")]
16        pub version: i32,
17        #[offset(16)]
18        #[rename(name = "m_PartnerPid")]
19        pub m_partner_pid: ::unity::Il2CppString,
20    }
21}
22
23#[cfg(feature = "app-godreliances-types")]
24pub use __types::*;
25
26#[cfg(feature = "app-godreliances")]
27pub trait IGodRelianceSMethods: IGodRelianceS {
28    #[doc = "`Clear()` overload"]
29    fn clear(self) -> () {
30        unsafe {
31            let __receiver = <GodRelianceS as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
32            ::unity::il2cpp_call!((::unity::module_base()+0x2335ca0usize)as*mut u8,();
33(GodRelianceS)__receiver)
34        }
35    }
36    #[doc = "`Serialize(crate::app::stream_2::Stream_2)` overload"]
37    fn serialize(self, stream: impl ::core::convert::Into<crate::app::stream_2::Stream_2>) -> () {
38        unsafe {
39            let __receiver = <GodRelianceS as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
40            ::unity::il2cpp_call!((::unity::module_base()+0x2335cb0usize)as*mut u8,();
41(GodRelianceS)__receiver,(crate::app::stream_2::Stream_2)::core::convert::Into::into(stream))
42        }
43    }
44    #[doc = "`Deserialize(crate::app::stream_2::Stream_2)` overload"]
45    fn deserialize(self, stream: impl ::core::convert::Into<crate::app::stream_2::Stream_2>) -> () {
46        unsafe {
47            let __receiver = <GodRelianceS as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
48            ::unity::il2cpp_call!((::unity::module_base()+0x2335cf0usize)as*mut u8,();
49(GodRelianceS)__receiver,(crate::app::stream_2::Stream_2)::core::convert::Into::into(stream))
50        }
51    }
52    #[doc = "`get_PartnerPid()` overload"]
53    fn get_partner_pid(self) -> ::unity::Il2CppString {
54        unsafe {
55            let __receiver = <GodRelianceS as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
56            ::unity::il2cpp_call!((::unity::module_base()+0x2335fe0usize)as*mut u8, ::unity::Il2CppString;
57(GodRelianceS)__receiver)
58        }
59    }
60    #[doc = "`set_PartnerPid(::unity::Il2CppString)` overload"]
61    fn set_partner_pid(self, value: impl ::core::convert::Into<::unity::Il2CppString>) -> () {
62        unsafe {
63            let __receiver = <GodRelianceS as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
64            ::unity::il2cpp_call!((::unity::module_base()+0x2335ff0usize)as*mut u8,();
65(GodRelianceS)__receiver,(::unity::Il2CppString)::core::convert::Into::into(value))
66        }
67    }
68    #[doc = "`.ctor()` overload"]
69    fn ctor(self) -> () {
70        unsafe {
71            let __receiver = <GodRelianceS as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
72            ::unity::il2cpp_call!((::unity::module_base()+0x2336000usize)as*mut u8,();
73(GodRelianceS)__receiver)
74        }
75    }
76}
77
78#[cfg(feature = "app-godreliances")]
79impl<__T: IGodRelianceS> IGodRelianceSMethods for __T {}
80
81#[cfg(feature = "app-godreliances")]
82impl GodRelianceS {
83    pub fn clear_method_info() -> &'static ::unity::il2cpp::MethodInfo {
84        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
85    }
86
87    pub fn serialize_method_info() -> &'static ::unity::il2cpp::MethodInfo {
88        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
89    }
90
91    pub fn deserialize_method_info() -> &'static ::unity::il2cpp::MethodInfo {
92        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
93    }
94
95    pub fn get_partner_pid_method_info() -> &'static ::unity::il2cpp::MethodInfo {
96        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
97    }
98
99    pub fn set_partner_pid_method_info() -> &'static ::unity::il2cpp::MethodInfo {
100        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
101    }
102
103    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
104        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
105    }
106}
107
108#[cfg(feature = "app-godreliances")]
109impl GodRelianceS {
110    #[doc = "`.ctor()` — no args"]
111    pub fn new() -> Self {
112        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
113            panic!(
114                "{}
115::{}
116 failed to instantiate",
117                ::core::stringify!(GodRelianceS),
118                ::core::stringify!(new),
119            )
120        });
121        <Self as IGodRelianceSMethods>::ctor(this);
122        this
123    }
124}
125
126#[cfg(feature = "app-godreliances")]
127#[doc(hidden)]
128pub mod prelude {
129    pub use super::{GodRelianceS, IGodRelianceS, IGodRelianceSMethods};
130    pub use crate::system::object::IObject;
131    #[cfg(feature = "system-object")]
132    pub use crate::system::object::IObjectMethods;
133}