engage/generated/app/
weightfader.rs1#[cfg(feature = "app-weightfader-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/app/weightfader/WeightFader.md"))]
11 #[::unity::class(namespace = "App", name = "WeightFader")]
12 #[parent(crate::system::object::Object)]
13 pub struct WeightFader {
14 #[offset(16)]
15 #[rename(name = "m_wgt")]
16 pub m_wgt: f32,
17 #[offset(20)]
18 #[rename(name = "m_wgtFrom")]
19 pub m_wgt_from: f32,
20 #[offset(24)]
21 #[rename(name = "m_wgtTo")]
22 pub m_wgt_to: f32,
23 #[offset(28)]
24 #[rename(name = "m_time")]
25 pub m_time: f32,
26 #[offset(32)]
27 #[rename(name = "m_duration")]
28 pub m_duration: f32,
29 }
30}
31
32#[cfg(feature = "app-weightfader-types")]
33pub use __types::*;
34
35#[cfg(feature = "app-weightfader")]
36pub trait IWeightFaderMethods: IWeightFader {
37 #[doc = "`.ctor()` overload"]
38 fn ctor(self) -> () {
39 unsafe {
40 let __receiver = <WeightFader as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
41 ::unity::il2cpp_call!((::unity::module_base()+0x21d41c0usize)as*mut u8,();
42(WeightFader)__receiver)
43 }
44 }
45 #[doc = "`Reset()` overload"]
46 fn reset(self) -> () {
47 unsafe {
48 let __receiver = <WeightFader as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
49 ::unity::il2cpp_call!((::unity::module_base()+0x21d4200usize)as*mut u8,();
50(WeightFader)__receiver)
51 }
52 }
53 #[doc = "`Get()` overload"]
54 fn get(self) -> f32 {
55 unsafe {
56 let __receiver = <WeightFader as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
57 ::unity::il2cpp_call!((::unity::module_base()+0x21d4220usize)as*mut u8,f32;
58(WeightFader)__receiver)
59 }
60 }
61 #[doc = "`Set(f32, f32)` overload"]
62 fn set(self, wgt: impl ::core::convert::Into<f32>, msec: impl ::core::convert::Into<f32>) -> () {
63 unsafe {
64 let __receiver = <WeightFader as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
65 ::unity::il2cpp_call!((::unity::module_base()+0x21d4230usize)as*mut u8,();
66(WeightFader)__receiver,(f32)::core::convert::Into::into(wgt),(f32)::core::convert::Into::into(msec))
67 }
68 }
69 #[doc = "`Tick()` overload"]
70 fn tick(self) -> f32 {
71 unsafe {
72 let __receiver = <WeightFader as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
73 ::unity::il2cpp_call!((::unity::module_base()+0x21d4270usize)as*mut u8,f32;
74(WeightFader)__receiver)
75 }
76 }
77}
78
79#[cfg(feature = "app-weightfader")]
80impl<__T: IWeightFader> IWeightFaderMethods for __T {}
81
82#[cfg(feature = "app-weightfader")]
83impl WeightFader {
84 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
85 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
86 }
87
88 pub fn reset_method_info() -> &'static ::unity::il2cpp::MethodInfo {
89 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
90 }
91
92 pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
93 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
94 }
95
96 pub fn set_method_info() -> &'static ::unity::il2cpp::MethodInfo {
97 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
98 }
99
100 pub fn tick_method_info() -> &'static ::unity::il2cpp::MethodInfo {
101 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
102 }
103}
104
105#[cfg(feature = "app-weightfader")]
106impl WeightFader {
107 #[doc = "`.ctor()` — no args"]
108 pub fn new() -> Self {
109 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
110 panic!(
111 "{}
112::{}
113 failed to instantiate",
114 ::core::stringify!(WeightFader),
115 ::core::stringify!(new),
116 )
117 });
118 <Self as IWeightFaderMethods>::ctor(this);
119 this
120 }
121}
122
123#[cfg(feature = "app-weightfader")]
124#[doc(hidden)]
125pub mod prelude {
126 pub use super::{IWeightFader, IWeightFaderMethods, WeightFader};
127 pub use crate::system::object::IObject;
128 #[cfg(feature = "system-object")]
129 pub use crate::system::object::IObjectMethods;
130}