Skip to main content

engage/generated/root/
mapsoundlabel.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "root-mapsoundlabel-types")]
4mod __types {
5    #[allow(unused_imports)] use ::unity::prelude::*;
6
7    use super::*;
8    use crate::{
9        system::object::{IObject, Object},
10        unity_engine::{
11            object_2::{IObject_2, Object_2},
12            scriptableobject::{IScriptableObject, ScriptableObject},
13        },
14    };
15
16    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/root/mapsoundlabel/MapSoundLabel.md"))]
17    #[::unity::class(namespace = "", name = "MapSoundLabel")]
18    #[parent(crate::unity_engine::scriptableobject::ScriptableObject)]
19    pub struct MapSoundLabel {
20        #[offset(24)]
21        #[rename(name = "起動音")]
22        pub 起動音: ::unity::Il2CppString,
23        #[offset(32)]
24        #[rename(name = "停止音")]
25        pub 停止音: ::unity::Il2CppString,
26        #[offset(40)]
27        #[rename(name = "破壊音")]
28        pub 破壊音: ::unity::Il2CppString,
29    }
30}
31
32#[cfg(feature = "root-mapsoundlabel-types")]
33pub use __types::*;
34
35#[cfg(feature = "root-mapsoundlabel")]
36pub trait IMapSoundLabelMethods: IMapSoundLabel {
37    #[doc = "`.ctor()` overload"]
38    fn ctor(self) -> () {
39        unsafe {
40            let __receiver = <MapSoundLabel as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
41            ::unity::il2cpp_call!((::unity::module_base()+0x1f515f0usize)as*mut u8,();
42(MapSoundLabel)__receiver)
43        }
44    }
45}
46
47#[cfg(feature = "root-mapsoundlabel")]
48impl<__T: IMapSoundLabel> IMapSoundLabelMethods for __T {}
49
50#[cfg(feature = "root-mapsoundlabel")]
51impl MapSoundLabel {
52    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
53        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
54    }
55}
56
57#[cfg(feature = "root-mapsoundlabel")]
58impl MapSoundLabel {
59    #[doc = "`.ctor()` — no args"]
60    pub fn new() -> Self {
61        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
62            panic!(
63                "{}
64::{}
65 failed to instantiate",
66                ::core::stringify!(MapSoundLabel),
67                ::core::stringify!(new),
68            )
69        });
70        <Self as IMapSoundLabelMethods>::ctor(this);
71        this
72    }
73}
74
75#[cfg(feature = "root-mapsoundlabel")]
76#[doc(hidden)]
77pub mod prelude {
78    pub use super::{IMapSoundLabel, IMapSoundLabelMethods, MapSoundLabel};
79    #[cfg(feature = "system-object")]
80    pub use crate::system::object::IObjectMethods;
81    #[cfg(feature = "unity_engine-object_2")]
82    pub use crate::unity_engine::object_2::IObject_2Methods;
83    #[cfg(feature = "unity_engine-scriptableobject")]
84    pub use crate::unity_engine::scriptableobject::IScriptableObjectMethods;
85    pub use crate::{
86        system::object::IObject,
87        unity_engine::{object_2::IObject_2, scriptableobject::IScriptableObject},
88    };
89}