engage/generated/app/struct_object/
runtimesample.rs1#[cfg(feature = "app-struct_object-runtimesample-types")]
4mod __types {
5 #[allow(unused_imports)] use ::unity::prelude::*;
6
7 use super::*;
8 use crate::{
9 system::object::{IObject, Object},
10 unity_engine::{
11 behaviour::{Behaviour, IBehaviour},
12 component::{Component, IComponent},
13 monobehaviour::{IMonoBehaviour, MonoBehaviour},
14 object_2::{IObject_2, Object_2},
15 },
16 };
17
18 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/struct_object/runtimesample/RuntimeSample.md"))]
19 #[::unity::class(namespace = "App.StructObject", name = "RuntimeSample")]
20 #[parent(crate::unity_engine::monobehaviour::MonoBehaviour)]
21 pub struct RuntimeSample {}
22}
23
24#[cfg(feature = "app-struct_object-runtimesample-types")]
25pub use __types::*;
26
27#[cfg(feature = "app-struct_object-runtimesample")]
28pub trait IRuntimeSampleMethods: IRuntimeSample {
29 #[doc = "`Start()` overload"]
30 fn start(self) -> () {
31 unsafe {
32 let __receiver = <RuntimeSample as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
33 ::unity::il2cpp_call!((::unity::module_base()+0x1ec3c90usize)as*mut u8,();
34(RuntimeSample)__receiver)
35 }
36 }
37 #[doc = "`OnDestroy()` overload"]
38 fn on_destroy(self) -> () {
39 unsafe {
40 let __receiver = <RuntimeSample as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
41 ::unity::il2cpp_call!((::unity::module_base()+0x1ec3ca0usize)as*mut u8,();
42(RuntimeSample)__receiver)
43 }
44 }
45 #[doc = "`Update()` overload"]
46 fn update(self) -> () {
47 unsafe {
48 let __receiver = <RuntimeSample as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
49 ::unity::il2cpp_call!((::unity::module_base()+0x1ec3cb0usize)as*mut u8,();
50(RuntimeSample)__receiver)
51 }
52 }
53 #[doc = "`.ctor()` overload"]
54 fn ctor(self) -> () {
55 unsafe {
56 let __receiver = <RuntimeSample as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
57 ::unity::il2cpp_call!((::unity::module_base()+0x1ec3cc0usize)as*mut u8,();
58(RuntimeSample)__receiver)
59 }
60 }
61}
62
63#[cfg(feature = "app-struct_object-runtimesample")]
64impl<__T: IRuntimeSample> IRuntimeSampleMethods for __T {}
65
66#[cfg(feature = "app-struct_object-runtimesample")]
67impl RuntimeSample {
68 pub fn start_method_info() -> &'static ::unity::il2cpp::MethodInfo {
69 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
70 }
71
72 pub fn on_destroy_method_info() -> &'static ::unity::il2cpp::MethodInfo {
73 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
74 }
75
76 pub fn update_method_info() -> &'static ::unity::il2cpp::MethodInfo {
77 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
78 }
79
80 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
81 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
82 }
83}
84
85#[cfg(feature = "app-struct_object-runtimesample")]
86impl RuntimeSample {
87 #[doc = "`.ctor()` — no args"]
88 pub fn new() -> Self {
89 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
90 panic!(
91 "{}
92::{}
93 failed to instantiate",
94 ::core::stringify!(RuntimeSample),
95 ::core::stringify!(new),
96 )
97 });
98 <Self as IRuntimeSampleMethods>::ctor(this);
99 this
100 }
101}
102
103#[cfg(feature = "app-struct_object-runtimesample")]
104#[doc(hidden)]
105pub mod prelude {
106 pub use super::{IRuntimeSample, IRuntimeSampleMethods, RuntimeSample};
107 #[cfg(feature = "system-object")]
108 pub use crate::system::object::IObjectMethods;
109 #[cfg(feature = "unity_engine-behaviour")]
110 pub use crate::unity_engine::behaviour::IBehaviourMethods;
111 #[cfg(feature = "unity_engine-component")]
112 pub use crate::unity_engine::component::IComponentMethods;
113 #[cfg(feature = "unity_engine-monobehaviour")]
114 pub use crate::unity_engine::monobehaviour::IMonoBehaviourMethods;
115 #[cfg(feature = "unity_engine-object_2")]
116 pub use crate::unity_engine::object_2::IObject_2Methods;
117 pub use crate::{
118 system::object::IObject,
119 unity_engine::{behaviour::IBehaviour, component::IComponent, monobehaviour::IMonoBehaviour, object_2::IObject_2},
120 };
121}