engage/generated/root/
gmappathadjuster.rs1#[cfg(feature = "root-gmappathadjuster-types")]
4mod __types {
5 #[allow(unused_imports)] use ::unity::prelude::*;
6
7 use super::*;
8 use crate::{
9 system::{
10 object::{IObject, Object},
11 valuetype::{IValueType, ValueType},
12 },
13 unity_engine::{
14 behaviour::{Behaviour, IBehaviour},
15 component::{Component, IComponent},
16 monobehaviour::{IMonoBehaviour, MonoBehaviour},
17 object_2::{IObject_2, Object_2},
18 },
19 };
20
21 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/root/gmappathadjuster/GmapPathAdjuster_TargetModel.md"))]
22 #[repr(C)]
23 #[derive(::core::clone::Clone, ::core::marker::Copy)]
24 pub struct GmapPathAdjuster_TargetModel {
25 pub メモ: ::unity::Il2CppString,
26 pub 対象とする地面: ::unity::Il2CppString,
27 pub 吸着する: bool,
28 }
29 impl ::unity::ClassIdentity for GmapPathAdjuster_TargetModel {
30 const NAME: &'static str = "GmapPathAdjuster.TargetModel";
31 const NAMESPACE: &'static str = "";
32
33 fn class() -> ::unity::Class {
34 static CACHE: ::std::sync::OnceLock<::unity::Class> = ::std::sync::OnceLock::new();
35 *CACHE.get_or_init(|| ::unity::Class::lookup(Self::NAMESPACE, Self::NAME))
36 }
37 }
38 impl ::unity::IlType for GmapPathAdjuster_TargetModel {
39 fn il_type() -> &'static ::unity::il2cpp::Il2CppType {
40 &<Self as ::unity::ClassIdentity>::class().raw()._1.byval_arg
41 }
42 }
43
44 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/root/gmappathadjuster/GmapPathAdjuster.md"))]
45 #[::unity::class(namespace = "", name = "GmapPathAdjuster")]
46 #[parent(crate::unity_engine::monobehaviour::MonoBehaviour)]
47 pub struct GmapPathAdjuster {
48 #[offset(24)]
49 #[rename(name = "両端をモデル位置に合わせる")]
50 pub 両端をモデル位置に合わせる: bool,
51 #[offset(25)]
52 #[rename(name = "移動時に地面に吸着させる")]
53 pub 移動時に地面に吸着させる: bool,
54 #[offset(32)]
55 #[rename(name = "吸着対象")]
56 pub 吸着対象: crate::system::collections::generic::list_1::List_1<crate::root::gmappathadjuster::GmapPathAdjuster_TargetModel>,
57 #[offset(40)]
58 #[rename(name = "m_TargetColliders")]
59 pub m_target_colliders: crate::system::collections::generic::list_1::List_1<crate::unity_engine::collider::Collider>,
60 #[offset(56)]
61 #[rename(name = "m_LastPositions")]
62 pub m_last_positions: ::unity::Array<crate::unity_engine::vector3::Vector3>,
63 #[offset(64)]
64 #[rename(name = "m_BothSpotTransforms")]
65 pub m_both_spot_transforms: crate::system::collections::generic::list_1::List_1<crate::unity_engine::transform::Transform>,
66 #[offset(72)]
67 #[rename(name = "m_IsInitialized")]
68 pub m_is_initialized: bool,
69 }
70}
71
72#[cfg(feature = "root-gmappathadjuster-types")]
73pub use __types::*;
74
75#[cfg(feature = "root-gmappathadjuster")]
76impl GmapPathAdjuster {
77 #[doc = "`RaycastToTargets(crate::unity_engine::vector3::Vector3, crate::unity_engine::vector3::Vector3, *mutcrate::unity_engine::raycasthit::RaycastHit, ::unity::Array<crate::unity_engine::collider::Collider>)` overload"]
78 pub fn raycast_to_targets(
79 origin: impl ::core::convert::Into<crate::unity_engine::vector3::Vector3>,
80 direction: impl ::core::convert::Into<crate::unity_engine::vector3::Vector3>,
81 targets: impl ::core::convert::Into<::unity::Array<crate::unity_engine::collider::Collider>>,
82 ) -> (bool, crate::unity_engine::raycasthit::RaycastHit) {
83 unsafe {
84 let mut __out_0 = ::core::mem::MaybeUninit::<crate::unity_engine::raycasthit::RaycastHit>::uninit();
85 let __ret = {
86 ::unity::il2cpp_call!((::unity::module_base()+0x2b36370usize)as*mut u8,bool;
87(crate::unity_engine::vector3::Vector3)::core::convert::Into::into(origin),(crate::unity_engine::vector3::Vector3)::core::convert::Into::into(direction),(*mut crate::unity_engine::raycasthit::RaycastHit)__out_0.as_mut_ptr(),(::unity::Array<crate::unity_engine::collider::Collider>)::core::convert::Into::into(targets))
88 };
89 (__ret, __out_0.assume_init())
90 }
91 }
92}
93
94#[cfg(feature = "root-gmappathadjuster")]
95pub trait IGmapPathAdjusterMethods: IGmapPathAdjuster {
96 #[doc = "`Start()` overload"]
97 fn start(self) -> () {
98 unsafe {
99 let __receiver = <GmapPathAdjuster as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
100 ::unity::il2cpp_call!((::unity::module_base()+0x2b35a30usize)as*mut u8,();
101(GmapPathAdjuster)__receiver)
102 }
103 }
104 #[doc = "`Setup()` overload"]
105 fn setup(self) -> () {
106 unsafe {
107 let __receiver = <GmapPathAdjuster as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
108 ::unity::il2cpp_call!((::unity::module_base()+0x2b35a40usize)as*mut u8,();
109(GmapPathAdjuster)__receiver)
110 }
111 }
112 #[doc = "`SetupColliders()` overload"]
113 fn setup_colliders(self) -> bool {
114 unsafe {
115 let __receiver = <GmapPathAdjuster as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
116 ::unity::il2cpp_call!((::unity::module_base()+0x2b35be0usize)as*mut u8,bool;
117(GmapPathAdjuster)__receiver)
118 }
119 }
120 #[doc = "`SetupBothObjects()` overload"]
121 fn setup_both_objects(self) -> bool {
122 unsafe {
123 let __receiver = <GmapPathAdjuster as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
124 ::unity::il2cpp_call!((::unity::module_base()+0x2b35e10usize)as*mut u8,bool;
125(GmapPathAdjuster)__receiver)
126 }
127 }
128 #[doc = "`OnDisable()` overload"]
129 fn on_disable(self) -> () {
130 unsafe {
131 let __receiver = <GmapPathAdjuster as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
132 ::unity::il2cpp_call!((::unity::module_base()+0x2b36050usize)as*mut u8,();
133(GmapPathAdjuster)__receiver)
134 }
135 }
136 #[doc = "`Update()` overload"]
137 fn update(self) -> () {
138 unsafe {
139 let __receiver = <GmapPathAdjuster as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
140 ::unity::il2cpp_call!((::unity::module_base()+0x2b36060usize)as*mut u8,();
141(GmapPathAdjuster)__receiver)
142 }
143 }
144 #[doc = "`AdjustGround()` overload"]
145 fn adjust_ground(self) -> () {
146 unsafe {
147 let __receiver = <GmapPathAdjuster as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
148 ::unity::il2cpp_call!((::unity::module_base()+0x2b36070usize)as*mut u8,();
149(GmapPathAdjuster)__receiver)
150 }
151 }
152 #[doc = "`IsChanged()` overload"]
153 fn is_changed(self) -> i32 {
154 unsafe {
155 let __receiver = <GmapPathAdjuster as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
156 ::unity::il2cpp_call!((::unity::module_base()+0x2b36100usize)as*mut u8,i32;
157(GmapPathAdjuster)__receiver)
158 }
159 }
160 #[doc = "`AdjustGroundPoint(i32)` overload"]
161 fn adjust_ground_point(self, index: impl ::core::convert::Into<i32>) -> () {
162 unsafe {
163 let __receiver = <GmapPathAdjuster as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
164 ::unity::il2cpp_call!((::unity::module_base()+0x2b36210usize)as*mut u8,();
165(GmapPathAdjuster)__receiver,(i32)::core::convert::Into::into(index))
166 }
167 }
168 #[doc = "`AdjustBothSpots()` overload"]
169 fn adjust_both_spots(self) -> () {
170 unsafe {
171 let __receiver = <GmapPathAdjuster as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
172 ::unity::il2cpp_call!((::unity::module_base()+0x2b36530usize)as*mut u8,();
173(GmapPathAdjuster)__receiver)
174 }
175 }
176 #[doc = "`.ctor()` overload"]
177 fn ctor(self) -> () {
178 unsafe {
179 let __receiver = <GmapPathAdjuster as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
180 ::unity::il2cpp_call!((::unity::module_base()+0x2b36570usize)as*mut u8,();
181(GmapPathAdjuster)__receiver)
182 }
183 }
184}
185
186#[cfg(feature = "root-gmappathadjuster")]
187impl<__T: IGmapPathAdjuster> IGmapPathAdjusterMethods for __T {}
188
189#[cfg(feature = "root-gmappathadjuster")]
190impl GmapPathAdjuster {
191 pub fn start_method_info() -> &'static ::unity::il2cpp::MethodInfo {
192 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
193 }
194
195 pub fn setup_method_info() -> &'static ::unity::il2cpp::MethodInfo {
196 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
197 }
198
199 pub fn setup_colliders_method_info() -> &'static ::unity::il2cpp::MethodInfo {
200 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
201 }
202
203 pub fn setup_both_objects_method_info() -> &'static ::unity::il2cpp::MethodInfo {
204 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
205 }
206
207 pub fn on_disable_method_info() -> &'static ::unity::il2cpp::MethodInfo {
208 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
209 }
210
211 pub fn update_method_info() -> &'static ::unity::il2cpp::MethodInfo {
212 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
213 }
214
215 pub fn adjust_ground_method_info() -> &'static ::unity::il2cpp::MethodInfo {
216 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
217 }
218
219 pub fn is_changed_method_info() -> &'static ::unity::il2cpp::MethodInfo {
220 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
221 }
222
223 pub fn adjust_ground_point_method_info() -> &'static ::unity::il2cpp::MethodInfo {
224 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
225 }
226
227 pub fn adjust_both_spots_method_info() -> &'static ::unity::il2cpp::MethodInfo {
228 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
229 }
230
231 pub fn raycast_to_targets_method_info() -> &'static ::unity::il2cpp::MethodInfo {
232 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
233 }
234
235 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
236 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[11]
237 }
238}
239
240#[cfg(feature = "root-gmappathadjuster")]
241impl GmapPathAdjuster {
242 #[doc = "`.ctor()` — no args"]
243 pub fn new() -> Self {
244 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
245 panic!(
246 "{}
247::{}
248 failed to instantiate",
249 ::core::stringify!(GmapPathAdjuster),
250 ::core::stringify!(new),
251 )
252 });
253 <Self as IGmapPathAdjusterMethods>::ctor(this);
254 this
255 }
256}
257
258#[cfg(feature = "root-gmappathadjuster")]
259#[doc(hidden)]
260pub mod prelude {
261 pub use super::{GmapPathAdjuster, GmapPathAdjuster_TargetModel, IGmapPathAdjuster, IGmapPathAdjusterMethods};
262 #[cfg(feature = "system-object")]
263 pub use crate::system::object::IObjectMethods;
264 #[cfg(feature = "system-valuetype")]
265 pub use crate::system::valuetype::IValueTypeMethods;
266 #[cfg(feature = "unity_engine-behaviour")]
267 pub use crate::unity_engine::behaviour::IBehaviourMethods;
268 #[cfg(feature = "unity_engine-component")]
269 pub use crate::unity_engine::component::IComponentMethods;
270 #[cfg(feature = "unity_engine-monobehaviour")]
271 pub use crate::unity_engine::monobehaviour::IMonoBehaviourMethods;
272 #[cfg(feature = "unity_engine-object_2")]
273 pub use crate::unity_engine::object_2::IObject_2Methods;
274 pub use crate::{
275 system::{object::IObject, valuetype::IValueType},
276 unity_engine::{behaviour::IBehaviour, component::IComponent, monobehaviour::IMonoBehaviour, object_2::IObject_2},
277 };
278}