engage/generated/unity_engine/
avatarmask.rs1#[cfg(feature = "unity_engine-avatarmask-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::object_2::{IObject_2, Object_2},
11 };
12
13 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/unity_engine/avatarmask/AvatarMask.md"))]
14 #[::unity::class(namespace = "UnityEngine", name = "AvatarMask")]
15 #[parent(crate::unity_engine::object_2::Object_2)]
16 pub struct AvatarMask {}
17}
18
19#[cfg(feature = "unity_engine-avatarmask-types")]
20pub use __types::*;
21
22#[cfg(feature = "unity_engine-avatarmask")]
23pub trait IAvatarMaskMethods: IAvatarMask {
24 #[doc = "`GetHumanoidBodyPartActive(crate::unity_engine::avatarmaskbodypart::AvatarMaskBodyPart)` overload"]
25 fn get_humanoid_body_part_active(self, index: impl ::core::convert::Into<crate::unity_engine::avatarmaskbodypart::AvatarMaskBodyPart>) -> bool {
26 unsafe {
27 let __receiver = <AvatarMask as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
28 ::unity::il2cpp_call!((::unity::module_base()+0x3eb90e0usize)as*mut u8,bool;
29(AvatarMask)__receiver,(crate::unity_engine::avatarmaskbodypart::AvatarMaskBodyPart)::core::convert::Into::into(index))
30 }
31 }
32 #[doc = "`get_transformCount()` overload"]
33 fn get_transform_count(self) -> i32 {
34 unsafe {
35 let __receiver = <AvatarMask as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
36 ::unity::il2cpp_call!((::unity::module_base()+0x3eb9130usize)as*mut u8,i32;
37(AvatarMask)__receiver)
38 }
39 }
40 #[doc = "`GetTransformPath(i32)` overload"]
41 fn get_transform_path(self, index: impl ::core::convert::Into<i32>) -> ::unity::Il2CppString {
42 unsafe {
43 let __receiver = <AvatarMask as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
44 ::unity::il2cpp_call!((::unity::module_base()+0x3eb9180usize)as*mut u8, ::unity::Il2CppString;
45(AvatarMask)__receiver,(i32)::core::convert::Into::into(index))
46 }
47 }
48 #[doc = "`GetTransformWeight(i32)` overload"]
49 fn get_transform_weight(self, index: impl ::core::convert::Into<i32>) -> f32 {
50 unsafe {
51 let __receiver = <AvatarMask as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
52 ::unity::il2cpp_call!((::unity::module_base()+0x3eb91d0usize)as*mut u8,f32;
53(AvatarMask)__receiver,(i32)::core::convert::Into::into(index))
54 }
55 }
56 #[doc = "`GetTransformActive(i32)` overload"]
57 fn get_transform_active(self, index: impl ::core::convert::Into<i32>) -> bool {
58 unsafe {
59 let __receiver = <AvatarMask as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
60 ::unity::il2cpp_call!((::unity::module_base()+0x3eb9220usize)as*mut u8,bool;
61(AvatarMask)__receiver,(i32)::core::convert::Into::into(index))
62 }
63 }
64}
65
66#[cfg(feature = "unity_engine-avatarmask")]
67impl<__T: IAvatarMask> IAvatarMaskMethods for __T {}
68
69#[cfg(feature = "unity_engine-avatarmask")]
70impl AvatarMask {
71 pub fn get_humanoid_body_part_active_method_info() -> &'static ::unity::il2cpp::MethodInfo {
72 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
73 }
74
75 pub fn get_transform_count_method_info() -> &'static ::unity::il2cpp::MethodInfo {
76 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
77 }
78
79 pub fn get_transform_path_method_info() -> &'static ::unity::il2cpp::MethodInfo {
80 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
81 }
82
83 pub fn get_transform_weight_method_info() -> &'static ::unity::il2cpp::MethodInfo {
84 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
85 }
86
87 pub fn get_transform_active_method_info() -> &'static ::unity::il2cpp::MethodInfo {
88 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
89 }
90}
91
92#[cfg(feature = "unity_engine-avatarmask")]
93#[doc(hidden)]
94pub mod prelude {
95 pub use super::{AvatarMask, IAvatarMask, IAvatarMaskMethods};
96 #[cfg(feature = "system-object")]
97 pub use crate::system::object::IObjectMethods;
98 #[cfg(feature = "unity_engine-object_2")]
99 pub use crate::unity_engine::object_2::IObject_2Methods;
100 pub use crate::{system::object::IObject, unity_engine::object_2::IObject_2};
101}