engage/generated/combat/
instancecache.rs1#[cfg(feature = "combat-instancecache-types")]
4mod __types {
5 #[allow(unused_imports)] use ::unity::prelude::*;
6
7 use super::*;
8 use crate::{
9 system::object::{IObject, Object},
10 unity_engine::{
11 behaviour::{Behaviour, IBehaviour},
12 component::{Component, IComponent},
13 monobehaviour::{IMonoBehaviour, MonoBehaviour},
14 object_2::{IObject_2, Object_2},
15 },
16 };
17
18 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/combat/instancecache/InstanceCache.md"))]
19 #[::unity::class(namespace = "Combat", name = "InstanceCache")]
20 #[parent(crate::unity_engine::monobehaviour::MonoBehaviour)]
21 pub struct InstanceCache {
22 #[static_field]
23 #[rename(name = "s_this")]
24 pub s_this: crate::combat::instancecache::InstanceCache,
25 #[static_field]
26 #[rename(name = "FreeTreeName")]
27 pub free_tree_name: ::unity::Il2CppString,
28 #[static_field]
29 #[rename(name = "UsedTreeName")]
30 pub used_tree_name: ::unity::Il2CppString,
31 #[offset(24)]
32 #[rename(name = "usedDic")]
33 pub used_dic: crate::system::collections::generic::dictionary_2::Dictionary_2<
34 crate::unity_engine::gameobject::GameObject,
35 crate::unity_engine::gameobject::GameObject,
36 >,
37 #[offset(32)]
38 #[rename(name = "freeDic")]
39 pub free_dic: crate::system::collections::generic::dictionary_2::Dictionary_2<
40 crate::unity_engine::gameobject::GameObject,
41 crate::system::collections::generic::stack_1::Stack_1<crate::unity_engine::gameobject::GameObject>,
42 >,
43 #[offset(40)]
44 #[rename(name = "usedNode")]
45 pub used_node: crate::unity_engine::transform::Transform,
46 #[offset(48)]
47 #[rename(name = "freeNode")]
48 pub free_node: crate::unity_engine::transform::Transform,
49 }
50}
51
52#[cfg(feature = "combat-instancecache-types")]
53pub use __types::*;
54
55#[cfg(feature = "combat-instancecache")]
56impl InstanceCache {
57 #[doc = "`get_Instance()` overload"]
58 pub fn get_instance() -> crate::combat::instancecache::InstanceCache {
59 unsafe {
60 ::unity::il2cpp_call!((::unity::module_base()+0x2916930usize)as*mut u8,crate::combat::instancecache::InstanceCache;
61 )
62 }
63 }
64}
65
66#[cfg(feature = "combat-instancecache")]
67pub trait IInstanceCacheMethods: IInstanceCache {
68 #[doc = "`get_UsedEffectRoot()` overload"]
69 fn get_used_effect_root(self) -> crate::unity_engine::transform::Transform {
70 unsafe {
71 let __receiver = <InstanceCache as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
72 ::unity::il2cpp_call!((::unity::module_base()+0x2916980usize)as*mut u8,crate::unity_engine::transform::Transform;
73(InstanceCache)__receiver)
74 }
75 }
76 #[doc = "`Awake()` overload"]
77 fn awake(self) -> () {
78 unsafe {
79 let __receiver = <InstanceCache as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
80 ::unity::il2cpp_call!((::unity::module_base()+0x2916990usize)as*mut u8,();
81(InstanceCache)__receiver)
82 }
83 }
84 #[doc = "`OnDestroy()` overload"]
85 fn on_destroy(self) -> () {
86 unsafe {
87 let __receiver = <InstanceCache as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
88 ::unity::il2cpp_call!((::unity::module_base()+0x2916c70usize)as*mut u8,();
89(InstanceCache)__receiver)
90 }
91 }
92 #[doc = "`Cleanup()` overload"]
93 fn cleanup(self) -> () {
94 unsafe {
95 let __receiver = <InstanceCache as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
96 ::unity::il2cpp_call!((::unity::module_base()+0x2916e70usize)as*mut u8,();
97(InstanceCache)__receiver)
98 }
99 }
100 #[doc = "`Create(crate::unity_engine::gameobject::GameObject, crate::unity_engine::transform::Transform)` overload"]
101 fn create(
102 self,
103 prefab: impl ::core::convert::Into<crate::unity_engine::gameobject::GameObject>,
104 parent: impl ::core::convert::Into<crate::unity_engine::transform::Transform>,
105 ) -> crate::unity_engine::gameobject::GameObject {
106 unsafe {
107 let __receiver = <InstanceCache as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
108 ::unity::il2cpp_call!((::unity::module_base()+0x2917350usize)as*mut u8,crate::unity_engine::gameobject::GameObject;
109(InstanceCache)__receiver,(crate::unity_engine::gameobject::GameObject)::core::convert::Into::into(prefab),(crate::unity_engine::transform::Transform)::core::convert::Into::into(parent))
110 }
111 }
112 #[doc = "`Delete(crate::unity_engine::gameobject::GameObject)` overload"]
113 fn delete(self, go: impl ::core::convert::Into<crate::unity_engine::gameobject::GameObject>) -> () {
114 unsafe {
115 let __receiver = <InstanceCache as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
116 ::unity::il2cpp_call!((::unity::module_base()+0x2917720usize)as*mut u8,();
117(InstanceCache)__receiver,(crate::unity_engine::gameobject::GameObject)::core::convert::Into::into(go))
118 }
119 }
120 #[doc = "`ReplayAwakeSound(crate::unity_engine::gameobject::GameObject)` overload"]
121 fn replay_awake_sound(self, go: impl ::core::convert::Into<crate::unity_engine::gameobject::GameObject>) -> () {
122 unsafe {
123 let __receiver = <InstanceCache as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
124 ::unity::il2cpp_call!((::unity::module_base()+0x2917650usize)as*mut u8,();
125(InstanceCache)__receiver,(crate::unity_engine::gameobject::GameObject)::core::convert::Into::into(go))
126 }
127 }
128 #[doc = "`.ctor()` overload"]
129 fn ctor(self) -> () {
130 unsafe {
131 let __receiver = <InstanceCache as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
132 ::unity::il2cpp_call!((::unity::module_base()+0x2917880usize)as*mut u8,();
133(InstanceCache)__receiver)
134 }
135 }
136}
137
138#[cfg(feature = "combat-instancecache")]
139impl<__T: IInstanceCache> IInstanceCacheMethods for __T {}
140
141#[cfg(feature = "combat-instancecache")]
142impl InstanceCache {
143 pub fn get_instance_method_info() -> &'static ::unity::il2cpp::MethodInfo {
144 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
145 }
146
147 pub fn get_used_effect_root_method_info() -> &'static ::unity::il2cpp::MethodInfo {
148 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
149 }
150
151 pub fn awake_method_info() -> &'static ::unity::il2cpp::MethodInfo {
152 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
153 }
154
155 pub fn on_destroy_method_info() -> &'static ::unity::il2cpp::MethodInfo {
156 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
157 }
158
159 pub fn cleanup_method_info() -> &'static ::unity::il2cpp::MethodInfo {
160 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
161 }
162
163 pub fn create_method_info() -> &'static ::unity::il2cpp::MethodInfo {
164 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
165 }
166
167 pub fn delete_method_info() -> &'static ::unity::il2cpp::MethodInfo {
168 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
169 }
170
171 pub fn replay_awake_sound_method_info() -> &'static ::unity::il2cpp::MethodInfo {
172 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
173 }
174
175 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
176 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
177 }
178}
179
180#[cfg(feature = "combat-instancecache")]
181impl InstanceCache {
182 #[doc = "`.ctor()` — no args"]
183 pub fn new() -> Self {
184 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
185 panic!(
186 "{}
187::{}
188 failed to instantiate",
189 ::core::stringify!(InstanceCache),
190 ::core::stringify!(new),
191 )
192 });
193 <Self as IInstanceCacheMethods>::ctor(this);
194 this
195 }
196}
197
198#[cfg(feature = "combat-instancecache")]
199#[doc(hidden)]
200pub mod prelude {
201 pub use super::{IInstanceCache, IInstanceCacheMethods, InstanceCache};
202 #[cfg(feature = "system-object")]
203 pub use crate::system::object::IObjectMethods;
204 #[cfg(feature = "unity_engine-behaviour")]
205 pub use crate::unity_engine::behaviour::IBehaviourMethods;
206 #[cfg(feature = "unity_engine-component")]
207 pub use crate::unity_engine::component::IComponentMethods;
208 #[cfg(feature = "unity_engine-monobehaviour")]
209 pub use crate::unity_engine::monobehaviour::IMonoBehaviourMethods;
210 #[cfg(feature = "unity_engine-object_2")]
211 pub use crate::unity_engine::object_2::IObject_2Methods;
212 pub use crate::{
213 system::object::IObject,
214 unity_engine::{behaviour::IBehaviour, component::IComponent, monobehaviour::IMonoBehaviour, object_2::IObject_2},
215 };
216}