Skip to main content

engage/generated/system/
comparison_1.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "system-comparison_1-types")]
4mod __types {
5    #[allow(unused_imports)] use ::unity::prelude::*;
6
7    use super::*;
8    use crate::system::{
9        delegate::{Delegate, IDelegate},
10        multicastdelegate::{IMulticastDelegate, MulticastDelegate},
11        object::{IObject, Object},
12    };
13
14    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/system/comparison_1/Comparison_1.md"))]
15    #[::unity::class(namespace = "System", name = "Comparison`1")]
16    #[parent(crate::system::multicastdelegate::MulticastDelegate)]
17    #[parent(crate::system::delegate::Delegate)]
18    #[parent(crate::system::object::Object)]
19    pub struct Comparison_1<T0: ::unity::ClassIdentity> {}
20}
21
22#[cfg(feature = "system-comparison_1-types")]
23pub use __types::*;
24
25#[cfg(feature = "system-comparison_1")]
26#[::unity::methods]
27impl<T0: ::unity::ClassIdentity> Comparison_1<T0> {
28    #[doc = "`.ctor(crate::system::object::Object, ::unity::IntPtr)` overload"]
29    #[method(name = ".ctor", args = 2)]
30    pub fn ctor(self, object: crate::system::object::Object, method: ::unity::IntPtr) -> ();
31
32    #[doc = "`Invoke(T0, T0)` overload"]
33    #[method(name = "Invoke", args = 2)]
34    pub fn invoke(self, x: T0, y: T0) -> i32;
35}
36
37#[cfg(feature = "system-comparison_1")]
38impl<T0: ::unity::ClassIdentity> Comparison_1<T0> {
39    #[doc = "`.ctor(crate::system::object::Object, ::unity::IntPtr)` — overload selector"]
40    pub fn new(object: crate::system::object::Object, method: ::unity::IntPtr) -> Self {
41        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
42            panic!(
43                "{}
44::{}
45 failed to instantiate",
46                ::core::stringify!(Comparison_1),
47                ::core::stringify!(new),
48            )
49        });
50        <Self as IComparison_1Methods<T0>>::ctor(this, object, method);
51        this
52    }
53}
54
55#[cfg(feature = "system-comparison_1")]
56#[doc(hidden)]
57pub mod prelude {
58    pub use super::{Comparison_1, IComparison_1, IComparison_1Methods};
59    #[cfg(feature = "system-delegate")]
60    pub use crate::system::delegate::IDelegateMethods;
61    #[cfg(feature = "system-multicastdelegate")]
62    pub use crate::system::multicastdelegate::IMulticastDelegateMethods;
63    #[cfg(feature = "system-object")]
64    pub use crate::system::object::IObjectMethods;
65    pub use crate::system::{delegate::IDelegate, multicastdelegate::IMulticastDelegate, object::IObject};
66}