Skip to main content

engage/generated/combat/
characterasset.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "combat-characterasset-types")]
4mod __types {
5    #[allow(unused_imports)] use ::unity::prelude::*;
6
7    use super::*;
8    use crate::{
9        combat::characterassett_1::{CharacterAssetT_1, ICharacterAssetT_1},
10        system::object::{IObject, Object},
11    };
12
13    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/combat/characterasset/CharacterAsset.md"))]
14    #[::unity::class(namespace = "Combat", name = "CharacterAsset")]
15    #[parent(crate::combat::characterassett_1::CharacterAssetT_1<crate::unity_engine::object_2::Object_2>)]
16    pub struct CharacterAsset {}
17}
18
19#[cfg(feature = "combat-characterasset-types")]
20pub use __types::*;
21
22#[cfg(feature = "combat-characterasset")]
23pub trait ICharacterAssetMethods: ICharacterAsset {
24    #[doc = "`.ctor(crate::combat::assettype::AssetType)` overload"]
25    fn ctor(self, asset_type: impl ::core::convert::Into<crate::combat::assettype::AssetType>) -> () {
26        unsafe {
27            let __receiver = <CharacterAsset as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
28            ::unity::il2cpp_call!((::unity::module_base()+0x27d37d0usize)as*mut u8,();
29(CharacterAsset)__receiver,(crate::combat::assettype::AssetType)::core::convert::Into::into(asset_type))
30        }
31    }
32    #[doc = "`.ctor(crate::combat::characterasset::CharacterAsset)` overload"]
33    fn ctor_2(self, rhs: impl ::core::convert::Into<crate::combat::characterasset::CharacterAsset>) -> () {
34        unsafe {
35            let __receiver = <CharacterAsset as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
36            ::unity::il2cpp_call!((::unity::module_base()+0x27d3830usize)as*mut u8,();
37(CharacterAsset)__receiver,(crate::combat::characterasset::CharacterAsset)::core::convert::Into::into(rhs))
38        }
39    }
40    #[doc = "`ChangeNML(u16)` overload"]
41    fn change_nml(self, mode: impl ::core::convert::Into<u16>) -> () {
42        unsafe {
43            let __receiver = <CharacterAsset as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
44            ::unity::il2cpp_call!((::unity::module_base()+0x27d3890usize)as*mut u8,();
45(CharacterAsset)__receiver,(u16)::core::convert::Into::into(mode))
46        }
47    }
48}
49
50#[cfg(feature = "combat-characterasset")]
51impl<__T: ICharacterAsset> ICharacterAssetMethods for __T {}
52
53#[cfg(feature = "combat-characterasset")]
54impl CharacterAsset {
55    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
56        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
57    }
58
59    pub fn ctor_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
60        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
61    }
62
63    pub fn change_nml_method_info() -> &'static ::unity::il2cpp::MethodInfo {
64        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
65    }
66}
67
68#[cfg(feature = "combat-characterasset")]
69impl CharacterAsset {
70    #[doc = "`.ctor(crate::combat::assettype::AssetType)` — overload selector"]
71    pub fn new(asset_type: crate::combat::assettype::AssetType) -> Self {
72        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
73            panic!(
74                "{}
75::{}
76 failed to instantiate",
77                ::core::stringify!(CharacterAsset),
78                ::core::stringify!(new),
79            )
80        });
81        <Self as ICharacterAssetMethods>::ctor(this, asset_type);
82        this
83    }
84
85    #[doc = "`.ctor(crate::combat::characterasset::CharacterAsset)` — overload selector"]
86    pub fn new_2(rhs: crate::combat::characterasset::CharacterAsset) -> Self {
87        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
88            panic!(
89                "{}
90::{}
91 failed to instantiate",
92                ::core::stringify!(CharacterAsset),
93                ::core::stringify!(new_2),
94            )
95        });
96        <Self as ICharacterAssetMethods>::ctor_2(this, rhs);
97        this
98    }
99}
100
101#[cfg(feature = "combat-characterasset")]
102#[doc(hidden)]
103pub mod prelude {
104    pub use super::{CharacterAsset, ICharacterAsset, ICharacterAssetMethods};
105    #[cfg(feature = "combat-characterassett_1")]
106    pub use crate::combat::characterassett_1::ICharacterAssetT_1Methods;
107    #[cfg(feature = "system-object")]
108    pub use crate::system::object::IObjectMethods;
109    pub use crate::{combat::characterassett_1::ICharacterAssetT_1, system::object::IObject};
110}