1#[cfg(feature = "unity_engine-animationcurve-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/unity_engine/animationcurve/AnimationCurve.md"))]
11 #[::unity::class(namespace = "UnityEngine", name = "AnimationCurve")]
12 #[parent(crate::system::object::Object)]
13 pub struct AnimationCurve {
14 #[offset(16)]
15 #[rename(name = "m_Ptr")]
16 pub m_ptr: ::unity::IntPtr,
17 }
18}
19
20#[cfg(feature = "unity_engine-animationcurve-types")]
21pub use __types::*;
22
23#[cfg(feature = "unity_engine-animationcurve")]
24impl AnimationCurve {
25 #[doc = "`Internal_Destroy(::unity::IntPtr)` overload"]
26 pub fn internal_destroy(ptr: impl ::core::convert::Into<::unity::IntPtr>) -> () {
27 unsafe {
28 ::unity::il2cpp_call!((::unity::module_base()+0x2c34900usize)as*mut u8,();
29(::unity::IntPtr)::core::convert::Into::into(ptr))
30 }
31 }
32
33 #[doc = "`Internal_Create(::unity::Array<crate::unity_engine::keyframe::Keyframe>)` overload"]
34 pub fn internal_create(keys: impl ::core::convert::Into<::unity::Array<crate::unity_engine::keyframe::Keyframe>>) -> ::unity::IntPtr {
35 unsafe {
36 ::unity::il2cpp_call!((::unity::module_base()+0x2c34950usize)as*mut u8, ::unity::IntPtr;
37(::unity::Array<crate::unity_engine::keyframe::Keyframe>)::core::convert::Into::into(keys))
38 }
39 }
40
41 #[doc = "`Linear(f32, f32, f32, f32)` overload"]
42 pub fn linear(
43 time_start: impl ::core::convert::Into<f32>,
44 value_start: impl ::core::convert::Into<f32>,
45 time_end: impl ::core::convert::Into<f32>,
46 value_end: impl ::core::convert::Into<f32>,
47 ) -> crate::unity_engine::animationcurve::AnimationCurve {
48 unsafe {
49 ::unity::il2cpp_call!((::unity::module_base()+0x2c350e0usize)as*mut u8,crate::unity_engine::animationcurve::AnimationCurve;
50(f32)::core::convert::Into::into(time_start),(f32)::core::convert::Into::into(value_start),(f32)::core::convert::Into::into(time_end),(f32)::core::convert::Into::into(value_end))
51 }
52 }
53
54 #[doc = "`EaseInOut(f32, f32, f32, f32)` overload"]
55 pub fn ease_in_out(
56 time_start: impl ::core::convert::Into<f32>,
57 value_start: impl ::core::convert::Into<f32>,
58 time_end: impl ::core::convert::Into<f32>,
59 value_end: impl ::core::convert::Into<f32>,
60 ) -> crate::unity_engine::animationcurve::AnimationCurve {
61 unsafe {
62 ::unity::il2cpp_call!((::unity::module_base()+0x2c352e0usize)as*mut u8,crate::unity_engine::animationcurve::AnimationCurve;
63(f32)::core::convert::Into::into(time_start),(f32)::core::convert::Into::into(value_start),(f32)::core::convert::Into::into(time_end),(f32)::core::convert::Into::into(value_end))
64 }
65 }
66}
67
68#[cfg(feature = "unity_engine-animationcurve")]
69pub trait IAnimationCurveMethods: IAnimationCurve {
70 #[doc = "`Internal_Equals(::unity::IntPtr)` overload"]
71 fn internal_equals(self, other: impl ::core::convert::Into<::unity::IntPtr>) -> bool {
72 unsafe {
73 let __receiver = <AnimationCurve as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
74 ::unity::il2cpp_call!((::unity::module_base()+0x2c349a0usize)as*mut u8,bool;
75(AnimationCurve)__receiver,(::unity::IntPtr)::core::convert::Into::into(other))
76 }
77 }
78 #[doc = "`Finalize()` overload"]
79 fn finalize(self) -> () {
80 unsafe {
81 let __receiver = <AnimationCurve as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
82 {
83 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
84 let __vi = *__vt.get(1usize).unwrap_or_else(|| {
85 panic!(
86 "unity: virtual slot {}
87 out of range (vtable len {}
88) on the runtime class behind {}
89 (method `{}
90`)",
91 1usize,
92 __vt.len(),
93 <AnimationCurve as ::unity::ClassIdentity>::NAME,
94 "Finalize",
95 )
96 });
97 let __inner: extern "C" fn(AnimationCurve, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
98 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
99 __inner(__receiver, __mi)
100 }
101 }
102 }
103 #[doc = "`Evaluate(f32)` overload"]
104 fn evaluate(self, time: impl ::core::convert::Into<f32>) -> f32 {
105 unsafe {
106 let __receiver = <AnimationCurve as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
107 ::unity::il2cpp_call!((::unity::module_base()+0x2c34a90usize)as*mut u8,f32;
108(AnimationCurve)__receiver,(f32)::core::convert::Into::into(time))
109 }
110 }
111 #[doc = "`get_keys()` overload"]
112 fn get_keys(self) -> ::unity::Array<crate::unity_engine::keyframe::Keyframe> {
113 unsafe {
114 let __receiver = <AnimationCurve as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
115 ::unity::il2cpp_call!((::unity::module_base()+0x2c34ae0usize)as*mut u8, ::unity::Array<crate::unity_engine::keyframe::Keyframe> ;
116(AnimationCurve)__receiver)
117 }
118 }
119 #[doc = "`set_keys(::unity::Array<crate::unity_engine::keyframe::Keyframe>)` overload"]
120 fn set_keys(self, value: impl ::core::convert::Into<::unity::Array<crate::unity_engine::keyframe::Keyframe>>) -> () {
121 unsafe {
122 let __receiver = <AnimationCurve as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
123 ::unity::il2cpp_call!((::unity::module_base()+0x2c34b80usize)as*mut u8,();
124(AnimationCurve)__receiver,(::unity::Array<crate::unity_engine::keyframe::Keyframe>)::core::convert::Into::into(value))
125 }
126 }
127 #[doc = "`AddKey(f32, f32)` overload"]
128 fn add_key(self, time: impl ::core::convert::Into<f32>, value: impl ::core::convert::Into<f32>) -> i32 {
129 unsafe {
130 let __receiver = <AnimationCurve as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
131 ::unity::il2cpp_call!((::unity::module_base()+0x2c34c20usize)as*mut u8,i32;
132(AnimationCurve)__receiver,(f32)::core::convert::Into::into(time),(f32)::core::convert::Into::into(value))
133 }
134 }
135 #[doc = "`AddKey(crate::unity_engine::keyframe::Keyframe)` overload"]
136 fn add_key_2(self, key: impl ::core::convert::Into<crate::unity_engine::keyframe::Keyframe>) -> i32 {
137 unsafe {
138 let __receiver = <AnimationCurve as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
139 ::unity::il2cpp_call!((::unity::module_base()+0x2c34c80usize)as*mut u8,i32;
140(AnimationCurve)__receiver,(crate::unity_engine::keyframe::Keyframe)::core::convert::Into::into(key))
141 }
142 }
143 #[doc = "`AddKey_Internal(crate::unity_engine::keyframe::Keyframe)` overload"]
144 fn add_key_internal(self, key: impl ::core::convert::Into<crate::unity_engine::keyframe::Keyframe>) -> i32 {
145 unsafe {
146 let __receiver = <AnimationCurve as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
147 ::unity::il2cpp_call!((::unity::module_base()+0x2c34cf0usize)as*mut u8,i32;
148(AnimationCurve)__receiver,(crate::unity_engine::keyframe::Keyframe)::core::convert::Into::into(key))
149 }
150 }
151 #[doc = "`MoveKey(i32, crate::unity_engine::keyframe::Keyframe)` overload"]
152 fn move_key(self, index: impl ::core::convert::Into<i32>, key: impl ::core::convert::Into<crate::unity_engine::keyframe::Keyframe>) -> i32 {
153 unsafe {
154 let __receiver = <AnimationCurve as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
155 ::unity::il2cpp_call!((::unity::module_base()+0x2c34d90usize)as*mut u8,i32;
156(AnimationCurve)__receiver,(i32)::core::convert::Into::into(index),(crate::unity_engine::keyframe::Keyframe)::core::convert::Into::into(key))
157 }
158 }
159 #[doc = "`RemoveKey(i32)` overload"]
160 fn remove_key(self, index: impl ::core::convert::Into<i32>) -> () {
161 unsafe {
162 let __receiver = <AnimationCurve as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
163 ::unity::il2cpp_call!((::unity::module_base()+0x2c34e50usize)as*mut u8,();
164(AnimationCurve)__receiver,(i32)::core::convert::Into::into(index))
165 }
166 }
167 #[doc = "`get_Item(i32)` overload"]
168 fn get_item(self, index: impl ::core::convert::Into<i32>) -> crate::unity_engine::keyframe::Keyframe {
169 unsafe {
170 let __receiver = <AnimationCurve as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
171 ::unity::il2cpp_call!((::unity::module_base()+0x2c34ea0usize)as*mut u8,crate::unity_engine::keyframe::Keyframe;
172(AnimationCurve)__receiver,(i32)::core::convert::Into::into(index))
173 }
174 }
175 #[doc = "`get_length()` overload"]
176 fn get_length(self) -> i32 {
177 unsafe {
178 let __receiver = <AnimationCurve as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
179 ::unity::il2cpp_call!((::unity::module_base()+0x2c34fd0usize)as*mut u8,i32;
180(AnimationCurve)__receiver)
181 }
182 }
183 #[doc = "`GetKey(i32)` overload"]
184 fn get_key(self, index: impl ::core::convert::Into<i32>) -> crate::unity_engine::keyframe::Keyframe {
185 unsafe {
186 let __receiver = <AnimationCurve as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
187 ::unity::il2cpp_call!((::unity::module_base()+0x2c34f40usize)as*mut u8,crate::unity_engine::keyframe::Keyframe;
188(AnimationCurve)__receiver,(i32)::core::convert::Into::into(index))
189 }
190 }
191 #[doc = "`SmoothTangents(i32, f32)` overload"]
192 fn smooth_tangents(self, index: impl ::core::convert::Into<i32>, weight: impl ::core::convert::Into<f32>) -> () {
193 unsafe {
194 let __receiver = <AnimationCurve as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
195 ::unity::il2cpp_call!((::unity::module_base()+0x2c35080usize)as*mut u8,();
196(AnimationCurve)__receiver,(i32)::core::convert::Into::into(index),(f32)::core::convert::Into::into(weight))
197 }
198 }
199 #[doc = "`set_preWrapMode(crate::unity_engine::wrapmode::WrapMode)` overload"]
200 fn set_pre_wrap_mode(self, value: impl ::core::convert::Into<crate::unity_engine::wrapmode::WrapMode>) -> () {
201 unsafe {
202 let __receiver = <AnimationCurve as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
203 ::unity::il2cpp_call!((::unity::module_base()+0x2c35430usize)as*mut u8,();
204(AnimationCurve)__receiver,(crate::unity_engine::wrapmode::WrapMode)::core::convert::Into::into(value))
205 }
206 }
207 #[doc = "`set_postWrapMode(crate::unity_engine::wrapmode::WrapMode)` overload"]
208 fn set_post_wrap_mode(self, value: impl ::core::convert::Into<crate::unity_engine::wrapmode::WrapMode>) -> () {
209 unsafe {
210 let __receiver = <AnimationCurve as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
211 ::unity::il2cpp_call!((::unity::module_base()+0x2c35480usize)as*mut u8,();
212(AnimationCurve)__receiver,(crate::unity_engine::wrapmode::WrapMode)::core::convert::Into::into(value))
213 }
214 }
215 #[doc = "`.ctor(::unity::Array<crate::unity_engine::keyframe::Keyframe>)` overload"]
216 fn ctor(self, keys: impl ::core::convert::Into<::unity::Array<crate::unity_engine::keyframe::Keyframe>>) -> () {
217 unsafe {
218 let __receiver = <AnimationCurve as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
219 ::unity::il2cpp_call!((::unity::module_base()+0x2c35260usize)as*mut u8,();
220(AnimationCurve)__receiver,(::unity::Array<crate::unity_engine::keyframe::Keyframe>)::core::convert::Into::into(keys))
221 }
222 }
223 #[doc = "`.ctor()` overload"]
224 fn ctor_2(self) -> () {
225 unsafe {
226 let __receiver = <AnimationCurve as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
227 ::unity::il2cpp_call!((::unity::module_base()+0x2c354d0usize)as*mut u8,();
228(AnimationCurve)__receiver)
229 }
230 }
231 #[doc = "`Equals(crate::system::object::Object)` overload"]
232 fn equals(self, o: impl ::core::convert::Into<crate::system::object::Object>) -> bool {
233 unsafe {
234 let __receiver = <AnimationCurve as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
235 {
236 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
237 let __vi = *__vt.get(0usize).unwrap_or_else(|| {
238 panic!(
239 "unity: virtual slot {}
240 out of range (vtable len {}
241) on the runtime class behind {}
242 (method `{}
243`)",
244 0usize,
245 __vt.len(),
246 <AnimationCurve as ::unity::ClassIdentity>::NAME,
247 "Equals",
248 )
249 });
250 let __inner: extern "C" fn(AnimationCurve, crate::system::object::Object, ::unity::OptionalMethod) -> bool =
251 ::core::mem::transmute(__vi.method_ptr);
252 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
253 __inner(__receiver, ::core::convert::Into::into(o), __mi)
254 }
255 }
256 }
257 #[doc = "`Equals(crate::unity_engine::animationcurve::AnimationCurve)` overload"]
258 fn equals_2(self, other: impl ::core::convert::Into<crate::unity_engine::animationcurve::AnimationCurve>) -> bool {
259 unsafe {
260 let __receiver = <AnimationCurve as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
261 {
262 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
263 let __vi = *__vt.get(4usize).unwrap_or_else(|| {
264 panic!(
265 "unity: virtual slot {}
266 out of range (vtable len {}
267) on the runtime class behind {}
268 (method `{}
269`)",
270 4usize,
271 __vt.len(),
272 <AnimationCurve as ::unity::ClassIdentity>::NAME,
273 "Equals",
274 )
275 });
276 let __inner: extern "C" fn(AnimationCurve, crate::unity_engine::animationcurve::AnimationCurve, ::unity::OptionalMethod) -> bool =
277 ::core::mem::transmute(__vi.method_ptr);
278 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
279 __inner(__receiver, ::core::convert::Into::into(other), __mi)
280 }
281 }
282 }
283 #[doc = "`GetHashCode()` overload"]
284 fn get_hash_code(self) -> i32 {
285 unsafe {
286 let __receiver = <AnimationCurve as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
287 {
288 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
289 let __vi = *__vt.get(2usize).unwrap_or_else(|| {
290 panic!(
291 "unity: virtual slot {}
292 out of range (vtable len {}
293) on the runtime class behind {}
294 (method `{}
295`)",
296 2usize,
297 __vt.len(),
298 <AnimationCurve as ::unity::ClassIdentity>::NAME,
299 "GetHashCode",
300 )
301 });
302 let __inner: extern "C" fn(AnimationCurve, ::unity::OptionalMethod) -> i32 = ::core::mem::transmute(__vi.method_ptr);
303 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
304 __inner(__receiver, __mi)
305 }
306 }
307 }
308 #[doc = "`AddKey_Internal_Injected(*mutcrate::unity_engine::keyframe::Keyframe)` overload"]
309 fn add_key_internal_injected(self) -> (i32, crate::unity_engine::keyframe::Keyframe) {
310 unsafe {
311 let __receiver = <AnimationCurve as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
312 let mut __out_0 = ::core::mem::MaybeUninit::<crate::unity_engine::keyframe::Keyframe>::uninit();
313 let __ret = {
314 ::unity::il2cpp_call!((::unity::module_base()+0x2c34d40usize)as*mut u8,i32;
315(AnimationCurve)__receiver,(*mut crate::unity_engine::keyframe::Keyframe)__out_0.as_mut_ptr())
316 };
317 (__ret, __out_0.assume_init())
318 }
319 }
320 #[doc = "`MoveKey_Injected(i32, *mutcrate::unity_engine::keyframe::Keyframe)` overload"]
321 fn move_key_injected(self, index: impl ::core::convert::Into<i32>) -> (i32, crate::unity_engine::keyframe::Keyframe) {
322 unsafe {
323 let __receiver = <AnimationCurve as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
324 let mut __out_0 = ::core::mem::MaybeUninit::<crate::unity_engine::keyframe::Keyframe>::uninit();
325 let __ret = {
326 ::unity::il2cpp_call!((::unity::module_base()+0x2c34df0usize)as*mut u8,i32;
327(AnimationCurve)__receiver,(i32)::core::convert::Into::into(index),(*mut crate::unity_engine::keyframe::Keyframe)__out_0.as_mut_ptr())
328 };
329 (__ret, __out_0.assume_init())
330 }
331 }
332 #[doc = "`GetKey_Injected(i32, *mutcrate::unity_engine::keyframe::Keyframe)` overload"]
333 fn get_key_injected(self, index: impl ::core::convert::Into<i32>) -> crate::unity_engine::keyframe::Keyframe {
334 unsafe {
335 let __receiver = <AnimationCurve as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
336 let mut __out_0 = ::core::mem::MaybeUninit::<crate::unity_engine::keyframe::Keyframe>::uninit();
337 ::unity::il2cpp_call!((::unity::module_base()+0x2c35020usize)as*mut u8,();
338(AnimationCurve)__receiver,(i32)::core::convert::Into::into(index),(*mut crate::unity_engine::keyframe::Keyframe)__out_0.as_mut_ptr());
339 __out_0.assume_init()
340 }
341 }
342}
343
344#[cfg(feature = "unity_engine-animationcurve")]
345impl<__T: IAnimationCurve> IAnimationCurveMethods for __T {}
346
347#[cfg(feature = "unity_engine-animationcurve")]
348impl AnimationCurve {
349 pub fn internal_destroy_method_info() -> &'static ::unity::il2cpp::MethodInfo {
350 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
351 }
352
353 pub fn internal_create_method_info() -> &'static ::unity::il2cpp::MethodInfo {
354 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
355 }
356
357 pub fn internal_equals_method_info() -> &'static ::unity::il2cpp::MethodInfo {
358 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
359 }
360
361 pub fn finalize_method_info() -> &'static ::unity::il2cpp::MethodInfo {
362 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
363 }
364
365 pub fn evaluate_method_info() -> &'static ::unity::il2cpp::MethodInfo {
366 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
367 }
368
369 pub fn get_keys_method_info() -> &'static ::unity::il2cpp::MethodInfo {
370 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
371 }
372
373 pub fn set_keys_method_info() -> &'static ::unity::il2cpp::MethodInfo {
374 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
375 }
376
377 pub fn add_key_method_info() -> &'static ::unity::il2cpp::MethodInfo {
378 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
379 }
380
381 pub fn add_key_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
382 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
383 }
384
385 pub fn add_key_internal_method_info() -> &'static ::unity::il2cpp::MethodInfo {
386 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
387 }
388
389 pub fn move_key_method_info() -> &'static ::unity::il2cpp::MethodInfo {
390 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
391 }
392
393 pub fn remove_key_method_info() -> &'static ::unity::il2cpp::MethodInfo {
394 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[11]
395 }
396
397 pub fn get_item_method_info() -> &'static ::unity::il2cpp::MethodInfo {
398 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[12]
399 }
400
401 pub fn get_length_method_info() -> &'static ::unity::il2cpp::MethodInfo {
402 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[13]
403 }
404
405 pub fn get_key_method_info() -> &'static ::unity::il2cpp::MethodInfo {
406 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[15]
407 }
408
409 pub fn smooth_tangents_method_info() -> &'static ::unity::il2cpp::MethodInfo {
410 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[17]
411 }
412
413 pub fn linear_method_info() -> &'static ::unity::il2cpp::MethodInfo {
414 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[18]
415 }
416
417 pub fn ease_in_out_method_info() -> &'static ::unity::il2cpp::MethodInfo {
418 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[19]
419 }
420
421 pub fn set_pre_wrap_mode_method_info() -> &'static ::unity::il2cpp::MethodInfo {
422 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[20]
423 }
424
425 pub fn set_post_wrap_mode_method_info() -> &'static ::unity::il2cpp::MethodInfo {
426 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[21]
427 }
428
429 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
430 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[22]
431 }
432
433 pub fn ctor_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
434 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[23]
435 }
436
437 pub fn equals_method_info() -> &'static ::unity::il2cpp::MethodInfo {
438 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[24]
439 }
440
441 pub fn equals_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
442 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[25]
443 }
444
445 pub fn get_hash_code_method_info() -> &'static ::unity::il2cpp::MethodInfo {
446 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[26]
447 }
448
449 pub fn add_key_internal_injected_method_info() -> &'static ::unity::il2cpp::MethodInfo {
450 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[27]
451 }
452
453 pub fn move_key_injected_method_info() -> &'static ::unity::il2cpp::MethodInfo {
454 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[28]
455 }
456
457 pub fn get_key_injected_method_info() -> &'static ::unity::il2cpp::MethodInfo {
458 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[29]
459 }
460}
461
462#[cfg(feature = "unity_engine-animationcurve")]
463impl AnimationCurve {
464 #[doc = "Direct (non-virtual) call to `AnimationCurve`'s own `Finalize`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
465 pub unsafe fn finalize(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
466 let __mi = Self::finalize_method_info();
467 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
468 __inner(this.into(), ::core::option::Option::None)
469 }
470
471 #[doc = "Direct (non-virtual) call to `AnimationCurve`'s own `Equals`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
472 pub unsafe fn equals(this: impl ::core::convert::Into<::unity::IlInstance>, o: crate::system::object::Object) -> bool {
473 let __mi = Self::equals_method_info();
474 let __inner: extern "C" fn(::unity::IlInstance, crate::system::object::Object, ::unity::OptionalMethod) -> bool =
475 ::core::mem::transmute(__mi.method_ptr);
476 __inner(this.into(), o, ::core::option::Option::None)
477 }
478
479 #[doc = "Direct (non-virtual) call to `AnimationCurve`'s own `Equals`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
480 pub unsafe fn equals_2(
481 this: impl ::core::convert::Into<::unity::IlInstance>,
482 other: crate::unity_engine::animationcurve::AnimationCurve,
483 ) -> bool {
484 let __mi = Self::equals_2_method_info();
485 let __inner: extern "C" fn(::unity::IlInstance, crate::unity_engine::animationcurve::AnimationCurve, ::unity::OptionalMethod) -> bool =
486 ::core::mem::transmute(__mi.method_ptr);
487 __inner(this.into(), other, ::core::option::Option::None)
488 }
489
490 #[doc = "Direct (non-virtual) call to `AnimationCurve`'s own `GetHashCode`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
491 pub unsafe fn get_hash_code(this: impl ::core::convert::Into<::unity::IlInstance>) -> i32 {
492 let __mi = Self::get_hash_code_method_info();
493 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> i32 = ::core::mem::transmute(__mi.method_ptr);
494 __inner(this.into(), ::core::option::Option::None)
495 }
496}
497
498#[cfg(feature = "unity_engine-animationcurve")]
499impl AnimationCurve {
500 #[doc = "`.ctor(::unity::Array<crate::unity_engine::keyframe::Keyframe>)` — overload selector"]
501 pub fn new(keys: ::unity::Array<crate::unity_engine::keyframe::Keyframe>) -> Self {
502 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
503 panic!(
504 "{}
505::{}
506 failed to instantiate",
507 ::core::stringify!(AnimationCurve),
508 ::core::stringify!(new),
509 )
510 });
511 <Self as IAnimationCurveMethods>::ctor(this, keys);
512 this
513 }
514
515 #[doc = "`.ctor()` — no args"]
516 pub fn new_2() -> Self {
517 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
518 panic!(
519 "{}
520::{}
521 failed to instantiate",
522 ::core::stringify!(AnimationCurve),
523 ::core::stringify!(new_2),
524 )
525 });
526 <Self as IAnimationCurveMethods>::ctor_2(this);
527 this
528 }
529}
530
531#[cfg(feature = "unity_engine-animationcurve")]
532#[doc(hidden)]
533pub mod prelude {
534 pub use super::{AnimationCurve, IAnimationCurve, IAnimationCurveMethods};
535 pub use crate::system::object::IObject;
536 #[cfg(feature = "system-object")]
537 pub use crate::system::object::IObjectMethods;
538}