Skip to main content

engage/generated/root/
testsequence2.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "root-testsequence2-types")]
4mod __types {
5    #[allow(unused_imports)] use ::unity::prelude::*;
6
7    use super::*;
8    use crate::{
9        app::procinst::{IProcInst, ProcInst},
10        system::{
11            object::{IObject, Object},
12            r#enum::{Enum, IEnum},
13            valuetype::{IValueType, ValueType},
14        },
15    };
16
17    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/root/testsequence2/TestSequence2.md"))]
18    #[::unity::class(namespace = "", name = "TestSequence2")]
19    #[parent(crate::app::procinst::ProcInst)]
20    pub struct TestSequence2 {}
21
22    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/root/testsequence2/TestSequence2_Label.md"))]
23    #[repr(C)]
24    #[derive(::core::clone::Clone, ::core::marker::Copy, ::core::fmt::Debug, ::core::cmp::PartialEq, ::core::cmp::Eq)]
25    pub struct TestSequence2_Label {
26        pub value: i32,
27    }
28    impl ::unity::ClassIdentity for TestSequence2_Label {
29        const NAME: &'static str = "TestSequence2.Label";
30        const NAMESPACE: &'static str = "";
31
32        fn class() -> ::unity::Class {
33            static CACHE: ::std::sync::OnceLock<::unity::Class> = ::std::sync::OnceLock::new();
34            *CACHE.get_or_init(|| ::unity::Class::lookup(Self::NAMESPACE, Self::NAME))
35        }
36    }
37    impl ::unity::IlType for TestSequence2_Label {
38        fn il_type() -> &'static ::unity::il2cpp::Il2CppType {
39            &<Self as ::unity::ClassIdentity>::class().raw()._1.byval_arg
40        }
41    }
42    impl TestSequence2_Label {
43        pub fn end() -> Self {
44            Self { value: 0 }
45        }
46    }
47}
48
49#[cfg(feature = "root-testsequence2-types")]
50pub use __types::*;
51
52#[cfg(feature = "root-testsequence2")]
53impl TestSequence2 {
54    #[doc = "`CreateBind(crate::app::procinst::ProcInst)` overload"]
55    pub fn create_bind(super_: impl ::core::convert::Into<crate::app::procinst::ProcInst>) -> () {
56        unsafe {
57            ::unity::il2cpp_call!((::unity::module_base()+0x21e8310usize)as*mut u8,();
58(crate::app::procinst::ProcInst)::core::convert::Into::into(super_))
59        }
60    }
61}
62
63#[cfg(feature = "root-testsequence2")]
64pub trait ITestSequence2Methods: ITestSequence2 {
65    #[doc = "`ExecTest()` overload"]
66    fn exec_test(self) -> () {
67        unsafe {
68            let __receiver = <TestSequence2 as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
69            ::unity::il2cpp_call!((::unity::module_base()+0x21e8970usize)as*mut u8,();
70(TestSequence2)__receiver)
71        }
72    }
73    #[doc = "`TickTest()` overload"]
74    fn tick_test(self) -> () {
75        unsafe {
76            let __receiver = <TestSequence2 as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
77            ::unity::il2cpp_call!((::unity::module_base()+0x21e8980usize)as*mut u8,();
78(TestSequence2)__receiver)
79        }
80    }
81    #[doc = "`.ctor()` overload"]
82    fn ctor(self) -> () {
83        unsafe {
84            let __receiver = <TestSequence2 as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
85            ::unity::il2cpp_call!((::unity::module_base()+0x21e8ad0usize)as*mut u8,();
86(TestSequence2)__receiver)
87        }
88    }
89}
90
91#[cfg(feature = "root-testsequence2")]
92impl<__T: ITestSequence2> ITestSequence2Methods for __T {}
93
94#[cfg(feature = "root-testsequence2")]
95impl TestSequence2 {
96    pub fn exec_test_method_info() -> &'static ::unity::il2cpp::MethodInfo {
97        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
98    }
99
100    pub fn tick_test_method_info() -> &'static ::unity::il2cpp::MethodInfo {
101        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
102    }
103
104    pub fn create_bind_method_info() -> &'static ::unity::il2cpp::MethodInfo {
105        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
106    }
107
108    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
109        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
110    }
111}
112
113#[cfg(feature = "root-testsequence2")]
114impl TestSequence2 {
115    #[doc = "`.ctor()` — no args"]
116    pub fn new() -> Self {
117        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
118            panic!(
119                "{}
120::{}
121 failed to instantiate",
122                ::core::stringify!(TestSequence2),
123                ::core::stringify!(new),
124            )
125        });
126        <Self as ITestSequence2Methods>::ctor(this);
127        this
128    }
129}
130
131#[cfg(feature = "root-testsequence2")]
132#[doc(hidden)]
133pub mod prelude {
134    pub use super::{ITestSequence2, ITestSequence2Methods, TestSequence2, TestSequence2_Label};
135    #[cfg(feature = "app-procinst")]
136    pub use crate::app::procinst::IProcInstMethods;
137    #[cfg(feature = "system-object")]
138    pub use crate::system::object::IObjectMethods;
139    #[cfg(feature = "system-enum")]
140    pub use crate::system::r#enum::IEnumMethods;
141    #[cfg(feature = "system-valuetype")]
142    pub use crate::system::valuetype::IValueTypeMethods;
143    pub use crate::{
144        app::procinst::IProcInst,
145        system::{object::IObject, r#enum::IEnum, valuetype::IValueType},
146    };
147}