engage/generated/app/
eventcharactermouthcontroller.rs1#[cfg(feature = "app-eventcharactermouthcontroller-types")]
4mod __types {
5 #[allow(unused_imports)] use ::unity::prelude::*;
6
7 use super::*;
8 use crate::{
9 system::{
10 object::{IObject, Object},
11 r#enum::{Enum, IEnum},
12 valuetype::{IValueType, ValueType},
13 },
14 unity_engine::{
15 behaviour::{Behaviour, IBehaviour},
16 component::{Component, IComponent},
17 monobehaviour::{IMonoBehaviour, MonoBehaviour},
18 object_2::{IObject_2, Object_2},
19 },
20 };
21
22 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/eventcharactermouthcontroller/EventCharacterMouthController.md"))]
23 #[::unity::class(namespace = "App", name = "EventCharacterMouthController")]
24 #[parent(crate::unity_engine::monobehaviour::MonoBehaviour)]
25 pub struct EventCharacterMouthController {
26 #[offset(24)]
27 #[rename(name = "LayerNameArray")]
28 pub layer_name_array: ::unity::Array<::unity::Il2CppString>,
29 #[offset(32)]
30 #[rename(name = "m_animator")]
31 pub m_animator: crate::unity_engine::animator::Animator,
32 #[offset(40)]
33 #[rename(name = "m_animLayerIndexArray")]
34 pub m_anim_layer_index_array: ::unity::Array<i32>,
35 #[offset(48)]
36 #[rename(name = "m_weight")]
37 pub m_weight: ::unity::Array<crate::app::weightfader::WeightFader>,
38 #[offset(56)]
39 #[rename(name = "m_voiceEventName")]
40 pub m_voice_event_name: ::unity::Il2CppString,
41 #[offset(64)]
42 #[rename(name = "m_weight_a")]
43 pub m_weight_a: crate::unity_engine::animationcurve::AnimationCurve,
44 #[offset(72)]
45 #[rename(name = "m_weight_i")]
46 pub m_weight_i: crate::unity_engine::animationcurve::AnimationCurve,
47 #[offset(80)]
48 #[rename(name = "m_weight_u")]
49 pub m_weight_u: crate::unity_engine::animationcurve::AnimationCurve,
50 #[offset(88)]
51 #[rename(name = "m_weight_e")]
52 pub m_weight_e: crate::unity_engine::animationcurve::AnimationCurve,
53 #[offset(96)]
54 #[rename(name = "m_weight_o")]
55 pub m_weight_o: crate::unity_engine::animationcurve::AnimationCurve,
56 #[offset(104)]
57 #[rename(name = "m_weightScale_vol")]
58 pub m_weight_scale_vol: crate::unity_engine::animationcurve::AnimationCurve,
59 #[offset(112)]
60 #[rename(name = "m_weightOffset_vol")]
61 pub m_weight_offset_vol: crate::unity_engine::animationcurve::AnimationCurve,
62 }
63
64 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/eventcharactermouthcontroller/EventCharacterMouthController_AnimLayer.md"))]
65 #[repr(C)]
66 #[derive(::core::clone::Clone, ::core::marker::Copy, ::core::fmt::Debug, ::core::cmp::PartialEq, ::core::cmp::Eq)]
67 pub struct EventCharacterMouthController_AnimLayer {
68 pub value: i32,
69 }
70 impl ::unity::ClassIdentity for EventCharacterMouthController_AnimLayer {
71 const NAME: &'static str = "EventCharacterMouthController.AnimLayer";
72 const NAMESPACE: &'static str = "App";
73
74 fn class() -> ::unity::Class {
75 static CACHE: ::std::sync::OnceLock<::unity::Class> = ::std::sync::OnceLock::new();
76 *CACHE.get_or_init(|| ::unity::Class::lookup(Self::NAMESPACE, Self::NAME))
77 }
78 }
79 impl ::unity::IlType for EventCharacterMouthController_AnimLayer {
80 fn il_type() -> &'static ::unity::il2cpp::Il2CppType {
81 &<Self as ::unity::ClassIdentity>::class().raw()._1.byval_arg
82 }
83 }
84 impl EventCharacterMouthController_AnimLayer {
85 pub fn layer_a() -> Self {
86 Self { value: 0 }
87 }
88
89 pub fn layer_i() -> Self {
90 Self { value: 1 }
91 }
92
93 pub fn layer_u() -> Self {
94 Self { value: 2 }
95 }
96
97 pub fn layer_e() -> Self {
98 Self { value: 3 }
99 }
100
101 pub fn layer_o() -> Self {
102 Self { value: 4 }
103 }
104
105 pub fn max() -> Self {
106 Self { value: 5 }
107 }
108 }
109}
110
111#[cfg(feature = "app-eventcharactermouthcontroller-types")]
112pub use __types::*;
113
114#[cfg(feature = "app-eventcharactermouthcontroller")]
115pub trait IEventCharacterMouthControllerMethods: IEventCharacterMouthController {
116 #[doc = "`.ctor()` overload"]
117 fn ctor(self) -> () {
118 unsafe {
119 let __receiver =
120 <EventCharacterMouthController as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
121 ::unity::il2cpp_call!((::unity::module_base()+0x24d2b80usize)as*mut u8,();
122(EventCharacterMouthController)__receiver)
123 }
124 }
125 #[doc = "`Start()` overload"]
126 fn start(self) -> () {
127 unsafe {
128 let __receiver =
129 <EventCharacterMouthController as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
130 ::unity::il2cpp_call!((::unity::module_base()+0x24d2f10usize)as*mut u8,();
131(EventCharacterMouthController)__receiver)
132 }
133 }
134 #[doc = "`Init()` overload"]
135 fn init(self) -> () {
136 unsafe {
137 let __receiver =
138 <EventCharacterMouthController as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
139 ::unity::il2cpp_call!((::unity::module_base()+0x24d2f20usize)as*mut u8,();
140(EventCharacterMouthController)__receiver)
141 }
142 }
143 #[doc = "`Update()` overload"]
144 fn update(self) -> () {
145 unsafe {
146 let __receiver =
147 <EventCharacterMouthController as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
148 ::unity::il2cpp_call!((::unity::module_base()+0x24d3280usize)as*mut u8,();
149(EventCharacterMouthController)__receiver)
150 }
151 }
152 #[doc = "`GetWeight(i32)` overload"]
153 fn get_weight(self, anim_layer_index: impl ::core::convert::Into<i32>) -> f32 {
154 unsafe {
155 let __receiver =
156 <EventCharacterMouthController as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
157 ::unity::il2cpp_call!((::unity::module_base()+0x24d3740usize)as*mut u8,f32;
158(EventCharacterMouthController)__receiver,(i32)::core::convert::Into::into(anim_layer_index))
159 }
160 }
161 #[doc = "`SetVoiceEventName(::unity::Il2CppString)` overload"]
162 fn set_voice_event_name(self, voice_event_name: impl ::core::convert::Into<::unity::Il2CppString>) -> () {
163 unsafe {
164 let __receiver =
165 <EventCharacterMouthController as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
166 ::unity::il2cpp_call!((::unity::module_base()+0x24d3790usize)as*mut u8,();
167(EventCharacterMouthController)__receiver,(::unity::Il2CppString)::core::convert::Into::into(voice_event_name))
168 }
169 }
170 #[doc = "`SetWeight(i32, f32, f32)` overload"]
171 fn set_weight(
172 self,
173 anim_layer_index: impl ::core::convert::Into<i32>,
174 weight: impl ::core::convert::Into<f32>,
175 msec: impl ::core::convert::Into<f32>,
176 ) -> () {
177 unsafe {
178 let __receiver =
179 <EventCharacterMouthController as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
180 ::unity::il2cpp_call!((::unity::module_base()+0x24d36f0usize)as*mut u8,();
181(EventCharacterMouthController)__receiver,(i32)::core::convert::Into::into(anim_layer_index),(f32)::core::convert::Into::into(weight),(f32)::core::convert::Into::into(msec))
182 }
183 }
184}
185
186#[cfg(feature = "app-eventcharactermouthcontroller")]
187impl<__T: IEventCharacterMouthController> IEventCharacterMouthControllerMethods for __T {}
188
189#[cfg(feature = "app-eventcharactermouthcontroller")]
190impl EventCharacterMouthController {
191 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
192 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
193 }
194
195 pub fn start_method_info() -> &'static ::unity::il2cpp::MethodInfo {
196 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
197 }
198
199 pub fn init_method_info() -> &'static ::unity::il2cpp::MethodInfo {
200 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
201 }
202
203 pub fn update_method_info() -> &'static ::unity::il2cpp::MethodInfo {
204 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
205 }
206
207 pub fn get_weight_method_info() -> &'static ::unity::il2cpp::MethodInfo {
208 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
209 }
210
211 pub fn set_voice_event_name_method_info() -> &'static ::unity::il2cpp::MethodInfo {
212 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
213 }
214
215 pub fn set_weight_method_info() -> &'static ::unity::il2cpp::MethodInfo {
216 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
217 }
218}
219
220#[cfg(feature = "app-eventcharactermouthcontroller")]
221impl EventCharacterMouthController {
222 #[doc = "`.ctor()` — no args"]
223 pub fn new() -> Self {
224 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
225 panic!(
226 "{}
227::{}
228 failed to instantiate",
229 ::core::stringify!(EventCharacterMouthController),
230 ::core::stringify!(new),
231 )
232 });
233 <Self as IEventCharacterMouthControllerMethods>::ctor(this);
234 this
235 }
236}
237
238#[cfg(feature = "app-eventcharactermouthcontroller")]
239#[doc(hidden)]
240pub mod prelude {
241 pub use super::{
242 EventCharacterMouthController, EventCharacterMouthController_AnimLayer, IEventCharacterMouthController, IEventCharacterMouthControllerMethods,
243 };
244 #[cfg(feature = "system-object")]
245 pub use crate::system::object::IObjectMethods;
246 #[cfg(feature = "system-enum")]
247 pub use crate::system::r#enum::IEnumMethods;
248 #[cfg(feature = "system-valuetype")]
249 pub use crate::system::valuetype::IValueTypeMethods;
250 #[cfg(feature = "unity_engine-behaviour")]
251 pub use crate::unity_engine::behaviour::IBehaviourMethods;
252 #[cfg(feature = "unity_engine-component")]
253 pub use crate::unity_engine::component::IComponentMethods;
254 #[cfg(feature = "unity_engine-monobehaviour")]
255 pub use crate::unity_engine::monobehaviour::IMonoBehaviourMethods;
256 #[cfg(feature = "unity_engine-object_2")]
257 pub use crate::unity_engine::object_2::IObject_2Methods;
258 pub use crate::{
259 system::{object::IObject, r#enum::IEnum, valuetype::IValueType},
260 unity_engine::{behaviour::IBehaviour, component::IComponent, monobehaviour::IMonoBehaviour, object_2::IObject_2},
261 };
262}