engage/generated/app/
gmapspotadjuster.rs1#[cfg(feature = "app-gmapspotadjuster-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/app/gmapspotadjuster/GmapSpotAdjuster_TargetModel.md"))]
22 #[repr(C)]
23 #[derive(::core::clone::Clone, ::core::marker::Copy)]
24 pub struct GmapSpotAdjuster_TargetModel {
25 pub メモ: ::unity::Il2CppString,
26 pub 対象とする地面: ::unity::Il2CppString,
27 pub 吸着する: bool,
28 }
29 impl ::unity::ClassIdentity for GmapSpotAdjuster_TargetModel {
30 const NAME: &'static str = "GmapSpotAdjuster.TargetModel";
31 const NAMESPACE: &'static str = "App";
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 GmapSpotAdjuster_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/app/gmapspotadjuster/GmapSpotAdjuster.md"))]
45 #[::unity::class(namespace = "App", name = "GmapSpotAdjuster")]
46 #[parent(crate::unity_engine::monobehaviour::MonoBehaviour)]
47 pub struct GmapSpotAdjuster {
48 #[offset(24)]
49 #[rename(name = "移動時に地面に吸着させる")]
50 pub 移動時に地面に吸着させる: bool,
51 #[offset(32)]
52 #[rename(name = "吸着対象")]
53 pub 吸着対象: crate::system::collections::generic::list_1::List_1<crate::app::gmapspotadjuster::GmapSpotAdjuster_TargetModel>,
54 #[offset(40)]
55 #[rename(name = "m_TargetColliders")]
56 pub m_target_colliders: crate::system::collections::generic::list_1::List_1<crate::unity_engine::collider::Collider>,
57 #[offset(48)]
58 #[rename(name = "m_OldCheck")]
59 pub m_old_check: bool,
60 #[offset(56)]
61 #[rename(name = "m_Transform")]
62 pub m_transform: crate::unity_engine::transform::Transform,
63 #[offset(64)]
64 #[rename(name = "m_LastPosition")]
65 pub m_last_position: crate::unity_engine::vector3::Vector3,
66 }
67}
68
69#[cfg(feature = "app-gmapspotadjuster-types")]
70pub use __types::*;
71
72#[cfg(feature = "app-gmapspotadjuster")]
73impl GmapSpotAdjuster {
74 #[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"]
75 pub fn raycast_to_targets(
76 origin: impl ::core::convert::Into<crate::unity_engine::vector3::Vector3>,
77 direction: impl ::core::convert::Into<crate::unity_engine::vector3::Vector3>,
78 targets: impl ::core::convert::Into<::unity::Array<crate::unity_engine::collider::Collider>>,
79 ) -> (bool, crate::unity_engine::raycasthit::RaycastHit) {
80 unsafe {
81 let mut __out_0 = ::core::mem::MaybeUninit::<crate::unity_engine::raycasthit::RaycastHit>::uninit();
82 let __ret = {
83 ::unity::il2cpp_call!((::unity::module_base()+0x2b48030usize)as*mut u8,bool;
84(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))
85 };
86 (__ret, __out_0.assume_init())
87 }
88 }
89}
90
91#[cfg(feature = "app-gmapspotadjuster")]
92pub trait IGmapSpotAdjusterMethods: IGmapSpotAdjuster {
93 #[doc = "`Start()` overload"]
94 fn start(self) -> () {
95 unsafe {
96 let __receiver = <GmapSpotAdjuster as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
97 ::unity::il2cpp_call!((::unity::module_base()+0x2b47b40usize)as*mut u8,();
98(GmapSpotAdjuster)__receiver)
99 }
100 }
101 #[doc = "`OnValidate()` overload"]
102 fn on_validate(self) -> () {
103 unsafe {
104 let __receiver = <GmapSpotAdjuster as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
105 ::unity::il2cpp_call!((::unity::module_base()+0x2b47e40usize)as*mut u8,();
106(GmapSpotAdjuster)__receiver)
107 }
108 }
109 #[doc = "`Update()` overload"]
110 fn update(self) -> () {
111 unsafe {
112 let __receiver = <GmapSpotAdjuster as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
113 ::unity::il2cpp_call!((::unity::module_base()+0x2b47e80usize)as*mut u8,();
114(GmapSpotAdjuster)__receiver)
115 }
116 }
117 #[doc = "`SetupColliders()` overload"]
118 fn setup_colliders(self) -> () {
119 unsafe {
120 let __receiver = <GmapSpotAdjuster as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
121 ::unity::il2cpp_call!((::unity::module_base()+0x2b47b80usize)as*mut u8,();
122(GmapSpotAdjuster)__receiver)
123 }
124 }
125 #[doc = "`AdjustGround(crate::unity_engine::vector3::Vector3)` overload"]
126 fn adjust_ground(self, diff: impl ::core::convert::Into<crate::unity_engine::vector3::Vector3>) -> () {
127 unsafe {
128 let __receiver = <GmapSpotAdjuster as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
129 ::unity::il2cpp_call!((::unity::module_base()+0x2b47f00usize)as*mut u8,();
130(GmapSpotAdjuster)__receiver,(crate::unity_engine::vector3::Vector3)::core::convert::Into::into(diff))
131 }
132 }
133 #[doc = "`.ctor()` overload"]
134 fn ctor(self) -> () {
135 unsafe {
136 let __receiver = <GmapSpotAdjuster as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
137 ::unity::il2cpp_call!((::unity::module_base()+0x2b481f0usize)as*mut u8,();
138(GmapSpotAdjuster)__receiver)
139 }
140 }
141}
142
143#[cfg(feature = "app-gmapspotadjuster")]
144impl<__T: IGmapSpotAdjuster> IGmapSpotAdjusterMethods for __T {}
145
146#[cfg(feature = "app-gmapspotadjuster")]
147impl GmapSpotAdjuster {
148 pub fn start_method_info() -> &'static ::unity::il2cpp::MethodInfo {
149 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
150 }
151
152 pub fn on_validate_method_info() -> &'static ::unity::il2cpp::MethodInfo {
153 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
154 }
155
156 pub fn update_method_info() -> &'static ::unity::il2cpp::MethodInfo {
157 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
158 }
159
160 pub fn setup_colliders_method_info() -> &'static ::unity::il2cpp::MethodInfo {
161 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
162 }
163
164 pub fn adjust_ground_method_info() -> &'static ::unity::il2cpp::MethodInfo {
165 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
166 }
167
168 pub fn raycast_to_targets_method_info() -> &'static ::unity::il2cpp::MethodInfo {
169 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
170 }
171
172 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
173 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
174 }
175}
176
177#[cfg(feature = "app-gmapspotadjuster")]
178impl GmapSpotAdjuster {
179 #[doc = "`.ctor()` — no args"]
180 pub fn new() -> Self {
181 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
182 panic!(
183 "{}
184::{}
185 failed to instantiate",
186 ::core::stringify!(GmapSpotAdjuster),
187 ::core::stringify!(new),
188 )
189 });
190 <Self as IGmapSpotAdjusterMethods>::ctor(this);
191 this
192 }
193}
194
195#[cfg(feature = "app-gmapspotadjuster")]
196#[doc(hidden)]
197pub mod prelude {
198 pub use super::{GmapSpotAdjuster, GmapSpotAdjuster_TargetModel, IGmapSpotAdjuster, IGmapSpotAdjusterMethods};
199 #[cfg(feature = "system-object")]
200 pub use crate::system::object::IObjectMethods;
201 #[cfg(feature = "system-valuetype")]
202 pub use crate::system::valuetype::IValueTypeMethods;
203 #[cfg(feature = "unity_engine-behaviour")]
204 pub use crate::unity_engine::behaviour::IBehaviourMethods;
205 #[cfg(feature = "unity_engine-component")]
206 pub use crate::unity_engine::component::IComponentMethods;
207 #[cfg(feature = "unity_engine-monobehaviour")]
208 pub use crate::unity_engine::monobehaviour::IMonoBehaviourMethods;
209 #[cfg(feature = "unity_engine-object_2")]
210 pub use crate::unity_engine::object_2::IObject_2Methods;
211 pub use crate::{
212 system::{object::IObject, valuetype::IValueType},
213 unity_engine::{behaviour::IBehaviour, component::IComponent, monobehaviour::IMonoBehaviour, object_2::IObject_2},
214 };
215}