engage/generated/root/
aktimelinertpcplayablebehaviour.rs1#[cfg(feature = "root-aktimelinertpcplayablebehaviour-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::playables::playablebehaviour::{IPlayableBehaviour, PlayableBehaviour},
11 };
12
13 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/root/aktimelinertpcplayablebehaviour/AkTimelineRtpcPlayableBehaviour.md"))]
14 #[::unity::class(namespace = "", name = "AkTimelineRtpcPlayableBehaviour")]
15 #[parent(crate::unity_engine::playables::playablebehaviour::PlayableBehaviour)]
16 pub struct AkTimelineRtpcPlayableBehaviour {
17 #[offset(16)]
18 #[rename(name = "value")]
19 pub value: f32,
20 }
21}
22
23#[cfg(feature = "root-aktimelinertpcplayablebehaviour-types")]
24pub use __types::*;
25
26#[cfg(feature = "root-aktimelinertpcplayablebehaviour")]
27pub trait IAkTimelineRtpcPlayableBehaviourMethods: IAkTimelineRtpcPlayableBehaviour {
28 #[doc = "`set_setGlobally(bool)` overload"]
29 fn set_set_globally(self, value: impl ::core::convert::Into<bool>) -> () {
30 unsafe {
31 let __receiver =
32 <AkTimelineRtpcPlayableBehaviour as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
33 ::unity::il2cpp_call!((::unity::module_base()+0x1d28e10usize)as*mut u8,();
34(AkTimelineRtpcPlayableBehaviour)__receiver,(bool)::core::convert::Into::into(value))
35 }
36 }
37 #[doc = "`get_setGlobally()` overload"]
38 fn get_set_globally(self) -> bool {
39 unsafe {
40 let __receiver =
41 <AkTimelineRtpcPlayableBehaviour as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
42 ::unity::il2cpp_call!((::unity::module_base()+0x1d28e20usize)as*mut u8,bool;
43(AkTimelineRtpcPlayableBehaviour)__receiver)
44 }
45 }
46 #[doc = "`set_gameObject(crate::unity_engine::gameobject::GameObject)` overload"]
47 fn set_game_object(self, value: impl ::core::convert::Into<crate::unity_engine::gameobject::GameObject>) -> () {
48 unsafe {
49 let __receiver =
50 <AkTimelineRtpcPlayableBehaviour as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
51 ::unity::il2cpp_call!((::unity::module_base()+0x1d28e30usize)as*mut u8,();
52(AkTimelineRtpcPlayableBehaviour)__receiver,(crate::unity_engine::gameobject::GameObject)::core::convert::Into::into(value))
53 }
54 }
55 #[doc = "`get_gameObject()` overload"]
56 fn get_game_object(self) -> crate::unity_engine::gameobject::GameObject {
57 unsafe {
58 let __receiver =
59 <AkTimelineRtpcPlayableBehaviour as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
60 ::unity::il2cpp_call!((::unity::module_base()+0x1d28e40usize)as*mut u8,crate::unity_engine::gameobject::GameObject;
61(AkTimelineRtpcPlayableBehaviour)__receiver)
62 }
63 }
64 #[doc = "`ProcessFrame(crate::unity_engine::playables::playable::Playable, crate::unity_engine::playables::framedata::FrameData, crate::system::object::Object)` overload"]
65 fn process_frame(
66 self,
67 playable: impl ::core::convert::Into<crate::unity_engine::playables::playable::Playable>,
68 frame_data: impl ::core::convert::Into<crate::unity_engine::playables::framedata::FrameData>,
69 player_data: impl ::core::convert::Into<crate::system::object::Object>,
70 ) -> () {
71 unsafe {
72 let __receiver =
73 <AkTimelineRtpcPlayableBehaviour as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
74 {
75 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
76 let __vi = *__vt.get(20usize).unwrap_or_else(|| {
77 panic!(
78 "unity: virtual slot {}
79 out of range (vtable len {}
80) on the runtime class behind {}
81 (method `{}
82`)",
83 20usize,
84 __vt.len(),
85 <AkTimelineRtpcPlayableBehaviour as ::unity::ClassIdentity>::NAME,
86 "ProcessFrame",
87 )
88 });
89 let __inner: extern "C" fn(
90 AkTimelineRtpcPlayableBehaviour,
91 crate::unity_engine::playables::playable::Playable,
92 crate::unity_engine::playables::framedata::FrameData,
93 crate::system::object::Object,
94 ::unity::OptionalMethod,
95 ) -> () = ::core::mem::transmute(__vi.method_ptr);
96 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
97 __inner(
98 __receiver,
99 ::core::convert::Into::into(playable),
100 ::core::convert::Into::into(frame_data),
101 ::core::convert::Into::into(player_data),
102 __mi,
103 )
104 }
105 }
106 }
107 #[doc = "`.ctor()` overload"]
108 fn ctor(self) -> () {
109 unsafe {
110 let __receiver =
111 <AkTimelineRtpcPlayableBehaviour as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
112 ::unity::il2cpp_call!((::unity::module_base()+0x1d28de0usize)as*mut u8,();
113(AkTimelineRtpcPlayableBehaviour)__receiver)
114 }
115 }
116}
117
118#[cfg(feature = "root-aktimelinertpcplayablebehaviour")]
119impl<__T: IAkTimelineRtpcPlayableBehaviour> IAkTimelineRtpcPlayableBehaviourMethods for __T {}
120
121#[cfg(feature = "root-aktimelinertpcplayablebehaviour")]
122impl AkTimelineRtpcPlayableBehaviour {
123 pub fn set_set_globally_method_info() -> &'static ::unity::il2cpp::MethodInfo {
124 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
125 }
126
127 pub fn get_set_globally_method_info() -> &'static ::unity::il2cpp::MethodInfo {
128 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
129 }
130
131 pub fn set_game_object_method_info() -> &'static ::unity::il2cpp::MethodInfo {
132 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
133 }
134
135 pub fn get_game_object_method_info() -> &'static ::unity::il2cpp::MethodInfo {
136 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
137 }
138
139 pub fn process_frame_method_info() -> &'static ::unity::il2cpp::MethodInfo {
140 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
141 }
142
143 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
144 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
145 }
146}
147
148#[cfg(feature = "root-aktimelinertpcplayablebehaviour")]
149impl AkTimelineRtpcPlayableBehaviour {
150 #[doc = "Direct (non-virtual) call to `AkTimelineRtpcPlayableBehaviour`'s own `ProcessFrame`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
151 pub unsafe fn process_frame(
152 this: impl ::core::convert::Into<::unity::IlInstance>,
153 playable: crate::unity_engine::playables::playable::Playable,
154 frame_data: crate::unity_engine::playables::framedata::FrameData,
155 player_data: crate::system::object::Object,
156 ) -> () {
157 let __mi = Self::process_frame_method_info();
158 let __inner: extern "C" fn(
159 ::unity::IlInstance,
160 crate::unity_engine::playables::playable::Playable,
161 crate::unity_engine::playables::framedata::FrameData,
162 crate::system::object::Object,
163 ::unity::OptionalMethod,
164 ) -> () = ::core::mem::transmute(__mi.method_ptr);
165 __inner(this.into(), playable, frame_data, player_data, ::core::option::Option::None)
166 }
167}
168
169#[cfg(feature = "root-aktimelinertpcplayablebehaviour")]
170impl AkTimelineRtpcPlayableBehaviour {
171 #[doc = "`.ctor()` — no args"]
172 pub fn new() -> Self {
173 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
174 panic!(
175 "{}
176::{}
177 failed to instantiate",
178 ::core::stringify!(AkTimelineRtpcPlayableBehaviour),
179 ::core::stringify!(new),
180 )
181 });
182 <Self as IAkTimelineRtpcPlayableBehaviourMethods>::ctor(this);
183 this
184 }
185}
186
187#[cfg(feature = "root-aktimelinertpcplayablebehaviour")]
188#[doc(hidden)]
189pub mod prelude {
190 pub use super::{AkTimelineRtpcPlayableBehaviour, IAkTimelineRtpcPlayableBehaviour, IAkTimelineRtpcPlayableBehaviourMethods};
191 #[cfg(feature = "system-object")]
192 pub use crate::system::object::IObjectMethods;
193 #[cfg(feature = "unity_engine-playables-playablebehaviour")]
194 pub use crate::unity_engine::playables::playablebehaviour::IPlayableBehaviourMethods;
195 pub use crate::{system::object::IObject, unity_engine::playables::playablebehaviour::IPlayableBehaviour};
196}