Skip to main content

engage/generated/system/reflection/
manifestresourceinfo.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "system-reflection-manifestresourceinfo-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/system/reflection/manifestresourceinfo/ManifestResourceInfo.md"))]
11    #[::unity::class(namespace = "System.Reflection", name = "ManifestResourceInfo")]
12    #[parent(crate::system::object::Object)]
13    pub struct ManifestResourceInfo {
14        #[offset(16)]
15        #[rename(name = "_containingAssembly")]
16        pub containing_assembly: crate::system::reflection::assembly::Assembly,
17        #[offset(24)]
18        #[rename(name = "_containingFileName")]
19        pub containing_file_name: ::unity::Il2CppString,
20        #[offset(32)]
21        #[rename(name = "_resourceLocation")]
22        pub resource_location: crate::system::reflection::resourcelocation::ResourceLocation,
23    }
24}
25
26#[cfg(feature = "system-reflection-manifestresourceinfo-types")]
27pub use __types::*;
28
29#[cfg(feature = "system-reflection-manifestresourceinfo")]
30pub trait IManifestResourceInfoMethods: IManifestResourceInfo {
31    #[doc = "`.ctor(crate::system::reflection::assembly::Assembly, ::unity::Il2CppString, crate::system::reflection::resourcelocation::ResourceLocation)` overload"]
32    fn ctor(
33        self,
34        containing_assembly: impl ::core::convert::Into<crate::system::reflection::assembly::Assembly>,
35        containing_file_name: impl ::core::convert::Into<::unity::Il2CppString>,
36        resource_location: impl ::core::convert::Into<crate::system::reflection::resourcelocation::ResourceLocation>,
37    ) -> () {
38        unsafe {
39            let __receiver = <ManifestResourceInfo as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
40            ::unity::il2cpp_call!((::unity::module_base()+0x336b270usize)as*mut u8,();
41(ManifestResourceInfo)__receiver,(crate::system::reflection::assembly::Assembly)::core::convert::Into::into(containing_assembly),(::unity::Il2CppString)::core::convert::Into::into(containing_file_name),(crate::system::reflection::resourcelocation::ResourceLocation)::core::convert::Into::into(resource_location))
42        }
43    }
44    #[doc = "`get_ReferencedAssembly()` overload"]
45    fn get_referenced_assembly(self) -> crate::system::reflection::assembly::Assembly {
46        unsafe {
47            let __receiver = <ManifestResourceInfo as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
48            {
49                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
50                let __vi = *__vt.get(4usize).unwrap_or_else(|| {
51                    panic!(
52                        "unity: virtual slot {}
53 out of range (vtable len {}
54) on the runtime class behind {}
55 (method `{}
56`)",
57                        4usize,
58                        __vt.len(),
59                        <ManifestResourceInfo as ::unity::ClassIdentity>::NAME,
60                        "get_ReferencedAssembly",
61                    )
62                });
63                let __inner: extern "C" fn(ManifestResourceInfo, ::unity::OptionalMethod) -> crate::system::reflection::assembly::Assembly =
64                    ::core::mem::transmute(__vi.method_ptr);
65                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
66                __inner(__receiver, __mi)
67            }
68        }
69    }
70    #[doc = "`get_FileName()` overload"]
71    fn get_file_name(self) -> ::unity::Il2CppString {
72        unsafe {
73            let __receiver = <ManifestResourceInfo as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
74            {
75                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
76                let __vi = *__vt.get(5usize).unwrap_or_else(|| {
77                    panic!(
78                        "unity: virtual slot {}
79 out of range (vtable len {}
80) on the runtime class behind {}
81 (method `{}
82`)",
83                        5usize,
84                        __vt.len(),
85                        <ManifestResourceInfo as ::unity::ClassIdentity>::NAME,
86                        "get_FileName",
87                    )
88                });
89                let __inner: extern "C" fn(ManifestResourceInfo, ::unity::OptionalMethod) -> ::unity::Il2CppString =
90                    ::core::mem::transmute(__vi.method_ptr);
91                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
92                __inner(__receiver, __mi)
93            }
94        }
95    }
96    #[doc = "`get_ResourceLocation()` overload"]
97    fn get_resource_location(self) -> crate::system::reflection::resourcelocation::ResourceLocation {
98        unsafe {
99            let __receiver = <ManifestResourceInfo as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
100            {
101                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
102                let __vi = *__vt.get(6usize).unwrap_or_else(|| {
103                    panic!(
104                        "unity: virtual slot {}
105 out of range (vtable len {}
106) on the runtime class behind {}
107 (method `{}
108`)",
109                        6usize,
110                        __vt.len(),
111                        <ManifestResourceInfo as ::unity::ClassIdentity>::NAME,
112                        "get_ResourceLocation",
113                    )
114                });
115                let __inner: extern "C" fn(
116                    ManifestResourceInfo,
117                    ::unity::OptionalMethod,
118                ) -> crate::system::reflection::resourcelocation::ResourceLocation = ::core::mem::transmute(__vi.method_ptr);
119                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
120                __inner(__receiver, __mi)
121            }
122        }
123    }
124}
125
126#[cfg(feature = "system-reflection-manifestresourceinfo")]
127impl<__T: IManifestResourceInfo> IManifestResourceInfoMethods for __T {}
128
129#[cfg(feature = "system-reflection-manifestresourceinfo")]
130impl ManifestResourceInfo {
131    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
132        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
133    }
134
135    pub fn get_referenced_assembly_method_info() -> &'static ::unity::il2cpp::MethodInfo {
136        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
137    }
138
139    pub fn get_file_name_method_info() -> &'static ::unity::il2cpp::MethodInfo {
140        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
141    }
142
143    pub fn get_resource_location_method_info() -> &'static ::unity::il2cpp::MethodInfo {
144        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
145    }
146}
147
148#[cfg(feature = "system-reflection-manifestresourceinfo")]
149impl ManifestResourceInfo {
150    #[doc = "Direct (non-virtual) call to `ManifestResourceInfo`'s own `get_ReferencedAssembly`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
151    pub unsafe fn get_referenced_assembly(this: impl ::core::convert::Into<::unity::IlInstance>) -> crate::system::reflection::assembly::Assembly {
152        let __mi = Self::get_referenced_assembly_method_info();
153        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> crate::system::reflection::assembly::Assembly =
154            ::core::mem::transmute(__mi.method_ptr);
155        __inner(this.into(), ::core::option::Option::None)
156    }
157
158    #[doc = "Direct (non-virtual) call to `ManifestResourceInfo`'s own `get_FileName`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
159    pub unsafe fn get_file_name(this: impl ::core::convert::Into<::unity::IlInstance>) -> ::unity::Il2CppString {
160        let __mi = Self::get_file_name_method_info();
161        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> ::unity::Il2CppString = ::core::mem::transmute(__mi.method_ptr);
162        __inner(this.into(), ::core::option::Option::None)
163    }
164
165    #[doc = "Direct (non-virtual) call to `ManifestResourceInfo`'s own `get_ResourceLocation`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
166    pub unsafe fn get_resource_location(
167        this: impl ::core::convert::Into<::unity::IlInstance>,
168    ) -> crate::system::reflection::resourcelocation::ResourceLocation {
169        let __mi = Self::get_resource_location_method_info();
170        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> crate::system::reflection::resourcelocation::ResourceLocation =
171            ::core::mem::transmute(__mi.method_ptr);
172        __inner(this.into(), ::core::option::Option::None)
173    }
174}
175
176#[cfg(feature = "system-reflection-manifestresourceinfo")]
177impl ManifestResourceInfo {
178    #[doc = "`.ctor(crate::system::reflection::assembly::Assembly, ::unity::Il2CppString, crate::system::reflection::resourcelocation::ResourceLocation)` — overload selector"]
179    pub fn new(
180        containing_assembly: crate::system::reflection::assembly::Assembly,
181        containing_file_name: ::unity::Il2CppString,
182        resource_location: crate::system::reflection::resourcelocation::ResourceLocation,
183    ) -> Self {
184        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
185            panic!(
186                "{}
187::{}
188 failed to instantiate",
189                ::core::stringify!(ManifestResourceInfo),
190                ::core::stringify!(new),
191            )
192        });
193        <Self as IManifestResourceInfoMethods>::ctor(this, containing_assembly, containing_file_name, resource_location);
194        this
195    }
196}
197
198#[cfg(feature = "system-reflection-manifestresourceinfo")]
199#[doc(hidden)]
200pub mod prelude {
201    pub use super::{IManifestResourceInfo, IManifestResourceInfoMethods, ManifestResourceInfo};
202    pub use crate::system::object::IObject;
203    #[cfg(feature = "system-object")]
204    pub use crate::system::object::IObjectMethods;
205}