engage/generated/combat/
characterassett_1.rs1#[cfg(feature = "combat-characterassett_1-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/combat/characterassett_1/CharacterAssetT_1.md"))]
11 #[::unity::class(namespace = "Combat", name = "CharacterAssetT`1")]
12 #[parent(crate::system::object::Object)]
13 pub struct CharacterAssetT_1<T0: ::unity::ClassIdentity> {
14 #[static_field]
15 #[rename(name = "TotalAllocCount")]
16 pub total_alloc_count: i32,
17 #[rename(name = "name")]
18 pub name_field: ::unity::Il2CppString,
19 #[rename(name = "m_FileHandle")]
20 pub m_file_handle: crate::app::tresourcehandle_1::TResourceHandle_1<T0>,
21 #[rename(name = "m_Object")]
22 pub m_object: T0,
23 #[rename(name = "m_InstancedObject")]
24 pub m_instanced_object: T0,
25 }
26}
27
28#[cfg(feature = "combat-characterassett_1-types")]
29pub use __types::*;
30
31#[cfg(feature = "combat-characterassett_1")]
32#[::unity::methods]
33impl<T0: ::unity::ClassIdentity> CharacterAssetT_1<T0> {
34 #[doc = "`get_DebuggerDisplay()` overload"]
35 #[method(name = "get_DebuggerDisplay", args = 0)]
36 pub fn get_debugger_display(self) -> ::unity::Il2CppString;
37
38 #[doc = "`op_Implicit(crate::combat::characterassett_1::CharacterAssetT_1<T0>)` overload"]
39 #[method(name = "op_Implicit", args = 1)]
40 pub fn op_implicit(a: crate::combat::characterassett_1::CharacterAssetT_1<T0>) -> bool;
41
42 #[doc = "`get_AssetType()` overload"]
43 #[method(name = "get_AssetType", args = 0)]
44 pub fn get_asset_type(self) -> crate::combat::assettype::AssetType;
45
46 #[doc = "`set_AssetType(crate::combat::assettype::AssetType)` overload"]
47 #[method(name = "set_AssetType", args = 1)]
48 pub fn set_asset_type(self, value: crate::combat::assettype::AssetType) -> ();
49
50 #[doc = "`get_Name()` overload"]
51 #[method(name = "get_Name", args = 0)]
52 pub fn get_name(self) -> ::unity::Il2CppString;
53
54 #[doc = "`set_Name(::unity::Il2CppString)` overload"]
55 #[method(name = "set_Name", args = 1)]
56 pub fn set_name(self, value: ::unity::Il2CppString) -> ();
57
58 #[doc = "`get_m_AddrPath()` overload"]
59 #[method(name = "get_m_AddrPath", args = 0)]
60 pub fn get_m_addr_path(self) -> ::unity::Il2CppString;
61
62 #[doc = "`set_m_AddrPath(::unity::Il2CppString)` overload"]
63 #[method(name = "set_m_AddrPath", args = 1)]
64 pub fn set_m_addr_path(self, value: ::unity::Il2CppString) -> ();
65
66 #[doc = "`get_AddressablesPath()` overload"]
67 #[method(name = "get_AddressablesPath", args = 0)]
68 pub fn get_addressables_path(self) -> ::unity::Il2CppString;
69
70 #[doc = "`get_Asset()` overload"]
71 #[method(name = "get_Asset", args = 0)]
72 pub fn get_asset(self) -> T0;
73
74 #[doc = "`get_Instanced()` overload"]
75 #[method(name = "get_Instanced", args = 0)]
76 pub fn get_instanced(self) -> T0;
77
78 #[doc = "`Instantiate(crate::unity_engine::transform::Transform)` overload"]
79 #[method(name = "Instantiate", args = 1)]
80 pub fn instantiate(self, parent: crate::unity_engine::transform::Transform) -> T0;
81
82 #[doc = "`IsReady()` overload"]
83 #[method(name = "IsReady", args = 0)]
84 pub fn is_ready(self) -> bool;
85
86 #[doc = "`IsLoading()` overload"]
87 #[method(name = "IsLoading", args = 0)]
88 pub fn is_loading(self) -> bool;
89
90 #[doc = "`get_InstanceAsGo()` overload"]
91 #[method(name = "get_InstanceAsGo", args = 0)]
92 pub fn get_instance_as_go(self) -> crate::unity_engine::gameobject::GameObject;
93
94 #[doc = "`.ctor()` overload"]
95 #[method(name = ".ctor", args = 0)]
96 pub fn ctor(self) -> ();
97
98 #[doc = "`.ctor(crate::combat::assettype::AssetType)` overload"]
99 #[method(name = ".ctor", args = 1)]
100 pub fn ctor_2(self, asset_type: crate::combat::assettype::AssetType) -> ();
101
102 #[doc = "`.ctor(crate::combat::characterassett_1::CharacterAssetT_1<T0>)` overload"]
103 #[method(name = ".ctor", args = 1)]
104 pub fn ctor_3(self, rhs: crate::combat::characterassett_1::CharacterAssetT_1<T0>) -> ();
105
106 #[doc = "`Finalize()` overload"]
107 #[method(name = "Finalize", args = 0)]
108 pub fn finalize(self) -> ();
109
110 #[doc = "`Dispose()` overload"]
111 #[method(name = "Dispose", args = 0)]
112 pub fn dispose(self) -> ();
113
114 #[doc = "`get_IsLoadable()` overload"]
115 #[method(name = "get_IsLoadable", args = 0)]
116 pub fn get_is_loadable(self) -> bool;
117
118 #[doc = "`LoadAsync(crate::system::action::Action)` overload"]
119 #[method(name = "LoadAsync", args = 1)]
120 pub fn load_async(self, callback: crate::system::action::Action) -> ();
121
122 #[doc = "`FileExists()` overload"]
123 #[method(name = "FileExists", args = 0)]
124 pub fn file_exists(self) -> bool;
125
126 #[doc = "`LoadForEditor()` overload"]
127 #[method(name = "LoadForEditor", args = 0)]
128 pub fn load_for_editor(self) -> ();
129
130 #[doc = "`Replace(::unity::Il2CppString, T0)` overload"]
131 #[method(name = "Replace", args = 2)]
132 pub fn replace(self, name: ::unity::Il2CppString, asset: T0) -> ();
133}
134
135#[cfg(feature = "combat-characterassett_1")]
136impl<T0: ::unity::ClassIdentity> CharacterAssetT_1<T0> {
137 #[doc = "`.ctor()` — no args"]
138 pub fn new() -> Self {
139 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
140 panic!(
141 "{}
142::{}
143 failed to instantiate",
144 ::core::stringify!(CharacterAssetT_1),
145 ::core::stringify!(new),
146 )
147 });
148 <Self as ICharacterAssetT_1Methods<T0>>::ctor(this);
149 this
150 }
151
152 #[doc = "`.ctor(crate::combat::assettype::AssetType)` — overload selector"]
153 pub fn new_2(asset_type: crate::combat::assettype::AssetType) -> Self {
154 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
155 panic!(
156 "{}
157::{}
158 failed to instantiate",
159 ::core::stringify!(CharacterAssetT_1),
160 ::core::stringify!(new_2),
161 )
162 });
163 <Self as ICharacterAssetT_1Methods<T0>>::ctor_2(this, asset_type);
164 this
165 }
166
167 #[doc = "`.ctor(crate::combat::characterassett_1::CharacterAssetT_1<T0>)` — overload selector"]
168 pub fn new_3(rhs: crate::combat::characterassett_1::CharacterAssetT_1<T0>) -> Self {
169 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
170 panic!(
171 "{}
172::{}
173 failed to instantiate",
174 ::core::stringify!(CharacterAssetT_1),
175 ::core::stringify!(new_3),
176 )
177 });
178 <Self as ICharacterAssetT_1Methods<T0>>::ctor_3(this, rhs);
179 this
180 }
181}
182
183#[cfg(feature = "combat-characterassett_1")]
184#[doc(hidden)]
185pub mod prelude {
186 pub use super::{CharacterAssetT_1, ICharacterAssetT_1, ICharacterAssetT_1Methods};
187 pub use crate::system::object::IObject;
188 #[cfg(feature = "system-object")]
189 pub use crate::system::object::IObjectMethods;
190}