engage/generated/unity_engine/u2d/
spriteatlas.rs1#[cfg(feature = "unity_engine-u2d-spriteatlas-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::object_2::{IObject_2, Object_2},
11 };
12
13 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/unity_engine/u2d/spriteatlas/SpriteAtlas.md"))]
14 #[::unity::class(namespace = "UnityEngine.U2D", name = "SpriteAtlas")]
15 #[parent(crate::unity_engine::object_2::Object_2)]
16 pub struct SpriteAtlas {}
17}
18
19#[cfg(feature = "unity_engine-u2d-spriteatlas-types")]
20pub use __types::*;
21
22#[cfg(feature = "unity_engine-u2d-spriteatlas")]
23pub trait ISpriteAtlasMethods: ISpriteAtlas {
24 #[doc = "`get_isVariant()` overload"]
25 fn get_is_variant(self) -> bool {
26 unsafe {
27 let __receiver = <SpriteAtlas as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
28 ::unity::il2cpp_call!((::unity::module_base()+0x2f98c80usize)as*mut u8,bool;
29(SpriteAtlas)__receiver)
30 }
31 }
32 #[doc = "`get_tag()` overload"]
33 fn get_tag(self) -> ::unity::Il2CppString {
34 unsafe {
35 let __receiver = <SpriteAtlas as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
36 ::unity::il2cpp_call!((::unity::module_base()+0x2f98cd0usize)as*mut u8, ::unity::Il2CppString;
37(SpriteAtlas)__receiver)
38 }
39 }
40 #[doc = "`get_spriteCount()` overload"]
41 fn get_sprite_count(self) -> i32 {
42 unsafe {
43 let __receiver = <SpriteAtlas as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
44 ::unity::il2cpp_call!((::unity::module_base()+0x2f98d20usize)as*mut u8,i32;
45(SpriteAtlas)__receiver)
46 }
47 }
48 #[doc = "`CanBindTo(crate::unity_engine::sprite::Sprite)` overload"]
49 fn can_bind_to(self, sprite: impl ::core::convert::Into<crate::unity_engine::sprite::Sprite>) -> bool {
50 unsafe {
51 let __receiver = <SpriteAtlas as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
52 ::unity::il2cpp_call!((::unity::module_base()+0x2f98d70usize)as*mut u8,bool;
53(SpriteAtlas)__receiver,(crate::unity_engine::sprite::Sprite)::core::convert::Into::into(sprite))
54 }
55 }
56 #[doc = "`GetSprite(::unity::Il2CppString)` overload"]
57 fn get_sprite(self, name: impl ::core::convert::Into<::unity::Il2CppString>) -> crate::unity_engine::sprite::Sprite {
58 unsafe {
59 let __receiver = <SpriteAtlas as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
60 ::unity::il2cpp_call!((::unity::module_base()+0x2f98dc0usize)as*mut u8,crate::unity_engine::sprite::Sprite;
61(SpriteAtlas)__receiver,(::unity::Il2CppString)::core::convert::Into::into(name))
62 }
63 }
64 #[doc = "`GetSprites(::unity::Array<crate::unity_engine::sprite::Sprite>)` overload"]
65 fn get_sprites(self, sprites: impl ::core::convert::Into<::unity::Array<crate::unity_engine::sprite::Sprite>>) -> i32 {
66 unsafe {
67 let __receiver = <SpriteAtlas as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
68 ::unity::il2cpp_call!((::unity::module_base()+0x2f98e10usize)as*mut u8,i32;
69(SpriteAtlas)__receiver,(::unity::Array<crate::unity_engine::sprite::Sprite>)::core::convert::Into::into(sprites))
70 }
71 }
72 #[doc = "`GetSprites(::unity::Array<crate::unity_engine::sprite::Sprite>, ::unity::Il2CppString)` overload"]
73 fn get_sprites_2(
74 self,
75 sprites: impl ::core::convert::Into<::unity::Array<crate::unity_engine::sprite::Sprite>>,
76 name: impl ::core::convert::Into<::unity::Il2CppString>,
77 ) -> i32 {
78 unsafe {
79 let __receiver = <SpriteAtlas as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
80 ::unity::il2cpp_call!((::unity::module_base()+0x2f98eb0usize)as*mut u8,i32;
81(SpriteAtlas)__receiver,(::unity::Array<crate::unity_engine::sprite::Sprite>)::core::convert::Into::into(sprites),(::unity::Il2CppString)::core::convert::Into::into(name))
82 }
83 }
84 #[doc = "`GetSpritesScripting(::unity::Array<crate::unity_engine::sprite::Sprite>)` overload"]
85 fn get_sprites_scripting(self, sprites: impl ::core::convert::Into<::unity::Array<crate::unity_engine::sprite::Sprite>>) -> i32 {
86 unsafe {
87 let __receiver = <SpriteAtlas as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
88 ::unity::il2cpp_call!((::unity::module_base()+0x2f98e60usize)as*mut u8,i32;
89(SpriteAtlas)__receiver,(::unity::Array<crate::unity_engine::sprite::Sprite>)::core::convert::Into::into(sprites))
90 }
91 }
92 #[doc = "`GetSpritesWithNameScripting(::unity::Array<crate::unity_engine::sprite::Sprite>, ::unity::Il2CppString)` overload"]
93 fn get_sprites_with_name_scripting(
94 self,
95 sprites: impl ::core::convert::Into<::unity::Array<crate::unity_engine::sprite::Sprite>>,
96 name: impl ::core::convert::Into<::unity::Il2CppString>,
97 ) -> i32 {
98 unsafe {
99 let __receiver = <SpriteAtlas as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
100 ::unity::il2cpp_call!((::unity::module_base()+0x2f98f10usize)as*mut u8,i32;
101(SpriteAtlas)__receiver,(::unity::Array<crate::unity_engine::sprite::Sprite>)::core::convert::Into::into(sprites),(::unity::Il2CppString)::core::convert::Into::into(name))
102 }
103 }
104 #[doc = "`.ctor()` overload"]
105 fn ctor(self) -> () {
106 unsafe {
107 let __receiver = <SpriteAtlas as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
108 ::unity::il2cpp_call!((::unity::module_base()+0x2f98f70usize)as*mut u8,();
109(SpriteAtlas)__receiver)
110 }
111 }
112}
113
114#[cfg(feature = "unity_engine-u2d-spriteatlas")]
115impl<__T: ISpriteAtlas> ISpriteAtlasMethods for __T {}
116
117#[cfg(feature = "unity_engine-u2d-spriteatlas")]
118impl SpriteAtlas {
119 pub fn get_is_variant_method_info() -> &'static ::unity::il2cpp::MethodInfo {
120 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
121 }
122
123 pub fn get_tag_method_info() -> &'static ::unity::il2cpp::MethodInfo {
124 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
125 }
126
127 pub fn get_sprite_count_method_info() -> &'static ::unity::il2cpp::MethodInfo {
128 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
129 }
130
131 pub fn can_bind_to_method_info() -> &'static ::unity::il2cpp::MethodInfo {
132 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
133 }
134
135 pub fn get_sprite_method_info() -> &'static ::unity::il2cpp::MethodInfo {
136 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
137 }
138
139 pub fn get_sprites_method_info() -> &'static ::unity::il2cpp::MethodInfo {
140 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
141 }
142
143 pub fn get_sprites_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
144 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
145 }
146
147 pub fn get_sprites_scripting_method_info() -> &'static ::unity::il2cpp::MethodInfo {
148 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
149 }
150
151 pub fn get_sprites_with_name_scripting_method_info() -> &'static ::unity::il2cpp::MethodInfo {
152 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
153 }
154
155 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
156 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
157 }
158}
159
160#[cfg(feature = "unity_engine-u2d-spriteatlas")]
161impl SpriteAtlas {
162 #[doc = "`.ctor()` — no args"]
163 pub fn new() -> Self {
164 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
165 panic!(
166 "{}
167::{}
168 failed to instantiate",
169 ::core::stringify!(SpriteAtlas),
170 ::core::stringify!(new),
171 )
172 });
173 <Self as ISpriteAtlasMethods>::ctor(this);
174 this
175 }
176}
177
178#[cfg(feature = "unity_engine-u2d-spriteatlas")]
179#[doc(hidden)]
180pub mod prelude {
181 pub use super::{ISpriteAtlas, ISpriteAtlasMethods, SpriteAtlas};
182 #[cfg(feature = "system-object")]
183 pub use crate::system::object::IObjectMethods;
184 #[cfg(feature = "unity_engine-object_2")]
185 pub use crate::unity_engine::object_2::IObject_2Methods;
186 pub use crate::{system::object::IObject, unity_engine::object_2::IObject_2};
187}