engage/generated/app/
waypointsync.rs1#[cfg(feature = "app-waypointsync-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/waypointsync/WaypointSync.md"))]
19 #[::unity::class(namespace = "App", name = "WaypointSync")]
20 #[parent(crate::unity_engine::monobehaviour::MonoBehaviour)]
21 pub struct WaypointSync {
22 #[offset(24)]
23 #[rename(name = "m_TargetAsset")]
24 pub m_target_asset: crate::unity_engine::gameobject::GameObject,
25 #[offset(32)]
26 #[rename(name = "_pastTargetAsset")]
27 pub past_target_asset: crate::unity_engine::gameobject::GameObject,
28 #[static_field]
29 #[rename(name = "waitTime")]
30 pub wait_time: f64,
31 #[offset(40)]
32 #[rename(name = "m_relatives")]
33 pub m_relatives: ::unity::Array<crate::app::waypointsync::WaypointSync_Relative>,
34 }
35
36 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/waypointsync/WaypointSync_Relative.md"))]
37 #[::unity::class(namespace = "App", name = "WaypointSync.Relative")]
38 #[parent(crate::system::object::Object)]
39 pub struct WaypointSync_Relative {
40 #[offset(16)]
41 #[rename(name = "m_targetID")]
42 pub m_target_id: i32,
43 #[offset(20)]
44 #[rename(name = "m_recieverID")]
45 pub m_reciever_id: i32,
46 #[offset(24)]
47 #[rename(name = "m_offset")]
48 pub m_offset: crate::unity_engine::vector3::Vector3,
49 #[offset(36)]
50 #[rename(name = "m_Enable")]
51 pub m_enable: bool,
52 #[offset(40)]
53 #[rename(name = "_pastTargetID")]
54 pub past_target_id: i32,
55 #[offset(44)]
56 #[rename(name = "_pastRecieverID")]
57 pub past_reciever_id: i32,
58 #[offset(48)]
59 #[rename(name = "_pastRecieverPos")]
60 pub past_reciever_pos: crate::unity_engine::vector3::Vector3,
61 #[offset(60)]
62 #[rename(name = "_pastEnable")]
63 pub past_enable: bool,
64 #[offset(64)]
65 #[rename(name = "_targetPos")]
66 pub target_pos: crate::unity_engine::vector3::Vector3,
67 }
68}
69
70#[cfg(feature = "app-waypointsync-types")]
71pub use __types::*;
72
73#[cfg(feature = "app-waypointsync")]
74impl WaypointSync {
75 #[doc = "`.cctor()` overload"]
76 pub fn cctor() -> () {
77 unsafe {
78 ::unity::il2cpp_call!((::unity::module_base()+0x21c7840usize)as*mut u8,();
79 )
80 }
81 }
82}
83
84#[cfg(feature = "app-waypointsync")]
85pub trait IWaypointSyncMethods: IWaypointSync {
86 #[doc = "`Init()` overload"]
87 fn init(self) -> () {
88 unsafe {
89 let __receiver = <WaypointSync as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
90 ::unity::il2cpp_call!((::unity::module_base()+0x21c7490usize)as*mut u8,();
91(WaypointSync)__receiver)
92 }
93 }
94 #[doc = "`OnEnable()` overload"]
95 fn on_enable(self) -> () {
96 unsafe {
97 let __receiver = <WaypointSync as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
98 ::unity::il2cpp_call!((::unity::module_base()+0x21c7510usize)as*mut u8,();
99(WaypointSync)__receiver)
100 }
101 }
102 #[doc = "`OnValidate()` overload"]
103 fn on_validate(self) -> () {
104 unsafe {
105 let __receiver = <WaypointSync as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
106 ::unity::il2cpp_call!((::unity::module_base()+0x21c7520usize)as*mut u8,();
107(WaypointSync)__receiver)
108 }
109 }
110 #[doc = "`Update()` overload"]
111 fn update(self) -> () {
112 unsafe {
113 let __receiver = <WaypointSync as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
114 ::unity::il2cpp_call!((::unity::module_base()+0x21c7760usize)as*mut u8,();
115(WaypointSync)__receiver)
116 }
117 }
118 #[doc = "`OnDestroy()` overload"]
119 fn on_destroy(self) -> () {
120 unsafe {
121 let __receiver = <WaypointSync as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
122 ::unity::il2cpp_call!((::unity::module_base()+0x21c7770usize)as*mut u8,();
123(WaypointSync)__receiver)
124 }
125 }
126 #[doc = "`.ctor()` overload"]
127 fn ctor(self) -> () {
128 unsafe {
129 let __receiver = <WaypointSync as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
130 ::unity::il2cpp_call!((::unity::module_base()+0x21c77d0usize)as*mut u8,();
131(WaypointSync)__receiver)
132 }
133 }
134}
135
136#[cfg(feature = "app-waypointsync")]
137impl<__T: IWaypointSync> IWaypointSyncMethods for __T {}
138
139#[cfg(feature = "app-waypointsync")]
140impl WaypointSync {
141 pub fn init_method_info() -> &'static ::unity::il2cpp::MethodInfo {
142 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
143 }
144
145 pub fn on_enable_method_info() -> &'static ::unity::il2cpp::MethodInfo {
146 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
147 }
148
149 pub fn on_validate_method_info() -> &'static ::unity::il2cpp::MethodInfo {
150 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
151 }
152
153 pub fn update_method_info() -> &'static ::unity::il2cpp::MethodInfo {
154 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
155 }
156
157 pub fn on_destroy_method_info() -> &'static ::unity::il2cpp::MethodInfo {
158 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
159 }
160
161 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
162 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
163 }
164
165 pub fn cctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
166 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
167 }
168}
169
170#[cfg(feature = "app-waypointsync")]
171impl WaypointSync {
172 #[doc = "`.ctor()` — no args"]
173 pub fn new() -> Self {
174 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
175 panic!(
176 "{}
177::{}
178 failed to instantiate",
179 ::core::stringify!(WaypointSync),
180 ::core::stringify!(new),
181 )
182 });
183 <Self as IWaypointSyncMethods>::ctor(this);
184 this
185 }
186}
187
188#[cfg(feature = "app-waypointsync")]
189pub trait IWaypointSync_RelativeMethods: IWaypointSync_Relative {
190 #[doc = "`.ctor()` overload"]
191 fn ctor(self) -> () {
192 unsafe {
193 let __receiver = <WaypointSync_Relative as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
194 ::unity::il2cpp_call!((::unity::module_base()+0x1b2a1b0usize)as*mut u8,();
195(WaypointSync_Relative)__receiver)
196 }
197 }
198}
199
200#[cfg(feature = "app-waypointsync")]
201impl<__T: IWaypointSync_Relative> IWaypointSync_RelativeMethods for __T {}
202
203#[cfg(feature = "app-waypointsync")]
204impl WaypointSync_Relative {
205 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
206 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
207 }
208}
209
210#[cfg(feature = "app-waypointsync")]
211impl WaypointSync_Relative {
212 #[doc = "`.ctor()` — no args"]
213 pub fn new() -> Self {
214 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
215 panic!(
216 "{}
217::{}
218 failed to instantiate",
219 ::core::stringify!(WaypointSync_Relative),
220 ::core::stringify!(new),
221 )
222 });
223 <Self as IWaypointSync_RelativeMethods>::ctor(this);
224 this
225 }
226}
227
228#[cfg(feature = "app-waypointsync")]
229#[doc(hidden)]
230pub mod prelude {
231 pub use super::{
232 IWaypointSync, IWaypointSyncMethods, IWaypointSync_Relative, IWaypointSync_RelativeMethods, WaypointSync, WaypointSync_Relative,
233 };
234 #[cfg(feature = "system-object")]
235 pub use crate::system::object::IObjectMethods;
236 #[cfg(feature = "unity_engine-behaviour")]
237 pub use crate::unity_engine::behaviour::IBehaviourMethods;
238 #[cfg(feature = "unity_engine-component")]
239 pub use crate::unity_engine::component::IComponentMethods;
240 #[cfg(feature = "unity_engine-monobehaviour")]
241 pub use crate::unity_engine::monobehaviour::IMonoBehaviourMethods;
242 #[cfg(feature = "unity_engine-object_2")]
243 pub use crate::unity_engine::object_2::IObject_2Methods;
244 pub use crate::{
245 system::object::IObject,
246 unity_engine::{behaviour::IBehaviour, component::IComponent, monobehaviour::IMonoBehaviour, object_2::IObject_2},
247 };
248}