engage/generated/app/
resourceanimatorcontroller.rs1#[cfg(feature = "app-resourceanimatorcontroller-types")]
4mod __types {
5 #[allow(unused_imports)] use ::unity::prelude::*;
6
7 use super::*;
8 use crate::{
9 app::{
10 resourcehandle_2::{IResourceHandle_2, ResourceHandle_2},
11 tresourcehandle_1::{ITResourceHandle_1, TResourceHandle_1},
12 },
13 system::object::{IObject, Object},
14 };
15
16 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/resourceanimatorcontroller/ResourceAnimatorController.md"))]
17 #[::unity::class(namespace = "App", name = "ResourceAnimatorController")]
18 #[parent(crate::app::tresourcehandle_1::TResourceHandle_1<crate::unity_engine::runtimeanimatorcontroller::RuntimeAnimatorController>)]
19 pub struct ResourceAnimatorController {}
20}
21
22#[cfg(feature = "app-resourceanimatorcontroller-types")]
23pub use __types::*;
24
25#[cfg(feature = "app-resourceanimatorcontroller")]
26pub trait IResourceAnimatorControllerMethods: IResourceAnimatorController {
27 #[doc = "`.ctor()` overload"]
28 fn ctor(self) -> () {
29 unsafe {
30 let __receiver =
31 <ResourceAnimatorController as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
32 ::unity::il2cpp_call!((::unity::module_base()+0x2013460usize)as*mut u8,();
33(ResourceAnimatorController)__receiver)
34 }
35 }
36}
37
38#[cfg(feature = "app-resourceanimatorcontroller")]
39impl<__T: IResourceAnimatorController> IResourceAnimatorControllerMethods for __T {}
40
41#[cfg(feature = "app-resourceanimatorcontroller")]
42impl ResourceAnimatorController {
43 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
44 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
45 }
46}
47
48#[cfg(feature = "app-resourceanimatorcontroller")]
49impl ResourceAnimatorController {
50 #[doc = "`.ctor()` — no args"]
51 pub fn new() -> Self {
52 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
53 panic!(
54 "{}
55::{}
56 failed to instantiate",
57 ::core::stringify!(ResourceAnimatorController),
58 ::core::stringify!(new),
59 )
60 });
61 <Self as IResourceAnimatorControllerMethods>::ctor(this);
62 this
63 }
64}
65
66#[cfg(feature = "app-resourceanimatorcontroller")]
67#[doc(hidden)]
68pub mod prelude {
69 pub use super::{IResourceAnimatorController, IResourceAnimatorControllerMethods, ResourceAnimatorController};
70 #[cfg(feature = "app-resourcehandle_2")]
71 pub use crate::app::resourcehandle_2::IResourceHandle_2Methods;
72 #[cfg(feature = "app-tresourcehandle_1")]
73 pub use crate::app::tresourcehandle_1::ITResourceHandle_1Methods;
74 #[cfg(feature = "system-object")]
75 pub use crate::system::object::IObjectMethods;
76 pub use crate::{
77 app::{resourcehandle_2::IResourceHandle_2, tresourcehandle_1::ITResourceHandle_1},
78 system::object::IObject,
79 };
80}