Skip to main content

engage/generated/combat/
assetname.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "combat-assetname-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/combat/assetname/AssetName_SplitMode.md"))]
15    #[repr(C)]
16    #[derive(::core::clone::Clone, ::core::marker::Copy, ::core::fmt::Debug, ::core::cmp::PartialEq, ::core::cmp::Eq)]
17    pub struct AssetName_SplitMode {
18        pub value: i32,
19    }
20    impl ::unity::ClassIdentity for AssetName_SplitMode {
21        const NAME: &'static str = "AssetName.SplitMode";
22        const NAMESPACE: &'static str = "Combat";
23
24        fn class() -> ::unity::Class {
25            static CACHE: ::std::sync::OnceLock<::unity::Class> = ::std::sync::OnceLock::new();
26            *CACHE.get_or_init(|| ::unity::Class::lookup(Self::NAMESPACE, Self::NAME))
27        }
28    }
29    impl ::unity::IlType for AssetName_SplitMode {
30        fn il_type() -> &'static ::unity::il2cpp::Il2CppType {
31            &<Self as ::unity::ClassIdentity>::class().raw()._1.byval_arg
32        }
33    }
34    impl AssetName_SplitMode {
35        pub fn underscore() -> Self {
36            Self { value: 0 }
37        }
38
39        pub fn underscore_and_hyphen() -> Self {
40            Self { value: 1 }
41        }
42
43        pub fn discard_hyphen() -> Self {
44            Self { value: 2 }
45        }
46    }
47
48    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/combat/assetname/AssetName.md"))]
49    #[::unity::class(namespace = "Combat", name = "AssetName")]
50    #[parent(crate::system::object::Object)]
51    pub struct AssetName {}
52}
53
54#[cfg(feature = "combat-assetname-types")]
55pub use __types::*;
56
57#[cfg(feature = "combat-assetname")]
58impl AssetName {
59    #[doc = "`MakeAddressablesPath(::unity::Il2CppString)` overload"]
60    pub fn make_addressables_path(name: impl ::core::convert::Into<::unity::Il2CppString>) -> ::unity::Il2CppString {
61        unsafe {
62            ::unity::il2cpp_call!((::unity::module_base()+0x211a650usize)as*mut u8, ::unity::Il2CppString;
63(::unity::Il2CppString)::core::convert::Into::into(name))
64        }
65    }
66
67    #[doc = "`Tokenize(::unity::Il2CppString, crate::combat::assetname::AssetName_SplitMode, i32, i32)` overload"]
68    pub fn tokenize(
69        name: impl ::core::convert::Into<::unity::Il2CppString>,
70        split_mode: impl ::core::convert::Into<crate::combat::assetname::AssetName_SplitMode>,
71        start_index: impl ::core::convert::Into<i32>,
72        end_index: impl ::core::convert::Into<i32>,
73    ) -> ::unity::Il2CppString {
74        unsafe {
75            ::unity::il2cpp_call!((::unity::module_base()+0x211b060usize)as*mut u8, ::unity::Il2CppString;
76(::unity::Il2CppString)::core::convert::Into::into(name),(crate::combat::assetname::AssetName_SplitMode)::core::convert::Into::into(split_mode),(i32)::core::convert::Into::into(start_index),(i32)::core::convert::Into::into(end_index))
77        }
78    }
79
80    #[doc = "`IsHighClass(::unity::Il2CppString)` overload"]
81    pub fn is_high_class(dress_name: impl ::core::convert::Into<::unity::Il2CppString>) -> bool {
82        unsafe {
83            ::unity::il2cpp_call!((::unity::module_base()+0x211b290usize)as*mut u8,bool;
84(::unity::Il2CppString)::core::convert::Into::into(dress_name))
85        }
86    }
87
88    #[doc = "`Is異形(::unity::Il2CppString)` overload"]
89    pub fn is異形(name: impl ::core::convert::Into<::unity::Il2CppString>) -> bool {
90        unsafe {
91            ::unity::il2cpp_call!((::unity::module_base()+0x211b390usize)as*mut u8,bool;
92(::unity::Il2CppString)::core::convert::Into::into(name))
93        }
94    }
95}
96
97#[cfg(feature = "combat-assetname")]
98impl AssetName {
99    pub fn make_addressables_path_method_info() -> &'static ::unity::il2cpp::MethodInfo {
100        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
101    }
102
103    pub fn tokenize_method_info() -> &'static ::unity::il2cpp::MethodInfo {
104        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
105    }
106
107    pub fn is_high_class_method_info() -> &'static ::unity::il2cpp::MethodInfo {
108        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
109    }
110
111    pub fn is異形_method_info() -> &'static ::unity::il2cpp::MethodInfo {
112        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
113    }
114}
115
116#[cfg(feature = "combat-assetname")]
117#[doc(hidden)]
118pub mod prelude {
119    pub use super::{AssetName, AssetName_SplitMode, IAssetName};
120    #[cfg(feature = "system-object")]
121    pub use crate::system::object::IObjectMethods;
122    #[cfg(feature = "system-enum")]
123    pub use crate::system::r#enum::IEnumMethods;
124    #[cfg(feature = "system-valuetype")]
125    pub use crate::system::valuetype::IValueTypeMethods;
126    pub use crate::system::{object::IObject, r#enum::IEnum, valuetype::IValueType};
127}