Skip to main content

engage/generated/app/water/
displacev2.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "app-water-displacev2-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/displacev2/DisplaceV2.md"))]
19    #[::unity::class(namespace = "App.Water", name = "DisplaceV2")]
20    #[parent(crate::unity_engine::monobehaviour::MonoBehaviour)]
21    pub struct DisplaceV2 {}
22}
23
24#[cfg(feature = "app-water-displacev2-types")]
25pub use __types::*;
26
27#[cfg(feature = "app-water-displacev2")]
28pub trait IDisplaceV2Methods: IDisplaceV2 {
29    #[doc = "`Awake()` overload"]
30    fn awake(self) -> () {
31        unsafe {
32            let __receiver = <DisplaceV2 as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
33            ::unity::il2cpp_call!((::unity::module_base()+0x1cf9f70usize)as*mut u8,();
34(DisplaceV2)__receiver)
35        }
36    }
37    #[doc = "`OnEnable()` overload"]
38    fn on_enable(self) -> () {
39        unsafe {
40            let __receiver = <DisplaceV2 as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
41            ::unity::il2cpp_call!((::unity::module_base()+0x1cfa050usize)as*mut u8,();
42(DisplaceV2)__receiver)
43        }
44    }
45    #[doc = "`OnDisable()` overload"]
46    fn on_disable(self) -> () {
47        unsafe {
48            let __receiver = <DisplaceV2 as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
49            ::unity::il2cpp_call!((::unity::module_base()+0x1cfa0c0usize)as*mut u8,();
50(DisplaceV2)__receiver)
51        }
52    }
53    #[doc = "`.ctor()` overload"]
54    fn ctor(self) -> () {
55        unsafe {
56            let __receiver = <DisplaceV2 as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
57            ::unity::il2cpp_call!((::unity::module_base()+0x1cfa130usize)as*mut u8,();
58(DisplaceV2)__receiver)
59        }
60    }
61}
62
63#[cfg(feature = "app-water-displacev2")]
64impl<__T: IDisplaceV2> IDisplaceV2Methods for __T {}
65
66#[cfg(feature = "app-water-displacev2")]
67impl DisplaceV2 {
68    pub fn awake_method_info() -> &'static ::unity::il2cpp::MethodInfo {
69        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
70    }
71
72    pub fn on_enable_method_info() -> &'static ::unity::il2cpp::MethodInfo {
73        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
74    }
75
76    pub fn on_disable_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-water-displacev2")]
86impl DisplaceV2 {
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!(DisplaceV2),
95                ::core::stringify!(new),
96            )
97        });
98        <Self as IDisplaceV2Methods>::ctor(this);
99        this
100    }
101}
102
103#[cfg(feature = "app-water-displacev2")]
104#[doc(hidden)]
105pub mod prelude {
106    pub use super::{DisplaceV2, IDisplaceV2, IDisplaceV2Methods};
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}