1#[cfg(feature = "app-curve-types")]
4mod __types {
5 #[allow(unused_imports)] use ::unity::prelude::*;
6
7 use super::*;
8 use crate::system::{
9 object::{IObject, Object},
10 r#enum::{Enum, IEnum},
11 valuetype::{IValueType, ValueType},
12 };
13
14 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/curve/Curve_Type.md"))]
15 #[repr(C)]
16 #[derive(::core::clone::Clone, ::core::marker::Copy, ::core::fmt::Debug, ::core::cmp::PartialEq, ::core::cmp::Eq)]
17 pub struct Curve_Type {
18 pub value: i32,
19 }
20 impl ::unity::ClassIdentity for Curve_Type {
21 const NAME: &'static str = "Curve.Type";
22 const NAMESPACE: &'static str = "App";
23
24 fn class() -> ::unity::Class {
25 static CACHE: ::std::sync::OnceLock<::unity::Class> = ::std::sync::OnceLock::new();
26 *CACHE.get_or_init(|| ::unity::Class::lookup(Self::NAMESPACE, Self::NAME))
27 }
28 }
29 impl ::unity::IlType for Curve_Type {
30 fn il_type() -> &'static ::unity::il2cpp::Il2CppType {
31 &<Self as ::unity::ClassIdentity>::class().raw()._1.byval_arg
32 }
33 }
34 impl Curve_Type {
35 pub fn linear() -> Self {
36 Self { value: 0 }
37 }
38
39 pub fn accel() -> Self {
40 Self { value: 1 }
41 }
42
43 pub fn decel() -> Self {
44 Self { value: 2 }
45 }
46
47 pub fn accel_decel() -> Self {
48 Self { value: 3 }
49 }
50
51 pub fn decel_accel() -> Self {
52 Self { value: 4 }
53 }
54
55 pub fn linear_decel() -> Self {
56 Self { value: 5 }
57 }
58
59 pub fn linear_accel() -> Self {
60 Self { value: 6 }
61 }
62
63 pub fn decel_linear() -> Self {
64 Self { value: 7 }
65 }
66
67 pub fn accel_linear() -> Self {
68 Self { value: 8 }
69 }
70 }
71
72 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/curve/Curve.md"))]
73 #[::unity::class(namespace = "App", name = "Curve")]
74 #[parent(crate::system::object::Object)]
75 pub struct Curve {}
76}
77
78#[cfg(feature = "app-curve-types")]
79pub use __types::*;
80
81#[cfg(feature = "app-curve")]
82impl Curve {
83 #[doc = "`Calc(crate::app::curve::Curve_Type, f32, f32, f32, f32, i32)` overload"]
84 pub fn calc(
85 r#type: impl ::core::convert::Into<crate::app::curve::Curve_Type>,
86 prev: impl ::core::convert::Into<f32>,
87 next: impl ::core::convert::Into<f32>,
88 now: impl ::core::convert::Into<f32>,
89 term: impl ::core::convert::Into<f32>,
90 num: impl ::core::convert::Into<i32>,
91 ) -> f32 {
92 unsafe {
93 ::unity::il2cpp_call!((::unity::module_base()+0x2545ba0usize)as*mut u8,f32;
94(crate::app::curve::Curve_Type)::core::convert::Into::into(r#type),(f32)::core::convert::Into::into(prev),(f32)::core::convert::Into::into(next),(f32)::core::convert::Into::into(now),(f32)::core::convert::Into::into(term),(i32)::core::convert::Into::into(num))
95 }
96 }
97
98 #[doc = "`Lerp(f32, f32, f32, f32, i32)` overload"]
99 pub fn lerp(
100 prev: impl ::core::convert::Into<f32>,
101 next: impl ::core::convert::Into<f32>,
102 now: impl ::core::convert::Into<f32>,
103 term: impl ::core::convert::Into<f32>,
104 unused: impl ::core::convert::Into<i32>,
105 ) -> f32 {
106 unsafe {
107 ::unity::il2cpp_call!((::unity::module_base()+0x2546200usize)as*mut u8,f32;
108(f32)::core::convert::Into::into(prev),(f32)::core::convert::Into::into(next),(f32)::core::convert::Into::into(now),(f32)::core::convert::Into::into(term),(i32)::core::convert::Into::into(unused))
109 }
110 }
111
112 #[doc = "`Lerp(crate::unity_engine::vector3::Vector3, crate::unity_engine::vector3::Vector3, f32, f32, i32)` overload"]
113 pub fn lerp_2(
114 prev: impl ::core::convert::Into<crate::unity_engine::vector3::Vector3>,
115 next: impl ::core::convert::Into<crate::unity_engine::vector3::Vector3>,
116 now: impl ::core::convert::Into<f32>,
117 term: impl ::core::convert::Into<f32>,
118 unused: impl ::core::convert::Into<i32>,
119 ) -> crate::unity_engine::vector3::Vector3 {
120 unsafe {
121 ::unity::il2cpp_call!((::unity::module_base()+0x2546220usize)as*mut u8,crate::unity_engine::vector3::Vector3;
122(crate::unity_engine::vector3::Vector3)::core::convert::Into::into(prev),(crate::unity_engine::vector3::Vector3)::core::convert::Into::into(next),(f32)::core::convert::Into::into(now),(f32)::core::convert::Into::into(term),(i32)::core::convert::Into::into(unused))
123 }
124 }
125
126 #[doc = "`Lerp(crate::unity_engine::color::Color, crate::unity_engine::color::Color, f32, f32, i32)` overload"]
127 pub fn lerp_3(
128 prev: impl ::core::convert::Into<crate::unity_engine::color::Color>,
129 next: impl ::core::convert::Into<crate::unity_engine::color::Color>,
130 now: impl ::core::convert::Into<f32>,
131 term: impl ::core::convert::Into<f32>,
132 unused: impl ::core::convert::Into<i32>,
133 ) -> crate::unity_engine::color::Color {
134 unsafe {
135 ::unity::il2cpp_call!((::unity::module_base()+0x2546260usize)as*mut u8,crate::unity_engine::color::Color;
136(crate::unity_engine::color::Color)::core::convert::Into::into(prev),(crate::unity_engine::color::Color)::core::convert::Into::into(next),(f32)::core::convert::Into::into(now),(f32)::core::convert::Into::into(term),(i32)::core::convert::Into::into(unused))
137 }
138 }
139
140 #[doc = "`Accel(f32, f32, f32, f32, i32)` overload"]
141 pub fn accel(
142 prev: impl ::core::convert::Into<f32>,
143 next: impl ::core::convert::Into<f32>,
144 now: impl ::core::convert::Into<f32>,
145 term: impl ::core::convert::Into<f32>,
146 num: impl ::core::convert::Into<i32>,
147 ) -> f32 {
148 unsafe {
149 ::unity::il2cpp_call!((::unity::module_base()+0x25462b0usize)as*mut u8,f32;
150(f32)::core::convert::Into::into(prev),(f32)::core::convert::Into::into(next),(f32)::core::convert::Into::into(now),(f32)::core::convert::Into::into(term),(i32)::core::convert::Into::into(num))
151 }
152 }
153
154 #[doc = "`Decel(f32, f32, f32, f32, i32)` overload"]
155 pub fn decel(
156 prev: impl ::core::convert::Into<f32>,
157 next: impl ::core::convert::Into<f32>,
158 now: impl ::core::convert::Into<f32>,
159 term: impl ::core::convert::Into<f32>,
160 num: impl ::core::convert::Into<i32>,
161 ) -> f32 {
162 unsafe {
163 ::unity::il2cpp_call!((::unity::module_base()+0x2546340usize)as*mut u8,f32;
164(f32)::core::convert::Into::into(prev),(f32)::core::convert::Into::into(next),(f32)::core::convert::Into::into(now),(f32)::core::convert::Into::into(term),(i32)::core::convert::Into::into(num))
165 }
166 }
167
168 #[doc = "`AcDecel(f32, f32, f32, f32, i32)` overload"]
169 pub fn ac_decel(
170 prev: impl ::core::convert::Into<f32>,
171 next: impl ::core::convert::Into<f32>,
172 now: impl ::core::convert::Into<f32>,
173 term: impl ::core::convert::Into<f32>,
174 num: impl ::core::convert::Into<i32>,
175 ) -> f32 {
176 unsafe {
177 ::unity::il2cpp_call!((::unity::module_base()+0x25463e0usize)as*mut u8,f32;
178(f32)::core::convert::Into::into(prev),(f32)::core::convert::Into::into(next),(f32)::core::convert::Into::into(now),(f32)::core::convert::Into::into(term),(i32)::core::convert::Into::into(num))
179 }
180 }
181
182 #[doc = "`DecAccel(f32, f32, f32, f32, i32)` overload"]
183 pub fn dec_accel(
184 prev: impl ::core::convert::Into<f32>,
185 next: impl ::core::convert::Into<f32>,
186 now: impl ::core::convert::Into<f32>,
187 term: impl ::core::convert::Into<f32>,
188 num: impl ::core::convert::Into<i32>,
189 ) -> f32 {
190 unsafe {
191 ::unity::il2cpp_call!((::unity::module_base()+0x2546530usize)as*mut u8,f32;
192(f32)::core::convert::Into::into(prev),(f32)::core::convert::Into::into(next),(f32)::core::convert::Into::into(now),(f32)::core::convert::Into::into(term),(i32)::core::convert::Into::into(num))
193 }
194 }
195
196 #[doc = "`LerpDecel(f32, f32, f32, f32, i32)` overload"]
197 pub fn lerp_decel(
198 prev: impl ::core::convert::Into<f32>,
199 next: impl ::core::convert::Into<f32>,
200 now: impl ::core::convert::Into<f32>,
201 term: impl ::core::convert::Into<f32>,
202 num: impl ::core::convert::Into<i32>,
203 ) -> f32 {
204 unsafe {
205 ::unity::il2cpp_call!((::unity::module_base()+0x2546680usize)as*mut u8,f32;
206(f32)::core::convert::Into::into(prev),(f32)::core::convert::Into::into(next),(f32)::core::convert::Into::into(now),(f32)::core::convert::Into::into(term),(i32)::core::convert::Into::into(num))
207 }
208 }
209
210 #[doc = "`LerpAccel(f32, f32, f32, f32, i32)` overload"]
211 pub fn lerp_accel(
212 prev: impl ::core::convert::Into<f32>,
213 next: impl ::core::convert::Into<f32>,
214 now: impl ::core::convert::Into<f32>,
215 term: impl ::core::convert::Into<f32>,
216 num: impl ::core::convert::Into<i32>,
217 ) -> f32 {
218 unsafe {
219 ::unity::il2cpp_call!((::unity::module_base()+0x2546740usize)as*mut u8,f32;
220(f32)::core::convert::Into::into(prev),(f32)::core::convert::Into::into(next),(f32)::core::convert::Into::into(now),(f32)::core::convert::Into::into(term),(i32)::core::convert::Into::into(num))
221 }
222 }
223
224 #[doc = "`DecelLerp(f32, f32, f32, f32, i32)` overload"]
225 pub fn decel_lerp(
226 prev: impl ::core::convert::Into<f32>,
227 next: impl ::core::convert::Into<f32>,
228 now: impl ::core::convert::Into<f32>,
229 term: impl ::core::convert::Into<f32>,
230 num: impl ::core::convert::Into<i32>,
231 ) -> f32 {
232 unsafe {
233 ::unity::il2cpp_call!((::unity::module_base()+0x25467f0usize)as*mut u8,f32;
234(f32)::core::convert::Into::into(prev),(f32)::core::convert::Into::into(next),(f32)::core::convert::Into::into(now),(f32)::core::convert::Into::into(term),(i32)::core::convert::Into::into(num))
235 }
236 }
237
238 #[doc = "`AccelLerp(f32, f32, f32, f32, i32)` overload"]
239 pub fn accel_lerp(
240 prev: impl ::core::convert::Into<f32>,
241 next: impl ::core::convert::Into<f32>,
242 now: impl ::core::convert::Into<f32>,
243 term: impl ::core::convert::Into<f32>,
244 num: impl ::core::convert::Into<i32>,
245 ) -> f32 {
246 unsafe {
247 ::unity::il2cpp_call!((::unity::module_base()+0x25468b0usize)as*mut u8,f32;
248(f32)::core::convert::Into::into(prev),(f32)::core::convert::Into::into(next),(f32)::core::convert::Into::into(now),(f32)::core::convert::Into::into(term),(i32)::core::convert::Into::into(num))
249 }
250 }
251
252 #[doc = "`LerpSyncTime(f32, f32, f32, f32, i32)` overload"]
253 pub fn lerp_sync_time(
254 prev: impl ::core::convert::Into<f32>,
255 next: impl ::core::convert::Into<f32>,
256 now: impl ::core::convert::Into<f32>,
257 term: impl ::core::convert::Into<f32>,
258 unused: impl ::core::convert::Into<i32>,
259 ) -> f32 {
260 unsafe {
261 ::unity::il2cpp_call!((::unity::module_base()+0x2546960usize)as*mut u8,f32;
262(f32)::core::convert::Into::into(prev),(f32)::core::convert::Into::into(next),(f32)::core::convert::Into::into(now),(f32)::core::convert::Into::into(term),(i32)::core::convert::Into::into(unused))
263 }
264 }
265
266 #[doc = "`LerpSyncTime(crate::unity_engine::vector3::Vector3, crate::unity_engine::vector3::Vector3, f32, f32, i32)` overload"]
267 pub fn lerp_sync_time_2(
268 prev: impl ::core::convert::Into<crate::unity_engine::vector3::Vector3>,
269 next: impl ::core::convert::Into<crate::unity_engine::vector3::Vector3>,
270 now: impl ::core::convert::Into<f32>,
271 term: impl ::core::convert::Into<f32>,
272 unused: impl ::core::convert::Into<i32>,
273 ) -> crate::unity_engine::vector3::Vector3 {
274 unsafe {
275 ::unity::il2cpp_call!((::unity::module_base()+0x2546a20usize)as*mut u8,crate::unity_engine::vector3::Vector3;
276(crate::unity_engine::vector3::Vector3)::core::convert::Into::into(prev),(crate::unity_engine::vector3::Vector3)::core::convert::Into::into(next),(f32)::core::convert::Into::into(now),(f32)::core::convert::Into::into(term),(i32)::core::convert::Into::into(unused))
277 }
278 }
279
280 #[doc = "`LerpSyncTime(crate::unity_engine::color::Color, crate::unity_engine::color::Color, f32, f32, i32)` overload"]
281 pub fn lerp_sync_time_3(
282 prev: impl ::core::convert::Into<crate::unity_engine::color::Color>,
283 next: impl ::core::convert::Into<crate::unity_engine::color::Color>,
284 now: impl ::core::convert::Into<f32>,
285 term: impl ::core::convert::Into<f32>,
286 unused: impl ::core::convert::Into<i32>,
287 ) -> crate::unity_engine::color::Color {
288 unsafe {
289 ::unity::il2cpp_call!((::unity::module_base()+0x2546be0usize)as*mut u8,crate::unity_engine::color::Color;
290(crate::unity_engine::color::Color)::core::convert::Into::into(prev),(crate::unity_engine::color::Color)::core::convert::Into::into(next),(f32)::core::convert::Into::into(now),(f32)::core::convert::Into::into(term),(i32)::core::convert::Into::into(unused))
291 }
292 }
293
294 #[doc = "`Hermite(crate::unity_engine::vector3::Vector3, crate::unity_engine::vector3::Vector3, crate::unity_engine::vector3::Vector3, crate::unity_engine::vector3::Vector3, f32)` overload"]
295 pub fn hermite(
296 v0: impl ::core::convert::Into<crate::unity_engine::vector3::Vector3>,
297 v1: impl ::core::convert::Into<crate::unity_engine::vector3::Vector3>,
298 v2: impl ::core::convert::Into<crate::unity_engine::vector3::Vector3>,
299 v3: impl ::core::convert::Into<crate::unity_engine::vector3::Vector3>,
300 t: impl ::core::convert::Into<f32>,
301 ) -> crate::unity_engine::vector3::Vector3 {
302 unsafe {
303 ::unity::il2cpp_call!((::unity::module_base()+0x2546e20usize)as*mut u8,crate::unity_engine::vector3::Vector3;
304(crate::unity_engine::vector3::Vector3)::core::convert::Into::into(v0),(crate::unity_engine::vector3::Vector3)::core::convert::Into::into(v1),(crate::unity_engine::vector3::Vector3)::core::convert::Into::into(v2),(crate::unity_engine::vector3::Vector3)::core::convert::Into::into(v3),(f32)::core::convert::Into::into(t))
305 }
306 }
307
308 #[doc = "`Hermite(crate::unity_engine::vector2::Vector2, crate::unity_engine::vector2::Vector2, crate::unity_engine::vector2::Vector2, crate::unity_engine::vector2::Vector2, f32)` overload"]
309 pub fn hermite_2(
310 v0: impl ::core::convert::Into<crate::unity_engine::vector2::Vector2>,
311 v1: impl ::core::convert::Into<crate::unity_engine::vector2::Vector2>,
312 v2: impl ::core::convert::Into<crate::unity_engine::vector2::Vector2>,
313 v3: impl ::core::convert::Into<crate::unity_engine::vector2::Vector2>,
314 t: impl ::core::convert::Into<f32>,
315 ) -> crate::unity_engine::vector2::Vector2 {
316 unsafe {
317 ::unity::il2cpp_call!((::unity::module_base()+0x2546ec0usize)as*mut u8,crate::unity_engine::vector2::Vector2;
318(crate::unity_engine::vector2::Vector2)::core::convert::Into::into(v0),(crate::unity_engine::vector2::Vector2)::core::convert::Into::into(v1),(crate::unity_engine::vector2::Vector2)::core::convert::Into::into(v2),(crate::unity_engine::vector2::Vector2)::core::convert::Into::into(v3),(f32)::core::convert::Into::into(t))
319 }
320 }
321
322 #[doc = "`CatmullRom(crate::unity_engine::vector3::Vector3, crate::unity_engine::vector3::Vector3, crate::unity_engine::vector3::Vector3, crate::unity_engine::vector3::Vector3, f32)` overload"]
323 pub fn catmull_rom(
324 v0: impl ::core::convert::Into<crate::unity_engine::vector3::Vector3>,
325 v1: impl ::core::convert::Into<crate::unity_engine::vector3::Vector3>,
326 v2: impl ::core::convert::Into<crate::unity_engine::vector3::Vector3>,
327 v3: impl ::core::convert::Into<crate::unity_engine::vector3::Vector3>,
328 t: impl ::core::convert::Into<f32>,
329 ) -> crate::unity_engine::vector3::Vector3 {
330 unsafe {
331 ::unity::il2cpp_call!((::unity::module_base()+0x2546f40usize)as*mut u8,crate::unity_engine::vector3::Vector3;
332(crate::unity_engine::vector3::Vector3)::core::convert::Into::into(v0),(crate::unity_engine::vector3::Vector3)::core::convert::Into::into(v1),(crate::unity_engine::vector3::Vector3)::core::convert::Into::into(v2),(crate::unity_engine::vector3::Vector3)::core::convert::Into::into(v3),(f32)::core::convert::Into::into(t))
333 }
334 }
335
336 #[doc = "`CatmullRom(crate::unity_engine::vector2::Vector2, crate::unity_engine::vector2::Vector2, crate::unity_engine::vector2::Vector2, crate::unity_engine::vector2::Vector2, f32)` overload"]
337 pub fn catmull_rom_2(
338 v0: impl ::core::convert::Into<crate::unity_engine::vector2::Vector2>,
339 v1: impl ::core::convert::Into<crate::unity_engine::vector2::Vector2>,
340 v2: impl ::core::convert::Into<crate::unity_engine::vector2::Vector2>,
341 v3: impl ::core::convert::Into<crate::unity_engine::vector2::Vector2>,
342 t: impl ::core::convert::Into<f32>,
343 ) -> crate::unity_engine::vector2::Vector2 {
344 unsafe {
345 ::unity::il2cpp_call!((::unity::module_base()+0x2547000usize)as*mut u8,crate::unity_engine::vector2::Vector2;
346(crate::unity_engine::vector2::Vector2)::core::convert::Into::into(v0),(crate::unity_engine::vector2::Vector2)::core::convert::Into::into(v1),(crate::unity_engine::vector2::Vector2)::core::convert::Into::into(v2),(crate::unity_engine::vector2::Vector2)::core::convert::Into::into(v3),(f32)::core::convert::Into::into(t))
347 }
348 }
349}
350
351#[cfg(feature = "app-curve")]
352pub trait ICurveMethods: ICurve {
353 #[doc = "`.ctor()` overload"]
354 fn ctor(self) -> () {
355 unsafe {
356 let __receiver = <Curve as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
357 ::unity::il2cpp_call!((::unity::module_base()+0x2547090usize)as*mut u8,();
358(Curve)__receiver)
359 }
360 }
361}
362
363#[cfg(feature = "app-curve")]
364impl<__T: ICurve> ICurveMethods for __T {}
365
366#[cfg(feature = "app-curve")]
367impl Curve {
368 pub fn calc_method_info() -> &'static ::unity::il2cpp::MethodInfo {
369 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
370 }
371
372 pub fn lerp_method_info() -> &'static ::unity::il2cpp::MethodInfo {
373 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
374 }
375
376 pub fn lerp_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
377 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
378 }
379
380 pub fn lerp_3_method_info() -> &'static ::unity::il2cpp::MethodInfo {
381 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
382 }
383
384 pub fn accel_method_info() -> &'static ::unity::il2cpp::MethodInfo {
385 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
386 }
387
388 pub fn decel_method_info() -> &'static ::unity::il2cpp::MethodInfo {
389 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
390 }
391
392 pub fn ac_decel_method_info() -> &'static ::unity::il2cpp::MethodInfo {
393 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
394 }
395
396 pub fn dec_accel_method_info() -> &'static ::unity::il2cpp::MethodInfo {
397 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
398 }
399
400 pub fn lerp_decel_method_info() -> &'static ::unity::il2cpp::MethodInfo {
401 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
402 }
403
404 pub fn lerp_accel_method_info() -> &'static ::unity::il2cpp::MethodInfo {
405 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
406 }
407
408 pub fn decel_lerp_method_info() -> &'static ::unity::il2cpp::MethodInfo {
409 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
410 }
411
412 pub fn accel_lerp_method_info() -> &'static ::unity::il2cpp::MethodInfo {
413 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[11]
414 }
415
416 pub fn lerp_sync_time_method_info() -> &'static ::unity::il2cpp::MethodInfo {
417 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[12]
418 }
419
420 pub fn lerp_sync_time_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
421 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[13]
422 }
423
424 pub fn lerp_sync_time_3_method_info() -> &'static ::unity::il2cpp::MethodInfo {
425 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[14]
426 }
427
428 pub fn hermite_method_info() -> &'static ::unity::il2cpp::MethodInfo {
429 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[15]
430 }
431
432 pub fn hermite_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
433 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[16]
434 }
435
436 pub fn catmull_rom_method_info() -> &'static ::unity::il2cpp::MethodInfo {
437 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[17]
438 }
439
440 pub fn catmull_rom_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
441 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[18]
442 }
443
444 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
445 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[19]
446 }
447}
448
449#[cfg(feature = "app-curve")]
450impl Curve {
451 #[doc = "`.ctor()` — no args"]
452 pub fn new() -> Self {
453 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
454 panic!(
455 "{}
456::{}
457 failed to instantiate",
458 ::core::stringify!(Curve),
459 ::core::stringify!(new),
460 )
461 });
462 <Self as ICurveMethods>::ctor(this);
463 this
464 }
465}
466
467#[cfg(feature = "app-curve")]
468#[doc(hidden)]
469pub mod prelude {
470 pub use super::{Curve, Curve_Type, ICurve, ICurveMethods};
471 #[cfg(feature = "system-object")]
472 pub use crate::system::object::IObjectMethods;
473 #[cfg(feature = "system-enum")]
474 pub use crate::system::r#enum::IEnumMethods;
475 #[cfg(feature = "system-valuetype")]
476 pub use crate::system::valuetype::IValueTypeMethods;
477 pub use crate::system::{object::IObject, r#enum::IEnum, valuetype::IValueType};
478}