Skip to main content

engage/generated/unity_engine/ai/
navmeshpath.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "unity_engine-ai-navmeshpath-types")]
4mod __types {
5    #[allow(unused_imports)] use ::unity::prelude::*;
6
7    use super::*;
8    use crate::system::object::{IObject, Object};
9
10    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/unity_engine/ai/navmeshpath/NavMeshPath.md"))]
11    #[::unity::class(namespace = "UnityEngine.AI", name = "NavMeshPath")]
12    #[parent(crate::system::object::Object)]
13    pub struct NavMeshPath {
14        #[offset(16)]
15        #[rename(name = "m_Ptr")]
16        pub m_ptr: ::unity::IntPtr,
17        #[offset(24)]
18        #[rename(name = "m_Corners")]
19        pub m_corners: ::unity::Array<crate::unity_engine::vector3::Vector3>,
20    }
21}
22
23#[cfg(feature = "unity_engine-ai-navmeshpath-types")]
24pub use __types::*;
25
26#[cfg(feature = "unity_engine-ai-navmeshpath")]
27impl NavMeshPath {
28    #[doc = "`InitializeNavMeshPath()` overload"]
29    pub fn initialize_nav_mesh_path() -> ::unity::IntPtr {
30        unsafe {
31            ::unity::il2cpp_call!((::unity::module_base()+0x3f43fc0usize)as*mut u8, ::unity::IntPtr;
32            )
33        }
34    }
35
36    #[doc = "`DestroyNavMeshPath(::unity::IntPtr)` overload"]
37    pub fn destroy_nav_mesh_path(ptr: impl ::core::convert::Into<::unity::IntPtr>) -> () {
38        unsafe {
39            ::unity::il2cpp_call!((::unity::module_base()+0x3f440c0usize)as*mut u8,();
40(::unity::IntPtr)::core::convert::Into::into(ptr))
41        }
42    }
43}
44
45#[cfg(feature = "unity_engine-ai-navmeshpath")]
46pub trait INavMeshPathMethods: INavMeshPath {
47    #[doc = "`.ctor()` overload"]
48    fn ctor(self) -> () {
49        unsafe {
50            let __receiver = <NavMeshPath as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
51            ::unity::il2cpp_call!((::unity::module_base()+0x3f43f70usize)as*mut u8,();
52(NavMeshPath)__receiver)
53        }
54    }
55    #[doc = "`Finalize()` overload"]
56    fn finalize(self) -> () {
57        unsafe {
58            let __receiver = <NavMeshPath as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
59            {
60                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
61                let __vi = *__vt.get(1usize).unwrap_or_else(|| {
62                    panic!(
63                        "unity: virtual slot {}
64 out of range (vtable len {}
65) on the runtime class behind {}
66 (method `{}
67`)",
68                        1usize,
69                        __vt.len(),
70                        <NavMeshPath as ::unity::ClassIdentity>::NAME,
71                        "Finalize",
72                    )
73                });
74                let __inner: extern "C" fn(NavMeshPath, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
75                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
76                __inner(__receiver, __mi)
77            }
78        }
79    }
80    #[doc = "`CalculateCornersInternal()` overload"]
81    fn calculate_corners_internal(self) -> ::unity::Array<crate::unity_engine::vector3::Vector3> {
82        unsafe {
83            let __receiver = <NavMeshPath as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
84            ::unity::il2cpp_call!((::unity::module_base()+0x3f44110usize)as*mut u8, ::unity::Array<crate::unity_engine::vector3::Vector3> ;
85(NavMeshPath)__receiver)
86        }
87    }
88    #[doc = "`ClearCornersInternal()` overload"]
89    fn clear_corners_internal(self) -> () {
90        unsafe {
91            let __receiver = <NavMeshPath as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
92            ::unity::il2cpp_call!((::unity::module_base()+0x3f44160usize)as*mut u8,();
93(NavMeshPath)__receiver)
94        }
95    }
96    #[doc = "`ClearCorners()` overload"]
97    fn clear_corners(self) -> () {
98        unsafe {
99            let __receiver = <NavMeshPath as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
100            ::unity::il2cpp_call!((::unity::module_base()+0x3f434d0usize)as*mut u8,();
101(NavMeshPath)__receiver)
102        }
103    }
104    #[doc = "`CalculateCorners()` overload"]
105    fn calculate_corners(self) -> () {
106        unsafe {
107            let __receiver = <NavMeshPath as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
108            ::unity::il2cpp_call!((::unity::module_base()+0x3f441b0usize)as*mut u8,();
109(NavMeshPath)__receiver)
110        }
111    }
112    #[doc = "`get_corners()` overload"]
113    fn get_corners(self) -> ::unity::Array<crate::unity_engine::vector3::Vector3> {
114        unsafe {
115            let __receiver = <NavMeshPath as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
116            ::unity::il2cpp_call!((::unity::module_base()+0x3f44230usize)as*mut u8, ::unity::Array<crate::unity_engine::vector3::Vector3> ;
117(NavMeshPath)__receiver)
118        }
119    }
120    #[doc = "`get_status()` overload"]
121    fn get_status(self) -> crate::unity_engine::ai::navmeshpathstatus::NavMeshPathStatus {
122        unsafe {
123            let __receiver = <NavMeshPath as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
124            ::unity::il2cpp_call!((::unity::module_base()+0x3f442b0usize)as*mut u8,crate::unity_engine::ai::navmeshpathstatus::NavMeshPathStatus;
125(NavMeshPath)__receiver)
126        }
127    }
128}
129
130#[cfg(feature = "unity_engine-ai-navmeshpath")]
131impl<__T: INavMeshPath> INavMeshPathMethods for __T {}
132
133#[cfg(feature = "unity_engine-ai-navmeshpath")]
134impl NavMeshPath {
135    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
136        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
137    }
138
139    pub fn finalize_method_info() -> &'static ::unity::il2cpp::MethodInfo {
140        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
141    }
142
143    pub fn initialize_nav_mesh_path_method_info() -> &'static ::unity::il2cpp::MethodInfo {
144        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
145    }
146
147    pub fn destroy_nav_mesh_path_method_info() -> &'static ::unity::il2cpp::MethodInfo {
148        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
149    }
150
151    pub fn calculate_corners_internal_method_info() -> &'static ::unity::il2cpp::MethodInfo {
152        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
153    }
154
155    pub fn clear_corners_internal_method_info() -> &'static ::unity::il2cpp::MethodInfo {
156        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
157    }
158
159    pub fn clear_corners_method_info() -> &'static ::unity::il2cpp::MethodInfo {
160        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
161    }
162
163    pub fn calculate_corners_method_info() -> &'static ::unity::il2cpp::MethodInfo {
164        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
165    }
166
167    pub fn get_corners_method_info() -> &'static ::unity::il2cpp::MethodInfo {
168        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
169    }
170
171    pub fn get_status_method_info() -> &'static ::unity::il2cpp::MethodInfo {
172        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
173    }
174}
175
176#[cfg(feature = "unity_engine-ai-navmeshpath")]
177impl NavMeshPath {
178    #[doc = "Direct (non-virtual) call to `NavMeshPath`'s own `Finalize`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
179    pub unsafe fn finalize(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
180        let __mi = Self::finalize_method_info();
181        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
182        __inner(this.into(), ::core::option::Option::None)
183    }
184}
185
186#[cfg(feature = "unity_engine-ai-navmeshpath")]
187impl NavMeshPath {
188    #[doc = "`.ctor()` — no args"]
189    pub fn new() -> Self {
190        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
191            panic!(
192                "{}
193::{}
194 failed to instantiate",
195                ::core::stringify!(NavMeshPath),
196                ::core::stringify!(new),
197            )
198        });
199        <Self as INavMeshPathMethods>::ctor(this);
200        this
201    }
202}
203
204#[cfg(feature = "unity_engine-ai-navmeshpath")]
205#[doc(hidden)]
206pub mod prelude {
207    pub use super::{INavMeshPath, INavMeshPathMethods, NavMeshPath};
208    pub use crate::system::object::IObject;
209    #[cfg(feature = "system-object")]
210    pub use crate::system::object::IObjectMethods;
211}