engage/generated/unity_engine/timeline/
supportschildtracksattribute.rs1#[cfg(feature = "unity_engine-timeline-supportschildtracksattribute-types")]
4mod __types {
5 #[allow(unused_imports)] use ::unity::prelude::*;
6
7 use super::*;
8
9 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/unity_engine/timeline/supportschildtracksattribute/SupportsChildTracksAttribute.md"))]
10 #[::unity::class(namespace = "UnityEngine.Timeline", name = "SupportsChildTracksAttribute")]
11 pub struct SupportsChildTracksAttribute {
12 #[offset(16)]
13 #[rename(name = "childType")]
14 pub child_type: ::unity::SystemType,
15 #[offset(24)]
16 #[rename(name = "levels")]
17 pub levels: i32,
18 }
19}
20
21#[cfg(feature = "unity_engine-timeline-supportschildtracksattribute-types")]
22pub use __types::*;
23
24#[cfg(feature = "unity_engine-timeline-supportschildtracksattribute")]
25pub trait ISupportsChildTracksAttributeMethods: ISupportsChildTracksAttribute {
26 #[doc = "`.ctor(::unity::SystemType, i32)` overload"]
27 fn ctor(self, child_type: impl ::core::convert::Into<::unity::SystemType>, levels: impl ::core::convert::Into<i32>) -> () {
28 unsafe {
29 let __receiver =
30 <SupportsChildTracksAttribute as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
31 ::unity::il2cpp_call!((::unity::module_base()+0x35db3c0usize)as*mut u8,();
32(SupportsChildTracksAttribute)__receiver,(::unity::SystemType)::core::convert::Into::into(child_type),(i32)::core::convert::Into::into(levels))
33 }
34 }
35}
36
37#[cfg(feature = "unity_engine-timeline-supportschildtracksattribute")]
38impl<__T: ISupportsChildTracksAttribute> ISupportsChildTracksAttributeMethods for __T {}
39
40#[cfg(feature = "unity_engine-timeline-supportschildtracksattribute")]
41impl SupportsChildTracksAttribute {
42 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
43 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
44 }
45}
46
47#[cfg(feature = "unity_engine-timeline-supportschildtracksattribute")]
48impl SupportsChildTracksAttribute {
49 #[doc = "`.ctor(::unity::SystemType, i32)` — overload selector"]
50 pub fn new(child_type: ::unity::SystemType, levels: i32) -> Self {
51 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
52 panic!(
53 "{}
54::{}
55 failed to instantiate",
56 ::core::stringify!(SupportsChildTracksAttribute),
57 ::core::stringify!(new),
58 )
59 });
60 <Self as ISupportsChildTracksAttributeMethods>::ctor(this, child_type, levels);
61 this
62 }
63}
64
65#[cfg(feature = "unity_engine-timeline-supportschildtracksattribute")]
66#[doc(hidden)]
67pub mod prelude {
68 pub use super::{ISupportsChildTracksAttribute, ISupportsChildTracksAttributeMethods, SupportsChildTracksAttribute};
69}