Skip to main content

engage/generated/app/
structreader.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "app-structreader-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/app/structreader/StructReader.md"))]
11    #[::unity::class(namespace = "App", name = "StructReader")]
12    #[parent(crate::system::object::Object)]
13    pub struct StructReader {}
14}
15
16#[cfg(feature = "app-structreader-types")]
17pub use __types::*;
18
19#[cfg(feature = "app-structreader")]
20pub trait IStructReaderMethods: IStructReader {
21    #[doc = "`.ctor()` overload"]
22    fn ctor(self) -> () {
23        unsafe {
24            let __receiver = <StructReader as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
25            ::unity::il2cpp_call!((::unity::module_base()+0x20ac300usize)as*mut u8,();
26(StructReader)__receiver)
27        }
28    }
29}
30
31#[cfg(feature = "app-structreader")]
32impl<__T: IStructReader> IStructReaderMethods for __T {}
33
34#[cfg(feature = "app-structreader")]
35impl StructReader {
36    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
37        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
38    }
39}
40
41#[cfg(feature = "app-structreader")]
42impl StructReader {
43    #[doc = "`.ctor()` — no args"]
44    pub fn new() -> Self {
45        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
46            panic!(
47                "{}
48::{}
49 failed to instantiate",
50                ::core::stringify!(StructReader),
51                ::core::stringify!(new),
52            )
53        });
54        <Self as IStructReaderMethods>::ctor(this);
55        this
56    }
57}
58
59#[cfg(feature = "app-structreader")]
60#[doc(hidden)]
61pub mod prelude {
62    pub use super::{IStructReader, IStructReaderMethods, StructReader};
63    pub use crate::system::object::IObject;
64    #[cfg(feature = "system-object")]
65    pub use crate::system::object::IObjectMethods;
66}