engage/generated/combat/
runtimeeditorprefs.rs1#[cfg(feature = "combat-runtimeeditorprefs-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/runtimeeditorprefs/RuntimeEditorPrefs.md"))]
11 #[::unity::class(namespace = "Combat", name = "RuntimeEditorPrefs")]
12 #[parent(crate::system::object::Object)]
13 pub struct RuntimeEditorPrefs {}
14}
15
16#[cfg(feature = "combat-runtimeeditorprefs-types")]
17pub use __types::*;
18
19#[cfg(feature = "combat-runtimeeditorprefs")]
20impl RuntimeEditorPrefs {
21 #[doc = "`GetFloat(::unity::Il2CppString, f32, i32)` overload"]
22 pub fn get_float(
23 key: impl ::core::convert::Into<::unity::Il2CppString>,
24 default_value: impl ::core::convert::Into<f32>,
25 suffix: impl ::core::convert::Into<i32>,
26 ) -> f32 {
27 unsafe {
28 ::unity::il2cpp_call!((::unity::module_base()+0x1ec3c60usize)as*mut u8,f32;
29(::unity::Il2CppString)::core::convert::Into::into(key),(f32)::core::convert::Into::into(default_value),(i32)::core::convert::Into::into(suffix))
30 }
31 }
32
33 #[doc = "`SetFloat(::unity::Il2CppString, f32, i32)` overload"]
34 pub fn set_float(
35 key: impl ::core::convert::Into<::unity::Il2CppString>,
36 value: impl ::core::convert::Into<f32>,
37 suffix: impl ::core::convert::Into<i32>,
38 ) -> () {
39 unsafe {
40 ::unity::il2cpp_call!((::unity::module_base()+0x1ec3c70usize)as*mut u8,();
41(::unity::Il2CppString)::core::convert::Into::into(key),(f32)::core::convert::Into::into(value),(i32)::core::convert::Into::into(suffix))
42 }
43 }
44}
45
46#[cfg(feature = "combat-runtimeeditorprefs")]
47impl RuntimeEditorPrefs {
48 pub fn get_float_method_info() -> &'static ::unity::il2cpp::MethodInfo {
49 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
50 }
51
52 pub fn set_float_method_info() -> &'static ::unity::il2cpp::MethodInfo {
53 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
54 }
55}
56
57#[cfg(feature = "combat-runtimeeditorprefs")]
58#[doc(hidden)]
59pub mod prelude {
60 pub use super::{IRuntimeEditorPrefs, RuntimeEditorPrefs};
61 pub use crate::system::object::IObject;
62 #[cfg(feature = "system-object")]
63 pub use crate::system::object::IObjectMethods;
64}