Skip to main content

engage/generated/root/
testmove.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "root-testmove-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/root/testmove/TestMove.md"))]
19    #[::unity::class(namespace = "", name = "TestMove")]
20    #[parent(crate::unity_engine::monobehaviour::MonoBehaviour)]
21    pub struct TestMove {
22        #[offset(24)]
23        #[rename(name = "m_Target")]
24        pub m_target: crate::unity_engine::gameobject::GameObject,
25        #[offset(32)]
26        #[rename(name = "m_Speed")]
27        pub m_speed: f32,
28    }
29}
30
31#[cfg(feature = "root-testmove-types")]
32pub use __types::*;
33
34#[cfg(feature = "root-testmove")]
35pub trait ITestMoveMethods: ITestMove {
36    #[doc = "`Start()` overload"]
37    fn start(self) -> () {
38        unsafe {
39            let __receiver = <TestMove as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
40            ::unity::il2cpp_call!((::unity::module_base()+0x21e7a10usize)as*mut u8,();
41(TestMove)__receiver)
42        }
43    }
44    #[doc = "`GetCollision(crate::unity_engine::vector3::Vector3)` overload"]
45    fn get_collision(self, pos: impl ::core::convert::Into<crate::unity_engine::vector3::Vector3>) -> crate::unity_engine::vector3::Vector3 {
46        unsafe {
47            let __receiver = <TestMove as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
48            ::unity::il2cpp_call!((::unity::module_base()+0x21e7a20usize)as*mut u8,crate::unity_engine::vector3::Vector3;
49(TestMove)__receiver,(crate::unity_engine::vector3::Vector3)::core::convert::Into::into(pos))
50        }
51    }
52    #[doc = "`GetHeight(crate::unity_engine::vector3::Vector3)` overload"]
53    fn get_height(self, pos: impl ::core::convert::Into<crate::unity_engine::vector3::Vector3>) -> f32 {
54        unsafe {
55            let __receiver = <TestMove as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
56            ::unity::il2cpp_call!((::unity::module_base()+0x21e7c00usize)as*mut u8,f32;
57(TestMove)__receiver,(crate::unity_engine::vector3::Vector3)::core::convert::Into::into(pos))
58        }
59    }
60    #[doc = "`Update()` overload"]
61    fn update(self) -> () {
62        unsafe {
63            let __receiver = <TestMove as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
64            ::unity::il2cpp_call!((::unity::module_base()+0x21e7d80usize)as*mut u8,();
65(TestMove)__receiver)
66        }
67    }
68    #[doc = "`.ctor()` overload"]
69    fn ctor(self) -> () {
70        unsafe {
71            let __receiver = <TestMove as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
72            ::unity::il2cpp_call!((::unity::module_base()+0x21e8020usize)as*mut u8,();
73(TestMove)__receiver)
74        }
75    }
76}
77
78#[cfg(feature = "root-testmove")]
79impl<__T: ITestMove> ITestMoveMethods for __T {}
80
81#[cfg(feature = "root-testmove")]
82impl TestMove {
83    pub fn start_method_info() -> &'static ::unity::il2cpp::MethodInfo {
84        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
85    }
86
87    pub fn get_collision_method_info() -> &'static ::unity::il2cpp::MethodInfo {
88        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
89    }
90
91    pub fn get_height_method_info() -> &'static ::unity::il2cpp::MethodInfo {
92        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
93    }
94
95    pub fn update_method_info() -> &'static ::unity::il2cpp::MethodInfo {
96        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
97    }
98
99    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
100        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
101    }
102}
103
104#[cfg(feature = "root-testmove")]
105impl TestMove {
106    #[doc = "`.ctor()` — no args"]
107    pub fn new() -> Self {
108        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
109            panic!(
110                "{}
111::{}
112 failed to instantiate",
113                ::core::stringify!(TestMove),
114                ::core::stringify!(new),
115            )
116        });
117        <Self as ITestMoveMethods>::ctor(this);
118        this
119    }
120}
121
122#[cfg(feature = "root-testmove")]
123#[doc(hidden)]
124pub mod prelude {
125    pub use super::{ITestMove, ITestMoveMethods, TestMove};
126    #[cfg(feature = "system-object")]
127    pub use crate::system::object::IObjectMethods;
128    #[cfg(feature = "unity_engine-behaviour")]
129    pub use crate::unity_engine::behaviour::IBehaviourMethods;
130    #[cfg(feature = "unity_engine-component")]
131    pub use crate::unity_engine::component::IComponentMethods;
132    #[cfg(feature = "unity_engine-monobehaviour")]
133    pub use crate::unity_engine::monobehaviour::IMonoBehaviourMethods;
134    #[cfg(feature = "unity_engine-object_2")]
135    pub use crate::unity_engine::object_2::IObject_2Methods;
136    pub use crate::{
137        system::object::IObject,
138        unity_engine::{behaviour::IBehaviour, component::IComponent, monobehaviour::IMonoBehaviour, object_2::IObject_2},
139    };
140}