Skip to main content

engage/generated/tm_pro/
fastaction_2.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "tm_pro-fastaction_2-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/tm_pro/fastaction_2/FastAction_2.md"))]
11    #[::unity::class(namespace = "TMPro", name = "FastAction`2")]
12    #[parent(crate::system::object::Object)]
13    pub struct FastAction_2<T0: ::unity::ClassIdentity, T1: ::unity::ClassIdentity> {
14        #[rename(name = "delegates")]
15        pub delegates: crate::system::collections::generic::linkedlist_1::LinkedList_1<crate::system::action_2::Action_2<T0, T1>>,
16        #[rename(name = "lookup")]
17        pub lookup: crate::system::collections::generic::dictionary_2::Dictionary_2<
18            crate::system::action_2::Action_2<T0, T1>,
19            crate::system::collections::generic::linkedlistnode_1::LinkedListNode_1<crate::system::action_2::Action_2<T0, T1>>,
20        >,
21    }
22}
23
24#[cfg(feature = "tm_pro-fastaction_2-types")]
25pub use __types::*;
26
27#[cfg(feature = "tm_pro-fastaction_2")]
28#[::unity::methods]
29impl<T0: ::unity::ClassIdentity, T1: ::unity::ClassIdentity> FastAction_2<T0, T1> {
30    #[doc = "`Add(crate::system::action_2::Action_2<T0,T1>)` overload"]
31    #[method(name = "Add", args = 1)]
32    pub fn add(self, rhs: crate::system::action_2::Action_2<T0, T1>) -> ();
33
34    #[doc = "`Remove(crate::system::action_2::Action_2<T0,T1>)` overload"]
35    #[method(name = "Remove", args = 1)]
36    pub fn remove(self, rhs: crate::system::action_2::Action_2<T0, T1>) -> ();
37
38    #[doc = "`Call(T0, T1)` overload"]
39    #[method(name = "Call", args = 2)]
40    pub fn call(self, a: T0, b: T1) -> ();
41
42    #[doc = "`.ctor()` overload"]
43    #[method(name = ".ctor", args = 0)]
44    pub fn ctor(self) -> ();
45}
46
47#[cfg(feature = "tm_pro-fastaction_2")]
48impl<T0: ::unity::ClassIdentity, T1: ::unity::ClassIdentity> FastAction_2<T0, T1> {
49    #[doc = "`.ctor()` — no args"]
50    pub fn new() -> Self {
51        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
52            panic!(
53                "{}
54::{}
55 failed to instantiate",
56                ::core::stringify!(FastAction_2),
57                ::core::stringify!(new),
58            )
59        });
60        <Self as IFastAction_2Methods<T0, T1>>::ctor(this);
61        this
62    }
63}
64
65#[cfg(feature = "tm_pro-fastaction_2")]
66#[doc(hidden)]
67pub mod prelude {
68    pub use super::{FastAction_2, IFastAction_2, IFastAction_2Methods};
69    pub use crate::system::object::IObject;
70    #[cfg(feature = "system-object")]
71    pub use crate::system::object::IObjectMethods;
72}