1#[cfg(feature = "app-eachinspector-types")]
4mod __types {
5 #[allow(unused_imports)] use ::unity::prelude::*;
6
7 use super::*;
8 use crate::{
9 app::{
10 mapinspector::{IMapInspector, MapInspector},
11 scriptutil::{IScriptUtil, ScriptUtil},
12 },
13 system::object::{IObject, Object},
14 };
15
16 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/eachinspector/EachInspector.md"))]
17 #[::unity::class(namespace = "App", name = "EachInspector")]
18 #[parent(crate::app::mapinspector::MapInspector)]
19 pub struct EachInspector {
20 #[offset(48)]
21 #[rename(name = "m_FromPerson")]
22 pub m_from_person: i32,
23 #[offset(52)]
24 #[rename(name = "m_FromForce")]
25 pub m_from_force: i32,
26 #[offset(56)]
27 #[rename(name = "m_ToPerson")]
28 pub m_to_person: i32,
29 #[offset(60)]
30 #[rename(name = "m_ToForce")]
31 pub m_to_force: i32,
32 #[offset(64)]
33 #[rename(name = "m_Both")]
34 pub m_both: bool,
35 }
36}
37
38#[cfg(feature = "app-eachinspector-types")]
39pub use __types::*;
40
41#[cfg(feature = "app-eachinspector")]
42pub trait IEachInspectorMethods: IEachInspector {
43 #[doc = "`.ctor(crate::app::mapinspector::MapInspector_Kind, ::unity::Array<crate::moon_sharp::interpreter::dynvalue::DynValue>)` overload"]
44 fn ctor(
45 self,
46 kind: impl ::core::convert::Into<crate::app::mapinspector::MapInspector_Kind>,
47 args: impl ::core::convert::Into<::unity::Array<crate::moon_sharp::interpreter::dynvalue::DynValue>>,
48 ) -> () {
49 unsafe {
50 let __receiver = <EachInspector as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
51 ::unity::il2cpp_call!((::unity::module_base()+0x22d4bb0usize)as*mut u8,();
52(EachInspector)__receiver,(crate::app::mapinspector::MapInspector_Kind)::core::convert::Into::into(kind),(::unity::Array<crate::moon_sharp::interpreter::dynvalue::DynValue>)::core::convert::Into::into(args))
53 }
54 }
55 #[doc = "`IsEach(i32, i32, i32, i32)` overload"]
56 fn is_each(
57 self,
58 from_person: impl ::core::convert::Into<i32>,
59 from_force: impl ::core::convert::Into<i32>,
60 to_person: impl ::core::convert::Into<i32>,
61 to_force: impl ::core::convert::Into<i32>,
62 ) -> bool {
63 unsafe {
64 let __receiver = <EachInspector as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
65 ::unity::il2cpp_call!((::unity::module_base()+0x22d4d20usize)as*mut u8,bool;
66(EachInspector)__receiver,(i32)::core::convert::Into::into(from_person),(i32)::core::convert::Into::into(from_force),(i32)::core::convert::Into::into(to_person),(i32)::core::convert::Into::into(to_force))
67 }
68 }
69 #[doc = "`IsEanble(i32, i32, i32, i32)` overload"]
70 fn is_eanble(
71 self,
72 from_person: impl ::core::convert::Into<i32>,
73 from_force: impl ::core::convert::Into<i32>,
74 to_person: impl ::core::convert::Into<i32>,
75 to_force: impl ::core::convert::Into<i32>,
76 ) -> bool {
77 unsafe {
78 let __receiver = <EachInspector as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
79 {
80 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
81 let __vi = *__vt.get(9usize).unwrap_or_else(|| {
82 panic!(
83 "unity: virtual slot {}
84 out of range (vtable len {}
85) on the runtime class behind {}
86 (method `{}
87`)",
88 9usize,
89 __vt.len(),
90 <EachInspector as ::unity::ClassIdentity>::NAME,
91 "IsEanble",
92 )
93 });
94 let __inner: extern "C" fn(EachInspector, i32, i32, i32, i32, ::unity::OptionalMethod) -> bool =
95 ::core::mem::transmute(__vi.method_ptr);
96 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
97 __inner(
98 __receiver,
99 ::core::convert::Into::into(from_person),
100 ::core::convert::Into::into(from_force),
101 ::core::convert::Into::into(to_person),
102 ::core::convert::Into::into(to_force),
103 __mi,
104 )
105 }
106 }
107 }
108}
109
110#[cfg(feature = "app-eachinspector")]
111impl<__T: IEachInspector> IEachInspectorMethods for __T {}
112
113#[cfg(feature = "app-eachinspector")]
114impl EachInspector {
115 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
116 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
117 }
118
119 pub fn is_each_method_info() -> &'static ::unity::il2cpp::MethodInfo {
120 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
121 }
122
123 pub fn is_eanble_method_info() -> &'static ::unity::il2cpp::MethodInfo {
124 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
125 }
126}
127
128#[cfg(feature = "app-eachinspector")]
129impl EachInspector {
130 #[doc = "Direct (non-virtual) call to `EachInspector`'s own `IsEanble`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
131 pub unsafe fn is_eanble(
132 this: impl ::core::convert::Into<::unity::IlInstance>,
133 from_person: i32,
134 from_force: i32,
135 to_person: i32,
136 to_force: i32,
137 ) -> bool {
138 let __mi = Self::is_eanble_method_info();
139 let __inner: extern "C" fn(::unity::IlInstance, i32, i32, i32, i32, ::unity::OptionalMethod) -> bool =
140 ::core::mem::transmute(__mi.method_ptr);
141 __inner(this.into(), from_person, from_force, to_person, to_force, ::core::option::Option::None)
142 }
143}
144
145#[cfg(feature = "app-eachinspector")]
146impl EachInspector {
147 #[doc = "`.ctor(crate::app::mapinspector::MapInspector_Kind, ::unity::Array<crate::moon_sharp::interpreter::dynvalue::DynValue>)` — overload selector"]
148 pub fn new(kind: crate::app::mapinspector::MapInspector_Kind, args: ::unity::Array<crate::moon_sharp::interpreter::dynvalue::DynValue>) -> Self {
149 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
150 panic!(
151 "{}
152::{}
153 failed to instantiate",
154 ::core::stringify!(EachInspector),
155 ::core::stringify!(new),
156 )
157 });
158 <Self as IEachInspectorMethods>::ctor(this, kind, args);
159 this
160 }
161}
162
163#[cfg(feature = "app-eachinspector")]
164#[doc(hidden)]
165pub mod prelude {
166 pub use super::{EachInspector, IEachInspector, IEachInspectorMethods};
167 #[cfg(feature = "app-mapinspector")]
168 pub use crate::app::mapinspector::IMapInspectorMethods;
169 #[cfg(feature = "app-scriptutil")]
170 pub use crate::app::scriptutil::IScriptUtilMethods;
171 #[cfg(feature = "system-object")]
172 pub use crate::system::object::IObjectMethods;
173 pub use crate::{
174 app::{mapinspector::IMapInspector, scriptutil::IScriptUtil},
175 system::object::IObject,
176 };
177}