Skip to main content

engage/generated/app/
weaponlevel.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "app-weaponlevel-types")]
4mod __types {
5    #[allow(unused_imports)] use ::unity::prelude::*;
6
7    use super::*;
8    use crate::system::{
9        object::{IObject, Object},
10        r#enum::{Enum, IEnum},
11        valuetype::{IValueType, ValueType},
12    };
13
14    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/weaponlevel/WeaponLevel.md"))]
15    #[::unity::class(namespace = "App", name = "WeaponLevel")]
16    #[parent(crate::system::object::Object)]
17    pub struct WeaponLevel {}
18
19    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/weaponlevel/WeaponLevel_Kind.md"))]
20    #[repr(C)]
21    #[derive(::core::clone::Clone, ::core::marker::Copy, ::core::fmt::Debug, ::core::cmp::PartialEq, ::core::cmp::Eq)]
22    pub struct WeaponLevel_Kind {
23        pub value: i32,
24    }
25    impl ::unity::ClassIdentity for WeaponLevel_Kind {
26        const NAME: &'static str = "WeaponLevel.Kind";
27        const NAMESPACE: &'static str = "App";
28
29        fn class() -> ::unity::Class {
30            static CACHE: ::std::sync::OnceLock<::unity::Class> = ::std::sync::OnceLock::new();
31            *CACHE.get_or_init(|| ::unity::Class::lookup(Self::NAMESPACE, Self::NAME))
32        }
33    }
34    impl ::unity::IlType for WeaponLevel_Kind {
35        fn il_type() -> &'static ::unity::il2cpp::Il2CppType {
36            &<Self as ::unity::ClassIdentity>::class().raw()._1.byval_arg
37        }
38    }
39    impl WeaponLevel_Kind {
40        pub fn none() -> Self {
41            Self { value: 0 }
42        }
43
44        pub fn d() -> Self {
45            Self { value: 1 }
46        }
47
48        pub fn c() -> Self {
49            Self { value: 2 }
50        }
51
52        pub fn b() -> Self {
53            Self { value: 3 }
54        }
55
56        pub fn a() -> Self {
57            Self { value: 4 }
58        }
59
60        pub fn s() -> Self {
61            Self { value: 5 }
62        }
63    }
64}
65
66#[cfg(feature = "app-weaponlevel-types")]
67pub use __types::*;
68
69#[cfg(feature = "app-weaponlevel")]
70impl WeaponLevel {
71    #[doc = "`GetKind(::unity::Il2CppString)` overload"]
72    pub fn get_kind(level: impl ::core::convert::Into<::unity::Il2CppString>) -> crate::app::weaponlevel::WeaponLevel_Kind {
73        unsafe {
74            ::unity::il2cpp_call!((::unity::module_base()+0x21c93f0usize)as*mut u8,crate::app::weaponlevel::WeaponLevel_Kind;
75(::unity::Il2CppString)::core::convert::Into::into(level))
76        }
77    }
78}
79
80#[cfg(feature = "app-weaponlevel")]
81pub trait IWeaponLevelMethods: IWeaponLevel {
82    #[doc = "`.ctor()` overload"]
83    fn ctor(self) -> () {
84        unsafe {
85            let __receiver = <WeaponLevel as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
86            ::unity::il2cpp_call!((::unity::module_base()+0x21c9570usize)as*mut u8,();
87(WeaponLevel)__receiver)
88        }
89    }
90}
91
92#[cfg(feature = "app-weaponlevel")]
93impl<__T: IWeaponLevel> IWeaponLevelMethods for __T {}
94
95#[cfg(feature = "app-weaponlevel")]
96impl WeaponLevel {
97    pub fn get_kind_method_info() -> &'static ::unity::il2cpp::MethodInfo {
98        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
99    }
100
101    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
102        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
103    }
104}
105
106#[cfg(feature = "app-weaponlevel")]
107impl WeaponLevel {
108    #[doc = "`.ctor()` — no args"]
109    pub fn new() -> Self {
110        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
111            panic!(
112                "{}
113::{}
114 failed to instantiate",
115                ::core::stringify!(WeaponLevel),
116                ::core::stringify!(new),
117            )
118        });
119        <Self as IWeaponLevelMethods>::ctor(this);
120        this
121    }
122}
123
124#[cfg(feature = "app-weaponlevel")]
125#[doc(hidden)]
126pub mod prelude {
127    pub use super::{IWeaponLevel, IWeaponLevelMethods, WeaponLevel, WeaponLevel_Kind};
128    #[cfg(feature = "system-object")]
129    pub use crate::system::object::IObjectMethods;
130    #[cfg(feature = "system-enum")]
131    pub use crate::system::r#enum::IEnumMethods;
132    #[cfg(feature = "system-valuetype")]
133    pub use crate::system::valuetype::IValueTypeMethods;
134    pub use crate::system::{object::IObject, r#enum::IEnum, valuetype::IValueType};
135}