engage/generated/combat/
animasset.rs1#[cfg(feature = "combat-animasset-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/animasset/AnimAsset.md"))]
14 #[::unity::class(namespace = "Combat", name = "AnimAsset")]
15 #[parent(crate::combat::characterassett_1::CharacterAssetT_1<crate::unity_engine::animationclip::AnimationClip>)]
16 pub struct AnimAsset {}
17}
18
19#[cfg(feature = "combat-animasset-types")]
20pub use __types::*;
21
22#[cfg(feature = "combat-animasset")]
23pub trait IAnimAssetMethods: IAnimAsset {
24 #[doc = "`.ctor()` overload"]
25 fn ctor(self) -> () {
26 unsafe {
27 let __receiver = <AnimAsset as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
28 ::unity::il2cpp_call!((::unity::module_base()+0x1c8dfc0usize)as*mut u8,();
29(AnimAsset)__receiver)
30 }
31 }
32 #[doc = "`.ctor(::unity::Il2CppString)` overload"]
33 fn ctor_2(self, name: impl ::core::convert::Into<::unity::Il2CppString>) -> () {
34 unsafe {
35 let __receiver = <AnimAsset as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
36 ::unity::il2cpp_call!((::unity::module_base()+0x1c8e020usize)as*mut u8,();
37(AnimAsset)__receiver,(::unity::Il2CppString)::core::convert::Into::into(name))
38 }
39 }
40 #[doc = "`get_Hash()` overload"]
41 fn get_hash(self) -> i32 {
42 unsafe {
43 let __receiver = <AnimAsset as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
44 ::unity::il2cpp_call!((::unity::module_base()+0x1c8e0b0usize)as*mut u8,i32;
45(AnimAsset)__receiver)
46 }
47 }
48 #[doc = "`set_Hash(i32)` overload"]
49 fn set_hash(self, value: impl ::core::convert::Into<i32>) -> () {
50 unsafe {
51 let __receiver = <AnimAsset as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
52 ::unity::il2cpp_call!((::unity::module_base()+0x1c8e0c0usize)as*mut u8,();
53(AnimAsset)__receiver,(i32)::core::convert::Into::into(value))
54 }
55 }
56 #[doc = "`SetNameAndHash(::unity::Il2CppString, i32)` overload"]
57 fn set_name_and_hash(self, name: impl ::core::convert::Into<::unity::Il2CppString>, hash: impl ::core::convert::Into<i32>) -> () {
58 unsafe {
59 let __receiver = <AnimAsset as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
60 ::unity::il2cpp_call!((::unity::module_base()+0x1c8e0d0usize)as*mut u8,();
61(AnimAsset)__receiver,(::unity::Il2CppString)::core::convert::Into::into(name),(i32)::core::convert::Into::into(hash))
62 }
63 }
64}
65
66#[cfg(feature = "combat-animasset")]
67impl<__T: IAnimAsset> IAnimAssetMethods for __T {}
68
69#[cfg(feature = "combat-animasset")]
70impl AnimAsset {
71 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
72 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
73 }
74
75 pub fn ctor_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
76 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
77 }
78
79 pub fn get_hash_method_info() -> &'static ::unity::il2cpp::MethodInfo {
80 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
81 }
82
83 pub fn set_hash_method_info() -> &'static ::unity::il2cpp::MethodInfo {
84 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
85 }
86
87 pub fn set_name_and_hash_method_info() -> &'static ::unity::il2cpp::MethodInfo {
88 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
89 }
90}
91
92#[cfg(feature = "combat-animasset")]
93impl AnimAsset {
94 #[doc = "`.ctor()` — no args"]
95 pub fn new() -> Self {
96 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
97 panic!(
98 "{}
99::{}
100 failed to instantiate",
101 ::core::stringify!(AnimAsset),
102 ::core::stringify!(new),
103 )
104 });
105 <Self as IAnimAssetMethods>::ctor(this);
106 this
107 }
108
109 #[doc = "`.ctor(::unity::Il2CppString)` — overload selector"]
110 pub fn new_2(name: ::unity::Il2CppString) -> Self {
111 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
112 panic!(
113 "{}
114::{}
115 failed to instantiate",
116 ::core::stringify!(AnimAsset),
117 ::core::stringify!(new_2),
118 )
119 });
120 <Self as IAnimAssetMethods>::ctor_2(this, name);
121 this
122 }
123}
124
125#[cfg(feature = "combat-animasset")]
126#[doc(hidden)]
127pub mod prelude {
128 pub use super::{AnimAsset, IAnimAsset, IAnimAssetMethods};
129 #[cfg(feature = "combat-characterassett_1")]
130 pub use crate::combat::characterassett_1::ICharacterAssetT_1Methods;
131 #[cfg(feature = "system-object")]
132 pub use crate::system::object::IObjectMethods;
133 pub use crate::{combat::characterassett_1::ICharacterAssetT_1, system::object::IObject};
134}