engage/generated/app/water/
watereditor.rs1#[cfg(feature = "app-water-watereditor-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/water/watereditor/WaterEditor.md"))]
19 #[::unity::class(namespace = "App.Water", name = "WaterEditor")]
20 #[parent(crate::unity_engine::monobehaviour::MonoBehaviour)]
21 pub struct WaterEditor {}
22}
23
24#[cfg(feature = "app-water-watereditor-types")]
25pub use __types::*;
26
27#[cfg(feature = "app-water-watereditor")]
28pub trait IWaterEditorMethods: IWaterEditor {
29 #[doc = "`Start()` overload"]
30 fn start(self) -> () {
31 unsafe {
32 let __receiver = <WaterEditor as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
33 ::unity::il2cpp_call!((::unity::module_base()+0x21c4b50usize)as*mut u8,();
34(WaterEditor)__receiver)
35 }
36 }
37 #[doc = "`.ctor()` overload"]
38 fn ctor(self) -> () {
39 unsafe {
40 let __receiver = <WaterEditor as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
41 ::unity::il2cpp_call!((::unity::module_base()+0x21c4e50usize)as*mut u8,();
42(WaterEditor)__receiver)
43 }
44 }
45}
46
47#[cfg(feature = "app-water-watereditor")]
48impl<__T: IWaterEditor> IWaterEditorMethods for __T {}
49
50#[cfg(feature = "app-water-watereditor")]
51impl WaterEditor {
52 pub fn start_method_info() -> &'static ::unity::il2cpp::MethodInfo {
53 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
54 }
55
56 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
57 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
58 }
59}
60
61#[cfg(feature = "app-water-watereditor")]
62impl WaterEditor {
63 #[doc = "`.ctor()` — no args"]
64 pub fn new() -> Self {
65 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
66 panic!(
67 "{}
68::{}
69 failed to instantiate",
70 ::core::stringify!(WaterEditor),
71 ::core::stringify!(new),
72 )
73 });
74 <Self as IWaterEditorMethods>::ctor(this);
75 this
76 }
77}
78
79#[cfg(feature = "app-water-watereditor")]
80#[doc(hidden)]
81pub mod prelude {
82 pub use super::{IWaterEditor, IWaterEditorMethods, WaterEditor};
83 #[cfg(feature = "system-object")]
84 pub use crate::system::object::IObjectMethods;
85 #[cfg(feature = "unity_engine-behaviour")]
86 pub use crate::unity_engine::behaviour::IBehaviourMethods;
87 #[cfg(feature = "unity_engine-component")]
88 pub use crate::unity_engine::component::IComponentMethods;
89 #[cfg(feature = "unity_engine-monobehaviour")]
90 pub use crate::unity_engine::monobehaviour::IMonoBehaviourMethods;
91 #[cfg(feature = "unity_engine-object_2")]
92 pub use crate::unity_engine::object_2::IObject_2Methods;
93 pub use crate::{
94 system::object::IObject,
95 unity_engine::{behaviour::IBehaviour, component::IComponent, monobehaviour::IMonoBehaviour, object_2::IObject_2},
96 };
97}