Skip to main content

engage/generated/combat/
weaponstyleex.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "combat-weaponstyleex-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/weaponstyleex/WeaponStyleEx.md"))]
11    #[::unity::class(namespace = "Combat", name = "WeaponStyleEx")]
12    #[parent(crate::system::object::Object)]
13    pub struct WeaponStyleEx {}
14}
15
16#[cfg(feature = "combat-weaponstyleex-types")]
17pub use __types::*;
18
19#[cfg(feature = "combat-weaponstyleex")]
20impl WeaponStyleEx {
21    #[doc = "`IsShootOrMagic(crate::combat::weaponstyle::WeaponStyle)` overload"]
22    pub fn is_shoot_or_magic(s: impl ::core::convert::Into<crate::combat::weaponstyle::WeaponStyle>) -> bool {
23        unsafe {
24            ::unity::il2cpp_call!((::unity::module_base()+0x21d3490usize)as*mut u8,bool;
25(crate::combat::weaponstyle::WeaponStyle)::core::convert::Into::into(s))
26        }
27    }
28
29    #[doc = "`IsHit(crate::combat::weaponstyle::WeaponStyle)` overload"]
30    pub fn is_hit(s: impl ::core::convert::Into<crate::combat::weaponstyle::WeaponStyle>) -> bool {
31        unsafe {
32            ::unity::il2cpp_call!((::unity::module_base()+0x21d34a0usize)as*mut u8,bool;
33(crate::combat::weaponstyle::WeaponStyle)::core::convert::Into::into(s))
34        }
35    }
36
37    #[doc = "`ToNML(crate::combat::weaponstyle::WeaponStyle)` overload"]
38    pub fn to_nml(s: impl ::core::convert::Into<crate::combat::weaponstyle::WeaponStyle>) -> u16 {
39        unsafe {
40            ::unity::il2cpp_call!((::unity::module_base()+0x21d34b0usize)as*mut u8,u16;
41(crate::combat::weaponstyle::WeaponStyle)::core::convert::Into::into(s))
42        }
43    }
44}
45
46#[cfg(feature = "combat-weaponstyleex")]
47impl WeaponStyleEx {
48    pub fn is_shoot_or_magic_method_info() -> &'static ::unity::il2cpp::MethodInfo {
49        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
50    }
51
52    pub fn is_hit_method_info() -> &'static ::unity::il2cpp::MethodInfo {
53        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
54    }
55
56    pub fn to_nml_method_info() -> &'static ::unity::il2cpp::MethodInfo {
57        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
58    }
59}
60
61#[cfg(feature = "combat-weaponstyleex")]
62#[doc(hidden)]
63pub mod prelude {
64    pub use super::{IWeaponStyleEx, WeaponStyleEx};
65    pub use crate::system::object::IObject;
66    #[cfg(feature = "system-object")]
67    pub use crate::system::object::IObjectMethods;
68}