engage/generated/combat/
playerprefs_int.rs1#[cfg(feature = "combat-playerprefs_int-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/combat/playerprefs_int/PlayerPrefs_Int.md"))]
11 #[::unity::class(namespace = "Combat", name = "PlayerPrefs_Int")]
12 #[parent(crate::system::object::Object)]
13 pub struct PlayerPrefs_Int {
14 #[offset(16)]
15 #[rename(name = "key")]
16 pub key: ::unity::Il2CppString,
17 }
18}
19
20#[cfg(feature = "combat-playerprefs_int-types")]
21pub use __types::*;
22
23#[cfg(feature = "combat-playerprefs_int")]
24pub trait IPlayerPrefs_IntMethods: IPlayerPrefs_Int {
25 #[doc = "`.ctor(::unity::Il2CppString)` overload"]
26 fn ctor(self, name: impl ::core::convert::Into<::unity::Il2CppString>) -> () {
27 unsafe {
28 let __receiver = <PlayerPrefs_Int as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
29 ::unity::il2cpp_call!((::unity::module_base()+0x28144d0usize)as*mut u8,();
30(PlayerPrefs_Int)__receiver,(::unity::Il2CppString)::core::convert::Into::into(name))
31 }
32 }
33 #[doc = "`get_Value()` overload"]
34 fn get_value(self) -> i32 {
35 unsafe {
36 let __receiver = <PlayerPrefs_Int as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
37 ::unity::il2cpp_call!((::unity::module_base()+0x2814510usize)as*mut u8,i32;
38(PlayerPrefs_Int)__receiver)
39 }
40 }
41 #[doc = "`set_Value(i32)` overload"]
42 fn set_value(self, value: impl ::core::convert::Into<i32>) -> () {
43 unsafe {
44 let __receiver = <PlayerPrefs_Int as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
45 ::unity::il2cpp_call!((::unity::module_base()+0x2814520usize)as*mut u8,();
46(PlayerPrefs_Int)__receiver,(i32)::core::convert::Into::into(value))
47 }
48 }
49}
50
51#[cfg(feature = "combat-playerprefs_int")]
52impl<__T: IPlayerPrefs_Int> IPlayerPrefs_IntMethods for __T {}
53
54#[cfg(feature = "combat-playerprefs_int")]
55impl PlayerPrefs_Int {
56 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
57 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
58 }
59
60 pub fn get_value_method_info() -> &'static ::unity::il2cpp::MethodInfo {
61 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
62 }
63
64 pub fn set_value_method_info() -> &'static ::unity::il2cpp::MethodInfo {
65 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
66 }
67}
68
69#[cfg(feature = "combat-playerprefs_int")]
70impl PlayerPrefs_Int {
71 #[doc = "`.ctor(::unity::Il2CppString)` — overload selector"]
72 pub fn new(name: ::unity::Il2CppString) -> Self {
73 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
74 panic!(
75 "{}
76::{}
77 failed to instantiate",
78 ::core::stringify!(PlayerPrefs_Int),
79 ::core::stringify!(new),
80 )
81 });
82 <Self as IPlayerPrefs_IntMethods>::ctor(this, name);
83 this
84 }
85}
86
87#[cfg(feature = "combat-playerprefs_int")]
88#[doc(hidden)]
89pub mod prelude {
90 pub use super::{IPlayerPrefs_Int, IPlayerPrefs_IntMethods, PlayerPrefs_Int};
91 pub use crate::system::object::IObject;
92 #[cfg(feature = "system-object")]
93 pub use crate::system::object::IObjectMethods;
94}