Skip to main content

engage/generated/app/
game.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "app-game-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/game/Game.md"))]
11    #[::unity::class(namespace = "App", name = "Game")]
12    #[parent(crate::system::object::Object)]
13    pub struct Game {
14        #[static_field]
15        #[rename(name = "Version")]
16        pub version: i32,
17    }
18}
19
20#[cfg(feature = "app-game-types")]
21pub use __types::*;
22
23#[cfg(feature = "app-game")]
24impl Game {
25    #[doc = "`GetPatchName()` overload"]
26    pub fn get_patch_name() -> ::unity::Il2CppString {
27        unsafe {
28            ::unity::il2cpp_call!((::unity::module_base()+0x22783d0usize)as*mut u8, ::unity::Il2CppString;
29            )
30        }
31    }
32}
33
34#[cfg(feature = "app-game")]
35impl Game {
36    pub fn get_patch_name_method_info() -> &'static ::unity::il2cpp::MethodInfo {
37        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
38    }
39}
40
41#[cfg(feature = "app-game")]
42#[doc(hidden)]
43pub mod prelude {
44    pub use super::{Game, IGame};
45    pub use crate::system::object::IObject;
46    #[cfg(feature = "system-object")]
47    pub use crate::system::object::IObjectMethods;
48}