engage/generated/app/
interruptinspector.rs1#[cfg(feature = "app-interruptinspector-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/interruptinspector/InterruptInspector.md"))]
17 #[::unity::class(namespace = "App", name = "InterruptInspector")]
18 #[parent(crate::app::mapinspector::MapInspector)]
19 pub struct InterruptInspector {
20 #[offset(48)]
21 #[rename(name = "m_Person")]
22 pub m_person: i32,
23 #[offset(52)]
24 #[rename(name = "m_Command")]
25 pub m_command: i32,
26 }
27}
28
29#[cfg(feature = "app-interruptinspector-types")]
30pub use __types::*;
31
32#[cfg(feature = "app-interruptinspector")]
33pub trait IInterruptInspectorMethods: IInterruptInspector {
34 #[doc = "`.ctor(crate::app::mapinspector::MapInspector_Kind, ::unity::Array<crate::moon_sharp::interpreter::dynvalue::DynValue>)` overload"]
35 fn ctor(
36 self,
37 kind: impl ::core::convert::Into<crate::app::mapinspector::MapInspector_Kind>,
38 args: impl ::core::convert::Into<::unity::Array<crate::moon_sharp::interpreter::dynvalue::DynValue>>,
39 ) -> () {
40 unsafe {
41 let __receiver = <InterruptInspector as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
42 ::unity::il2cpp_call!((::unity::module_base()+0x27956e0usize)as*mut u8,();
43(InterruptInspector)__receiver,(crate::app::mapinspector::MapInspector_Kind)::core::convert::Into::into(kind),(::unity::Array<crate::moon_sharp::interpreter::dynvalue::DynValue>)::core::convert::Into::into(args))
44 }
45 }
46 #[doc = "`IsEanble(i32, i32)` overload"]
47 fn is_eanble(self, person: impl ::core::convert::Into<i32>, hash: impl ::core::convert::Into<i32>) -> bool {
48 unsafe {
49 let __receiver = <InterruptInspector as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
50 {
51 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
52 let __vi = *__vt.get(7usize).unwrap_or_else(|| {
53 panic!(
54 "unity: virtual slot {}
55 out of range (vtable len {}
56) on the runtime class behind {}
57 (method `{}
58`)",
59 7usize,
60 __vt.len(),
61 <InterruptInspector as ::unity::ClassIdentity>::NAME,
62 "IsEanble",
63 )
64 });
65 let __inner: extern "C" fn(InterruptInspector, i32, i32, ::unity::OptionalMethod) -> bool = ::core::mem::transmute(__vi.method_ptr);
66 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
67 __inner(__receiver, ::core::convert::Into::into(person), ::core::convert::Into::into(hash), __mi)
68 }
69 }
70 }
71}
72
73#[cfg(feature = "app-interruptinspector")]
74impl<__T: IInterruptInspector> IInterruptInspectorMethods for __T {}
75
76#[cfg(feature = "app-interruptinspector")]
77impl InterruptInspector {
78 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
79 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
80 }
81
82 pub fn is_eanble_method_info() -> &'static ::unity::il2cpp::MethodInfo {
83 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
84 }
85}
86
87#[cfg(feature = "app-interruptinspector")]
88impl InterruptInspector {
89 #[doc = "Direct (non-virtual) call to `InterruptInspector`'s own `IsEanble`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
90 pub unsafe fn is_eanble(this: impl ::core::convert::Into<::unity::IlInstance>, person: i32, hash: i32) -> bool {
91 let __mi = Self::is_eanble_method_info();
92 let __inner: extern "C" fn(::unity::IlInstance, i32, i32, ::unity::OptionalMethod) -> bool = ::core::mem::transmute(__mi.method_ptr);
93 __inner(this.into(), person, hash, ::core::option::Option::None)
94 }
95}
96
97#[cfg(feature = "app-interruptinspector")]
98impl InterruptInspector {
99 #[doc = "`.ctor(crate::app::mapinspector::MapInspector_Kind, ::unity::Array<crate::moon_sharp::interpreter::dynvalue::DynValue>)` — overload selector"]
100 pub fn new(kind: crate::app::mapinspector::MapInspector_Kind, args: ::unity::Array<crate::moon_sharp::interpreter::dynvalue::DynValue>) -> Self {
101 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
102 panic!(
103 "{}
104::{}
105 failed to instantiate",
106 ::core::stringify!(InterruptInspector),
107 ::core::stringify!(new),
108 )
109 });
110 <Self as IInterruptInspectorMethods>::ctor(this, kind, args);
111 this
112 }
113}
114
115#[cfg(feature = "app-interruptinspector")]
116#[doc(hidden)]
117pub mod prelude {
118 pub use super::{IInterruptInspector, IInterruptInspectorMethods, InterruptInspector};
119 #[cfg(feature = "app-mapinspector")]
120 pub use crate::app::mapinspector::IMapInspectorMethods;
121 #[cfg(feature = "app-scriptutil")]
122 pub use crate::app::scriptutil::IScriptUtilMethods;
123 #[cfg(feature = "system-object")]
124 pub use crate::system::object::IObjectMethods;
125 pub use crate::{
126 app::{mapinspector::IMapInspector, scriptutil::IScriptUtil},
127 system::object::IObject,
128 };
129}