engage/generated/tm_pro/
fastaction.rs1#[cfg(feature = "tm_pro-fastaction-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/FastAction.md"))]
11 #[::unity::class(namespace = "TMPro", name = "FastAction")]
12 #[parent(crate::system::object::Object)]
13 pub struct FastAction {
14 #[offset(16)]
15 #[rename(name = "delegates")]
16 pub delegates: crate::system::collections::generic::linkedlist_1::LinkedList_1<crate::system::action::Action>,
17 #[offset(24)]
18 #[rename(name = "lookup")]
19 pub lookup: crate::system::collections::generic::dictionary_2::Dictionary_2<
20 crate::system::action::Action,
21 crate::system::collections::generic::linkedlistnode_1::LinkedListNode_1<crate::system::action::Action>,
22 >,
23 }
24}
25
26#[cfg(feature = "tm_pro-fastaction-types")]
27pub use __types::*;
28
29#[cfg(feature = "tm_pro-fastaction")]
30pub trait IFastActionMethods: IFastAction {
31 #[doc = "`Add(crate::system::action::Action)` overload"]
32 fn add(self, rhs: impl ::core::convert::Into<crate::system::action::Action>) -> () {
33 unsafe {
34 let __receiver = <FastAction as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
35 ::unity::il2cpp_call!((::unity::module_base()+0x2d8ba30usize)as*mut u8,();
36(FastAction)__receiver,(crate::system::action::Action)::core::convert::Into::into(rhs))
37 }
38 }
39 #[doc = "`Remove(crate::system::action::Action)` overload"]
40 fn remove(self, rhs: impl ::core::convert::Into<crate::system::action::Action>) -> () {
41 unsafe {
42 let __receiver = <FastAction as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
43 ::unity::il2cpp_call!((::unity::module_base()+0x2d8baf0usize)as*mut u8,();
44(FastAction)__receiver,(crate::system::action::Action)::core::convert::Into::into(rhs))
45 }
46 }
47 #[doc = "`Call()` overload"]
48 fn call(self) -> () {
49 unsafe {
50 let __receiver = <FastAction as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
51 ::unity::il2cpp_call!((::unity::module_base()+0x2d8bbb0usize)as*mut u8,();
52(FastAction)__receiver)
53 }
54 }
55 #[doc = "`.ctor()` overload"]
56 fn ctor(self) -> () {
57 unsafe {
58 let __receiver = <FastAction as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
59 ::unity::il2cpp_call!((::unity::module_base()+0x2d8bc40usize)as*mut u8,();
60(FastAction)__receiver)
61 }
62 }
63}
64
65#[cfg(feature = "tm_pro-fastaction")]
66impl<__T: IFastAction> IFastActionMethods for __T {}
67
68#[cfg(feature = "tm_pro-fastaction")]
69impl FastAction {
70 pub fn add_method_info() -> &'static ::unity::il2cpp::MethodInfo {
71 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
72 }
73
74 pub fn remove_method_info() -> &'static ::unity::il2cpp::MethodInfo {
75 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
76 }
77
78 pub fn call_method_info() -> &'static ::unity::il2cpp::MethodInfo {
79 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
80 }
81
82 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
83 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
84 }
85}
86
87#[cfg(feature = "tm_pro-fastaction")]
88impl FastAction {
89 #[doc = "`.ctor()` — no args"]
90 pub fn new() -> Self {
91 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
92 panic!(
93 "{}
94::{}
95 failed to instantiate",
96 ::core::stringify!(FastAction),
97 ::core::stringify!(new),
98 )
99 });
100 <Self as IFastActionMethods>::ctor(this);
101 this
102 }
103}
104
105#[cfg(feature = "tm_pro-fastaction")]
106#[doc(hidden)]
107pub mod prelude {
108 pub use super::{FastAction, IFastAction, IFastActionMethods};
109 pub use crate::system::object::IObject;
110 #[cfg(feature = "system-object")]
111 pub use crate::system::object::IObjectMethods;
112}