Skip to main content

engage/generated/system/io/
stringresulthandler.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "system-io-stringresulthandler-types")]
4mod __types {
5    #[allow(unused_imports)] use ::unity::prelude::*;
6
7    use super::*;
8    use crate::system::{
9        io::searchresulthandler_1::{ISearchResultHandler_1, SearchResultHandler_1},
10        object::{IObject, Object},
11    };
12
13    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/system/io/stringresulthandler/StringResultHandler.md"))]
14    #[::unity::class(namespace = "System.IO", name = "StringResultHandler")]
15    #[parent(crate::system::io::searchresulthandler_1::SearchResultHandler_1< ::unity::Il2CppString>)]
16    pub struct StringResultHandler {
17        #[offset(16)]
18        #[rename(name = "_includeFiles")]
19        pub include_files: bool,
20        #[offset(17)]
21        #[rename(name = "_includeDirs")]
22        pub include_dirs: bool,
23    }
24}
25
26#[cfg(feature = "system-io-stringresulthandler-types")]
27pub use __types::*;
28
29#[cfg(feature = "system-io-stringresulthandler")]
30pub trait IStringResultHandlerMethods: IStringResultHandler {
31    #[doc = "`.ctor(bool, bool)` overload"]
32    fn ctor(self, include_files: impl ::core::convert::Into<bool>, include_dirs: impl ::core::convert::Into<bool>) -> () {
33        unsafe {
34            let __receiver = <StringResultHandler as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
35            ::unity::il2cpp_call!((::unity::module_base()+0x358c0a0usize)as*mut u8,();
36(StringResultHandler)__receiver,(bool)::core::convert::Into::into(include_files),(bool)::core::convert::Into::into(include_dirs))
37        }
38    }
39    #[doc = "`IsResultIncluded(crate::system::io::searchresult::SearchResult)` overload"]
40    fn is_result_included(self, result: impl ::core::convert::Into<crate::system::io::searchresult::SearchResult>) -> bool {
41        unsafe {
42            let __receiver = <StringResultHandler as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
43            {
44                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
45                let __vi = *__vt.get(4usize).unwrap_or_else(|| {
46                    panic!(
47                        "unity: virtual slot {}
48 out of range (vtable len {}
49) on the runtime class behind {}
50 (method `{}
51`)",
52                        4usize,
53                        __vt.len(),
54                        <StringResultHandler as ::unity::ClassIdentity>::NAME,
55                        "IsResultIncluded",
56                    )
57                });
58                let __inner: extern "C" fn(StringResultHandler, crate::system::io::searchresult::SearchResult, ::unity::OptionalMethod) -> bool =
59                    ::core::mem::transmute(__vi.method_ptr);
60                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
61                __inner(__receiver, ::core::convert::Into::into(result), __mi)
62            }
63        }
64    }
65    #[doc = "`CreateObject(crate::system::io::searchresult::SearchResult)` overload"]
66    fn create_object(self, result: impl ::core::convert::Into<crate::system::io::searchresult::SearchResult>) -> ::unity::Il2CppString {
67        unsafe {
68            let __receiver = <StringResultHandler as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
69            {
70                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
71                let __vi = *__vt.get(5usize).unwrap_or_else(|| {
72                    panic!(
73                        "unity: virtual slot {}
74 out of range (vtable len {}
75) on the runtime class behind {}
76 (method `{}
77`)",
78                        5usize,
79                        __vt.len(),
80                        <StringResultHandler as ::unity::ClassIdentity>::NAME,
81                        "CreateObject",
82                    )
83                });
84                let __inner: extern "C" fn(
85                    StringResultHandler,
86                    crate::system::io::searchresult::SearchResult,
87                    ::unity::OptionalMethod,
88                ) -> ::unity::Il2CppString = ::core::mem::transmute(__vi.method_ptr);
89                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
90                __inner(__receiver, ::core::convert::Into::into(result), __mi)
91            }
92        }
93    }
94}
95
96#[cfg(feature = "system-io-stringresulthandler")]
97impl<__T: IStringResultHandler> IStringResultHandlerMethods for __T {}
98
99#[cfg(feature = "system-io-stringresulthandler")]
100impl StringResultHandler {
101    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
102        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
103    }
104
105    pub fn is_result_included_method_info() -> &'static ::unity::il2cpp::MethodInfo {
106        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
107    }
108
109    pub fn create_object_method_info() -> &'static ::unity::il2cpp::MethodInfo {
110        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
111    }
112}
113
114#[cfg(feature = "system-io-stringresulthandler")]
115impl StringResultHandler {
116    #[doc = "Direct (non-virtual) call to `StringResultHandler`'s own `IsResultIncluded`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
117    pub unsafe fn is_result_included(
118        this: impl ::core::convert::Into<::unity::IlInstance>,
119        result: crate::system::io::searchresult::SearchResult,
120    ) -> bool {
121        let __mi = Self::is_result_included_method_info();
122        let __inner: extern "C" fn(::unity::IlInstance, crate::system::io::searchresult::SearchResult, ::unity::OptionalMethod) -> bool =
123            ::core::mem::transmute(__mi.method_ptr);
124        __inner(this.into(), result, ::core::option::Option::None)
125    }
126
127    #[doc = "Direct (non-virtual) call to `StringResultHandler`'s own `CreateObject`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
128    pub unsafe fn create_object(
129        this: impl ::core::convert::Into<::unity::IlInstance>,
130        result: crate::system::io::searchresult::SearchResult,
131    ) -> ::unity::Il2CppString {
132        let __mi = Self::create_object_method_info();
133        let __inner: extern "C" fn(
134            ::unity::IlInstance,
135            crate::system::io::searchresult::SearchResult,
136            ::unity::OptionalMethod,
137        ) -> ::unity::Il2CppString = ::core::mem::transmute(__mi.method_ptr);
138        __inner(this.into(), result, ::core::option::Option::None)
139    }
140}
141
142#[cfg(feature = "system-io-stringresulthandler")]
143impl StringResultHandler {
144    #[doc = "`.ctor(bool, bool)` — overload selector"]
145    pub fn new(include_files: bool, include_dirs: bool) -> Self {
146        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
147            panic!(
148                "{}
149::{}
150 failed to instantiate",
151                ::core::stringify!(StringResultHandler),
152                ::core::stringify!(new),
153            )
154        });
155        <Self as IStringResultHandlerMethods>::ctor(this, include_files, include_dirs);
156        this
157    }
158}
159
160#[cfg(feature = "system-io-stringresulthandler")]
161#[doc(hidden)]
162pub mod prelude {
163    pub use super::{IStringResultHandler, IStringResultHandlerMethods, StringResultHandler};
164    #[cfg(feature = "system-io-searchresulthandler_1")]
165    pub use crate::system::io::searchresulthandler_1::ISearchResultHandler_1Methods;
166    #[cfg(feature = "system-object")]
167    pub use crate::system::object::IObjectMethods;
168    pub use crate::system::{io::searchresulthandler_1::ISearchResultHandler_1, object::IObject};
169}