engage/generated/tm_pro/
tmp_asset.rs1#[cfg(feature = "tm_pro-tmp_asset-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/tm_pro/tmp_asset/TMP_Asset.md"))]
17 #[::unity::class(namespace = "TMPro", name = "TMP_Asset")]
18 #[parent(crate::unity_engine::scriptableobject::ScriptableObject)]
19 pub struct TMP_Asset {
20 #[offset(24)]
21 #[rename(name = "m_InstanceID")]
22 pub m_instance_id: i32,
23 #[offset(28)]
24 #[rename(name = "hashCode")]
25 pub hash_code: i32,
26 #[offset(32)]
27 #[rename(name = "material")]
28 pub material: crate::unity_engine::material::Material,
29 #[offset(40)]
30 #[rename(name = "materialHashCode")]
31 pub material_hash_code: i32,
32 }
33}
34
35#[cfg(feature = "tm_pro-tmp_asset-types")]
36pub use __types::*;
37
38#[cfg(feature = "tm_pro-tmp_asset")]
39pub trait ITMP_AssetMethods: ITMP_Asset {
40 #[doc = "`get_instanceID()` overload"]
41 fn get_instance_id(self) -> i32 {
42 unsafe {
43 let __receiver = <TMP_Asset as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
44 ::unity::il2cpp_call!((::unity::module_base()+0x2d91230usize)as*mut u8,i32;
45(TMP_Asset)__receiver)
46 }
47 }
48 #[doc = "`.ctor()` overload"]
49 fn ctor(self) -> () {
50 unsafe {
51 let __receiver = <TMP_Asset as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
52 ::unity::il2cpp_call!((::unity::module_base()+0x2d91270usize)as*mut u8,();
53(TMP_Asset)__receiver)
54 }
55 }
56}
57
58#[cfg(feature = "tm_pro-tmp_asset")]
59impl<__T: ITMP_Asset> ITMP_AssetMethods for __T {}
60
61#[cfg(feature = "tm_pro-tmp_asset")]
62impl TMP_Asset {
63 pub fn get_instance_id_method_info() -> &'static ::unity::il2cpp::MethodInfo {
64 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
65 }
66
67 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
68 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
69 }
70}
71
72#[cfg(feature = "tm_pro-tmp_asset")]
73impl TMP_Asset {
74 #[doc = "`.ctor()` — no args"]
75 pub fn new() -> Self {
76 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
77 panic!(
78 "{}
79::{}
80 failed to instantiate",
81 ::core::stringify!(TMP_Asset),
82 ::core::stringify!(new),
83 )
84 });
85 <Self as ITMP_AssetMethods>::ctor(this);
86 this
87 }
88}
89
90#[cfg(feature = "tm_pro-tmp_asset")]
91#[doc(hidden)]
92pub mod prelude {
93 pub use super::{ITMP_Asset, ITMP_AssetMethods, TMP_Asset};
94 #[cfg(feature = "system-object")]
95 pub use crate::system::object::IObjectMethods;
96 #[cfg(feature = "unity_engine-object_2")]
97 pub use crate::unity_engine::object_2::IObject_2Methods;
98 #[cfg(feature = "unity_engine-scriptableobject")]
99 pub use crate::unity_engine::scriptableobject::IScriptableObjectMethods;
100 pub use crate::{
101 system::object::IObject,
102 unity_engine::{object_2::IObject_2, scriptableobject::IScriptableObject},
103 };
104}