Skip to main content

engage/generated/app/
gamesoundutil.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "app-gamesoundutil-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/gamesoundutil/GameSoundUtil.md"))]
11    #[::unity::class(namespace = "App", name = "GameSoundUtil")]
12    #[parent(crate::system::object::Object)]
13    pub struct GameSoundUtil {}
14}
15
16#[cfg(feature = "app-gamesoundutil-types")]
17pub use __types::*;
18
19#[cfg(feature = "app-gamesoundutil")]
20impl GameSoundUtil {
21    #[doc = "`GetGroundMaterialName(crate::unity_engine::vector3::Vector3)` overload"]
22    pub fn get_ground_material_name(pos: impl ::core::convert::Into<crate::unity_engine::vector3::Vector3>) -> ::unity::Il2CppString {
23        unsafe {
24            ::unity::il2cpp_call!((::unity::module_base()+0x250bde0usize)as*mut u8, ::unity::Il2CppString;
25(crate::unity_engine::vector3::Vector3)::core::convert::Into::into(pos))
26        }
27    }
28
29    #[doc = "`GetAttackTypeName(crate::app::attacktype::AttackType)` overload"]
30    pub fn get_attack_type_name(attack_type: impl ::core::convert::Into<crate::app::attacktype::AttackType>) -> ::unity::Il2CppString {
31        unsafe {
32            ::unity::il2cpp_call!((::unity::module_base()+0x250bea0usize)as*mut u8, ::unity::Il2CppString;
33(crate::app::attacktype::AttackType)::core::convert::Into::into(attack_type))
34        }
35    }
36
37    #[doc = "`GetDamageLevelName(crate::app::damagelevel::DamageLevel)` overload"]
38    pub fn get_damage_level_name(damage_level: impl ::core::convert::Into<crate::app::damagelevel::DamageLevel>) -> ::unity::Il2CppString {
39        unsafe {
40            ::unity::il2cpp_call!((::unity::module_base()+0x250bf30usize)as*mut u8, ::unity::Il2CppString;
41(crate::app::damagelevel::DamageLevel)::core::convert::Into::into(damage_level))
42        }
43    }
44
45    #[doc = "`GetWeaponName(::unity::Il2CppString, crate::app::itemdata::ItemData_Kinds)` overload"]
46    pub fn get_weapon_name(
47        asset_weapon_name: impl ::core::convert::Into<::unity::Il2CppString>,
48        item_kind: impl ::core::convert::Into<crate::app::itemdata::ItemData_Kinds>,
49    ) -> ::unity::Il2CppString {
50        unsafe {
51            ::unity::il2cpp_call!((::unity::module_base()+0x250bff0usize)as*mut u8, ::unity::Il2CppString;
52(::unity::Il2CppString)::core::convert::Into::into(asset_weapon_name),(crate::app::itemdata::ItemData_Kinds)::core::convert::Into::into(item_kind))
53        }
54    }
55
56    #[doc = "`GetDefaultWeaponNameByItemKind(crate::app::itemdata::ItemData_Kinds)` overload"]
57    pub fn get_default_weapon_name_by_item_kind(
58        item_kind: impl ::core::convert::Into<crate::app::itemdata::ItemData_Kinds>,
59    ) -> ::unity::Il2CppString {
60        unsafe {
61            ::unity::il2cpp_call!((::unity::module_base()+0x250c080usize)as*mut u8, ::unity::Il2CppString;
62(crate::app::itemdata::ItemData_Kinds)::core::convert::Into::into(item_kind))
63        }
64    }
65}
66
67#[cfg(feature = "app-gamesoundutil")]
68pub trait IGameSoundUtilMethods: IGameSoundUtil {
69    #[doc = "`.ctor()` overload"]
70    fn ctor(self) -> () {
71        unsafe {
72            let __receiver = <GameSoundUtil as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
73            ::unity::il2cpp_call!((::unity::module_base()+0x250c150usize)as*mut u8,();
74(GameSoundUtil)__receiver)
75        }
76    }
77}
78
79#[cfg(feature = "app-gamesoundutil")]
80impl<__T: IGameSoundUtil> IGameSoundUtilMethods for __T {}
81
82#[cfg(feature = "app-gamesoundutil")]
83impl GameSoundUtil {
84    pub fn get_ground_material_name_method_info() -> &'static ::unity::il2cpp::MethodInfo {
85        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
86    }
87
88    pub fn get_attack_type_name_method_info() -> &'static ::unity::il2cpp::MethodInfo {
89        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
90    }
91
92    pub fn get_damage_level_name_method_info() -> &'static ::unity::il2cpp::MethodInfo {
93        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
94    }
95
96    pub fn get_weapon_name_method_info() -> &'static ::unity::il2cpp::MethodInfo {
97        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
98    }
99
100    pub fn get_default_weapon_name_by_item_kind_method_info() -> &'static ::unity::il2cpp::MethodInfo {
101        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
102    }
103
104    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
105        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
106    }
107}
108
109#[cfg(feature = "app-gamesoundutil")]
110impl GameSoundUtil {
111    #[doc = "`.ctor()` — no args"]
112    pub fn new() -> Self {
113        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
114            panic!(
115                "{}
116::{}
117 failed to instantiate",
118                ::core::stringify!(GameSoundUtil),
119                ::core::stringify!(new),
120            )
121        });
122        <Self as IGameSoundUtilMethods>::ctor(this);
123        this
124    }
125}
126
127#[cfg(feature = "app-gamesoundutil")]
128#[doc(hidden)]
129pub mod prelude {
130    pub use super::{GameSoundUtil, IGameSoundUtil, IGameSoundUtilMethods};
131    pub use crate::system::object::IObject;
132    #[cfg(feature = "system-object")]
133    pub use crate::system::object::IObjectMethods;
134}