Skip to main content

engage/generated/unity_engine/timeline/
trackcliptypeattribute.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "unity_engine-timeline-trackcliptypeattribute-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/trackcliptypeattribute/TrackClipTypeAttribute.md"))]
10    #[::unity::class(namespace = "UnityEngine.Timeline", name = "TrackClipTypeAttribute")]
11    pub struct TrackClipTypeAttribute {
12        #[offset(16)]
13        #[rename(name = "inspectedType")]
14        pub inspected_type: ::unity::SystemType,
15        #[offset(24)]
16        #[rename(name = "allowAutoCreate")]
17        pub allow_auto_create: bool,
18    }
19}
20
21#[cfg(feature = "unity_engine-timeline-trackcliptypeattribute-types")]
22pub use __types::*;
23
24#[cfg(feature = "unity_engine-timeline-trackcliptypeattribute")]
25pub trait ITrackClipTypeAttributeMethods: ITrackClipTypeAttribute {
26    #[doc = "`.ctor(::unity::SystemType)` overload"]
27    fn ctor(self, clip_class: impl ::core::convert::Into<::unity::SystemType>) -> () {
28        unsafe {
29            let __receiver =
30                <TrackClipTypeAttribute as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
31            ::unity::il2cpp_call!((::unity::module_base()+0x35ea640usize)as*mut u8,();
32(TrackClipTypeAttribute)__receiver,(::unity::SystemType)::core::convert::Into::into(clip_class))
33        }
34    }
35    #[doc = "`.ctor(::unity::SystemType, bool)` overload"]
36    fn ctor_2(self, clip_class: impl ::core::convert::Into<::unity::SystemType>, allow_auto_create: impl ::core::convert::Into<bool>) -> () {
37        unsafe {
38            let __receiver =
39                <TrackClipTypeAttribute as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
40            ::unity::il2cpp_call!((::unity::module_base()+0x35ea680usize)as*mut u8,();
41(TrackClipTypeAttribute)__receiver,(::unity::SystemType)::core::convert::Into::into(clip_class),(bool)::core::convert::Into::into(allow_auto_create))
42        }
43    }
44}
45
46#[cfg(feature = "unity_engine-timeline-trackcliptypeattribute")]
47impl<__T: ITrackClipTypeAttribute> ITrackClipTypeAttributeMethods for __T {}
48
49#[cfg(feature = "unity_engine-timeline-trackcliptypeattribute")]
50impl TrackClipTypeAttribute {
51    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
52        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
53    }
54
55    pub fn ctor_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
56        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
57    }
58}
59
60#[cfg(feature = "unity_engine-timeline-trackcliptypeattribute")]
61impl TrackClipTypeAttribute {
62    #[doc = "`.ctor(::unity::SystemType)` — overload selector"]
63    pub fn new(clip_class: ::unity::SystemType) -> Self {
64        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
65            panic!(
66                "{}
67::{}
68 failed to instantiate",
69                ::core::stringify!(TrackClipTypeAttribute),
70                ::core::stringify!(new),
71            )
72        });
73        <Self as ITrackClipTypeAttributeMethods>::ctor(this, clip_class);
74        this
75    }
76
77    #[doc = "`.ctor(::unity::SystemType, bool)` — overload selector"]
78    pub fn new_2(clip_class: ::unity::SystemType, allow_auto_create: bool) -> Self {
79        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
80            panic!(
81                "{}
82::{}
83 failed to instantiate",
84                ::core::stringify!(TrackClipTypeAttribute),
85                ::core::stringify!(new_2),
86            )
87        });
88        <Self as ITrackClipTypeAttributeMethods>::ctor_2(this, clip_class, allow_auto_create);
89        this
90    }
91}
92
93#[cfg(feature = "unity_engine-timeline-trackcliptypeattribute")]
94#[doc(hidden)]
95pub mod prelude {
96    pub use super::{ITrackClipTypeAttribute, ITrackClipTypeAttributeMethods, TrackClipTypeAttribute};
97}