engage/generated/app/talk3_d/
talkkeywait.rs1#[cfg(feature = "app-talk3_d-talkkeywait-types")]
4mod __types {
5 #[allow(unused_imports)] use ::unity::prelude::*;
6
7 use super::*;
8 use crate::{
9 app::procinst::{IProcInst, ProcInst},
10 system::object::{IObject, Object},
11 };
12
13 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/talk3_d/talkkeywait/TalkKeyWait.md"))]
14 #[::unity::class(namespace = "App.Talk3D", name = "TalkKeyWait")]
15 #[parent(crate::app::procinst::ProcInst)]
16 pub struct TalkKeyWait {
17 #[offset(112)]
18 #[rename(name = "m_Mid")]
19 pub m_mid: ::unity::Il2CppString,
20 #[offset(120)]
21 #[rename(name = "m_VoiceEventName")]
22 pub m_voice_event_name: ::unity::Il2CppString,
23 #[offset(128)]
24 #[rename(name = "m_WaitSecForAutoPlay")]
25 pub m_wait_sec_for_auto_play: f32,
26 #[offset(132)]
27 #[rename(name = "m_waitCounter")]
28 pub m_wait_counter: f32,
29 }
30}
31
32#[cfg(feature = "app-talk3_d-talkkeywait-types")]
33pub use __types::*;
34
35#[cfg(feature = "app-talk3_d-talkkeywait")]
36impl TalkKeyWait {
37 #[doc = "`CreateInstBind(crate::app::procinst::ProcInst, ::unity::Il2CppString)` overload"]
38 pub fn create_inst_bind(
39 parent: impl ::core::convert::Into<crate::app::procinst::ProcInst>,
40 mid: impl ::core::convert::Into<::unity::Il2CppString>,
41 ) -> crate::app::talk3_d::talkkeywait::TalkKeyWait {
42 unsafe {
43 ::unity::il2cpp_call!((::unity::module_base()+0x20c0070usize)as*mut u8,crate::app::talk3_d::talkkeywait::TalkKeyWait;
44(crate::app::procinst::ProcInst)::core::convert::Into::into(parent),(::unity::Il2CppString)::core::convert::Into::into(mid))
45 }
46 }
47}
48
49#[cfg(feature = "app-talk3_d-talkkeywait")]
50pub trait ITalkKeyWaitMethods: ITalkKeyWait {
51 #[doc = "`.ctor(::unity::Il2CppString)` overload"]
52 fn ctor(self, mid: impl ::core::convert::Into<::unity::Il2CppString>) -> () {
53 unsafe {
54 let __receiver = <TalkKeyWait as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
55 ::unity::il2cpp_call!((::unity::module_base()+0x20bee50usize)as*mut u8,();
56(TalkKeyWait)__receiver,(::unity::Il2CppString)::core::convert::Into::into(mid))
57 }
58 }
59 #[doc = "`OnCreate()` overload"]
60 fn on_create(self) -> () {
61 unsafe {
62 let __receiver = <TalkKeyWait as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
63 {
64 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
65 let __vi = *__vt.get(9usize).unwrap_or_else(|| {
66 panic!(
67 "unity: virtual slot {}
68 out of range (vtable len {}
69) on the runtime class behind {}
70 (method `{}
71`)",
72 9usize,
73 __vt.len(),
74 <TalkKeyWait as ::unity::ClassIdentity>::NAME,
75 "OnCreate",
76 )
77 });
78 let __inner: extern "C" fn(TalkKeyWait, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
79 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
80 __inner(__receiver, __mi)
81 }
82 }
83 }
84 #[doc = "`OnDispose()` overload"]
85 fn on_dispose(self) -> () {
86 unsafe {
87 let __receiver = <TalkKeyWait as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
88 {
89 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
90 let __vi = *__vt.get(10usize).unwrap_or_else(|| {
91 panic!(
92 "unity: virtual slot {}
93 out of range (vtable len {}
94) on the runtime class behind {}
95 (method `{}
96`)",
97 10usize,
98 __vt.len(),
99 <TalkKeyWait as ::unity::ClassIdentity>::NAME,
100 "OnDispose",
101 )
102 });
103 let __inner: extern "C" fn(TalkKeyWait, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
104 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
105 __inner(__receiver, __mi)
106 }
107 }
108 }
109 #[doc = "`Tick()` overload"]
110 fn tick(self) -> () {
111 unsafe {
112 let __receiver = <TalkKeyWait as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
113 ::unity::il2cpp_call!((::unity::module_base()+0x20bfa00usize)as*mut u8,();
114(TalkKeyWait)__receiver)
115 }
116 }
117 #[doc = "`OnShutdown()` overload"]
118 fn on_shutdown(self) -> () {
119 unsafe {
120 let __receiver = <TalkKeyWait as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
121 {
122 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
123 let __vi = *__vt.get(15usize).unwrap_or_else(|| {
124 panic!(
125 "unity: virtual slot {}
126 out of range (vtable len {}
127) on the runtime class behind {}
128 (method `{}
129`)",
130 15usize,
131 __vt.len(),
132 <TalkKeyWait as ::unity::ClassIdentity>::NAME,
133 "OnShutdown",
134 )
135 });
136 let __inner: extern "C" fn(TalkKeyWait, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
137 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
138 __inner(__receiver, __mi)
139 }
140 }
141 }
142}
143
144#[cfg(feature = "app-talk3_d-talkkeywait")]
145impl<__T: ITalkKeyWait> ITalkKeyWaitMethods for __T {}
146
147#[cfg(feature = "app-talk3_d-talkkeywait")]
148impl TalkKeyWait {
149 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
150 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
151 }
152
153 pub fn on_create_method_info() -> &'static ::unity::il2cpp::MethodInfo {
154 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
155 }
156
157 pub fn on_dispose_method_info() -> &'static ::unity::il2cpp::MethodInfo {
158 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
159 }
160
161 pub fn tick_method_info() -> &'static ::unity::il2cpp::MethodInfo {
162 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
163 }
164
165 pub fn on_shutdown_method_info() -> &'static ::unity::il2cpp::MethodInfo {
166 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
167 }
168
169 pub fn create_inst_bind_method_info() -> &'static ::unity::il2cpp::MethodInfo {
170 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
171 }
172}
173
174#[cfg(feature = "app-talk3_d-talkkeywait")]
175impl TalkKeyWait {
176 #[doc = "Direct (non-virtual) call to `TalkKeyWait`'s own `OnCreate`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
177 pub unsafe fn on_create(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
178 let __mi = Self::on_create_method_info();
179 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
180 __inner(this.into(), ::core::option::Option::None)
181 }
182
183 #[doc = "Direct (non-virtual) call to `TalkKeyWait`'s own `OnDispose`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
184 pub unsafe fn on_dispose(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
185 let __mi = Self::on_dispose_method_info();
186 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
187 __inner(this.into(), ::core::option::Option::None)
188 }
189
190 #[doc = "Direct (non-virtual) call to `TalkKeyWait`'s own `OnShutdown`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
191 pub unsafe fn on_shutdown(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
192 let __mi = Self::on_shutdown_method_info();
193 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
194 __inner(this.into(), ::core::option::Option::None)
195 }
196}
197
198#[cfg(feature = "app-talk3_d-talkkeywait")]
199impl TalkKeyWait {
200 #[doc = "`.ctor(::unity::Il2CppString)` — overload selector"]
201 pub fn new(mid: ::unity::Il2CppString) -> Self {
202 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
203 panic!(
204 "{}
205::{}
206 failed to instantiate",
207 ::core::stringify!(TalkKeyWait),
208 ::core::stringify!(new),
209 )
210 });
211 <Self as ITalkKeyWaitMethods>::ctor(this, mid);
212 this
213 }
214}
215
216#[cfg(feature = "app-talk3_d-talkkeywait")]
217#[doc(hidden)]
218pub mod prelude {
219 pub use super::{ITalkKeyWait, ITalkKeyWaitMethods, TalkKeyWait};
220 #[cfg(feature = "app-procinst")]
221 pub use crate::app::procinst::IProcInstMethods;
222 #[cfg(feature = "system-object")]
223 pub use crate::system::object::IObjectMethods;
224 pub use crate::{app::procinst::IProcInst, system::object::IObject};
225}