engage/generated/tm_pro/sprite_asset_utilities/
texturepacker_jsonarray.rs1#[cfg(feature = "tm_pro-sprite_asset_utilities-texturepacker_jsonarray-types")]
4mod __types {
5 #[allow(unused_imports)] use ::unity::prelude::*;
6
7 use super::*;
8 use crate::system::{
9 object::{IObject, Object},
10 valuetype::{IValueType, ValueType},
11 };
12
13 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/tm_pro/sprite_asset_utilities/texturepacker_jsonarray/TexturePacker_JsonArray_Frame.md"))]
14 #[repr(C)]
15 #[derive(::core::clone::Clone, ::core::marker::Copy)]
16 pub struct TexturePacker_JsonArray_Frame {
17 pub filename: ::unity::Il2CppString,
18 pub frame: crate::tm_pro::sprite_asset_utilities::texturepacker_jsonarray::TexturePacker_JsonArray_SpriteFrame,
19 pub rotated: bool,
20 pub trimmed: bool,
21 pub sprite_source_size: crate::tm_pro::sprite_asset_utilities::texturepacker_jsonarray::TexturePacker_JsonArray_SpriteFrame,
22 pub source_size: crate::tm_pro::sprite_asset_utilities::texturepacker_jsonarray::TexturePacker_JsonArray_SpriteSize,
23 pub pivot: crate::unity_engine::vector2::Vector2,
24 }
25 impl ::unity::ClassIdentity for TexturePacker_JsonArray_Frame {
26 const NAME: &'static str = "TexturePacker_JsonArray.Frame";
27 const NAMESPACE: &'static str = "TMPro.SpriteAssetUtilities";
28
29 fn class() -> ::unity::Class {
30 static CACHE: ::std::sync::OnceLock<::unity::Class> = ::std::sync::OnceLock::new();
31 *CACHE.get_or_init(|| ::unity::Class::lookup(Self::NAMESPACE, Self::NAME))
32 }
33 }
34 impl ::unity::IlType for TexturePacker_JsonArray_Frame {
35 fn il_type() -> &'static ::unity::il2cpp::Il2CppType {
36 &<Self as ::unity::ClassIdentity>::class().raw()._1.byval_arg
37 }
38 }
39
40 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/tm_pro/sprite_asset_utilities/texturepacker_jsonarray/TexturePacker_JsonArray_SpriteFrame.md"))]
41 #[repr(C)]
42 #[derive(::core::clone::Clone, ::core::marker::Copy)]
43 pub struct TexturePacker_JsonArray_SpriteFrame {
44 pub x: f32,
45 pub y: f32,
46 pub w: f32,
47 pub h: f32,
48 }
49 impl ::unity::ClassIdentity for TexturePacker_JsonArray_SpriteFrame {
50 const NAME: &'static str = "TexturePacker_JsonArray.SpriteFrame";
51 const NAMESPACE: &'static str = "TMPro.SpriteAssetUtilities";
52
53 fn class() -> ::unity::Class {
54 static CACHE: ::std::sync::OnceLock<::unity::Class> = ::std::sync::OnceLock::new();
55 *CACHE.get_or_init(|| ::unity::Class::lookup(Self::NAMESPACE, Self::NAME))
56 }
57 }
58 impl ::unity::IlType for TexturePacker_JsonArray_SpriteFrame {
59 fn il_type() -> &'static ::unity::il2cpp::Il2CppType {
60 &<Self as ::unity::ClassIdentity>::class().raw()._1.byval_arg
61 }
62 }
63
64 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/tm_pro/sprite_asset_utilities/texturepacker_jsonarray/TexturePacker_JsonArray.md"))]
65 #[::unity::class(namespace = "TMPro.SpriteAssetUtilities", name = "TexturePacker_JsonArray")]
66 #[parent(crate::system::object::Object)]
67 pub struct TexturePacker_JsonArray {}
68
69 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/tm_pro/sprite_asset_utilities/texturepacker_jsonarray/TexturePacker_JsonArray_Meta.md"))]
70 #[repr(C)]
71 #[derive(::core::clone::Clone, ::core::marker::Copy)]
72 pub struct TexturePacker_JsonArray_Meta {
73 pub app: ::unity::Il2CppString,
74 pub version: ::unity::Il2CppString,
75 pub image: ::unity::Il2CppString,
76 pub format: ::unity::Il2CppString,
77 pub size: crate::tm_pro::sprite_asset_utilities::texturepacker_jsonarray::TexturePacker_JsonArray_SpriteSize,
78 pub scale: f32,
79 pub smartupdate: ::unity::Il2CppString,
80 }
81 impl ::unity::ClassIdentity for TexturePacker_JsonArray_Meta {
82 const NAME: &'static str = "TexturePacker_JsonArray.Meta";
83 const NAMESPACE: &'static str = "TMPro.SpriteAssetUtilities";
84
85 fn class() -> ::unity::Class {
86 static CACHE: ::std::sync::OnceLock<::unity::Class> = ::std::sync::OnceLock::new();
87 *CACHE.get_or_init(|| ::unity::Class::lookup(Self::NAMESPACE, Self::NAME))
88 }
89 }
90 impl ::unity::IlType for TexturePacker_JsonArray_Meta {
91 fn il_type() -> &'static ::unity::il2cpp::Il2CppType {
92 &<Self as ::unity::ClassIdentity>::class().raw()._1.byval_arg
93 }
94 }
95
96 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/tm_pro/sprite_asset_utilities/texturepacker_jsonarray/TexturePacker_JsonArray_SpriteDataObject.md"))]
97 #[::unity::class(namespace = "TMPro.SpriteAssetUtilities", name = "TexturePacker_JsonArray.SpriteDataObject")]
98 #[parent(crate::system::object::Object)]
99 pub struct TexturePacker_JsonArray_SpriteDataObject {
100 #[offset(16)]
101 #[rename(name = "frames")]
102 pub frames: crate::system::collections::generic::list_1::List_1<
103 crate::tm_pro::sprite_asset_utilities::texturepacker_jsonarray::TexturePacker_JsonArray_Frame,
104 >,
105 #[offset(24)]
106 #[rename(name = "meta")]
107 pub meta: crate::tm_pro::sprite_asset_utilities::texturepacker_jsonarray::TexturePacker_JsonArray_Meta,
108 }
109
110 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/tm_pro/sprite_asset_utilities/texturepacker_jsonarray/TexturePacker_JsonArray_SpriteSize.md"))]
111 #[repr(C)]
112 #[derive(::core::clone::Clone, ::core::marker::Copy)]
113 pub struct TexturePacker_JsonArray_SpriteSize {
114 pub w: f32,
115 pub h: f32,
116 }
117 impl ::unity::ClassIdentity for TexturePacker_JsonArray_SpriteSize {
118 const NAME: &'static str = "TexturePacker_JsonArray.SpriteSize";
119 const NAMESPACE: &'static str = "TMPro.SpriteAssetUtilities";
120
121 fn class() -> ::unity::Class {
122 static CACHE: ::std::sync::OnceLock<::unity::Class> = ::std::sync::OnceLock::new();
123 *CACHE.get_or_init(|| ::unity::Class::lookup(Self::NAMESPACE, Self::NAME))
124 }
125 }
126 impl ::unity::IlType for TexturePacker_JsonArray_SpriteSize {
127 fn il_type() -> &'static ::unity::il2cpp::Il2CppType {
128 &<Self as ::unity::ClassIdentity>::class().raw()._1.byval_arg
129 }
130 }
131}
132
133#[cfg(feature = "tm_pro-sprite_asset_utilities-texturepacker_jsonarray-types")]
134pub use __types::*;
135
136#[cfg(feature = "tm_pro-sprite_asset_utilities-texturepacker_jsonarray")]
137impl TexturePacker_JsonArray_SpriteFrame {
138 #[doc = "`ToString()` overload"]
139 pub fn to_string(&mut self) -> ::unity::Il2CppString {
140 unsafe {
141 ::unity::il2cpp_call!((::unity::module_base()+0x3eaa920usize)as*mut u8, ::unity::Il2CppString;
142(*mut TexturePacker_JsonArray_SpriteFrame)self as*mut TexturePacker_JsonArray_SpriteFrame)
143 }
144 }
145}
146
147#[cfg(feature = "tm_pro-sprite_asset_utilities-texturepacker_jsonarray")]
148impl TexturePacker_JsonArray_SpriteFrame {
149 pub fn to_string_method_info() -> &'static ::unity::il2cpp::MethodInfo {
150 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
151 }
152}
153
154#[cfg(feature = "tm_pro-sprite_asset_utilities-texturepacker_jsonarray")]
155pub trait ITexturePacker_JsonArrayMethods: ITexturePacker_JsonArray {
156 #[doc = "`.ctor()` overload"]
157 fn ctor(self) -> () {
158 unsafe {
159 let __receiver =
160 <TexturePacker_JsonArray as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
161 ::unity::il2cpp_call!((::unity::module_base()+0x3ea8120usize)as*mut u8,();
162(TexturePacker_JsonArray)__receiver)
163 }
164 }
165}
166
167#[cfg(feature = "tm_pro-sprite_asset_utilities-texturepacker_jsonarray")]
168impl<__T: ITexturePacker_JsonArray> ITexturePacker_JsonArrayMethods for __T {}
169
170#[cfg(feature = "tm_pro-sprite_asset_utilities-texturepacker_jsonarray")]
171impl TexturePacker_JsonArray {
172 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
173 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
174 }
175}
176
177#[cfg(feature = "tm_pro-sprite_asset_utilities-texturepacker_jsonarray")]
178impl TexturePacker_JsonArray {
179 #[doc = "`.ctor()` — no args"]
180 pub fn new() -> Self {
181 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
182 panic!(
183 "{}
184::{}
185 failed to instantiate",
186 ::core::stringify!(TexturePacker_JsonArray),
187 ::core::stringify!(new),
188 )
189 });
190 <Self as ITexturePacker_JsonArrayMethods>::ctor(this);
191 this
192 }
193}
194
195#[cfg(feature = "tm_pro-sprite_asset_utilities-texturepacker_jsonarray")]
196pub trait ITexturePacker_JsonArray_SpriteDataObjectMethods: ITexturePacker_JsonArray_SpriteDataObject {
197 #[doc = "`.ctor()` overload"]
198 fn ctor(self) -> () {
199 unsafe {
200 let __receiver = <TexturePacker_JsonArray_SpriteDataObject as ::unity::FromIlInstance>::from_il_instance(
201 <Self as ::unity::SystemObject>::as_instance(self),
202 );
203 ::unity::il2cpp_call!((::unity::module_base()+0x3eaa910usize)as*mut u8,();
204(TexturePacker_JsonArray_SpriteDataObject)__receiver)
205 }
206 }
207}
208
209#[cfg(feature = "tm_pro-sprite_asset_utilities-texturepacker_jsonarray")]
210impl<__T: ITexturePacker_JsonArray_SpriteDataObject> ITexturePacker_JsonArray_SpriteDataObjectMethods for __T {}
211
212#[cfg(feature = "tm_pro-sprite_asset_utilities-texturepacker_jsonarray")]
213impl TexturePacker_JsonArray_SpriteDataObject {
214 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
215 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
216 }
217}
218
219#[cfg(feature = "tm_pro-sprite_asset_utilities-texturepacker_jsonarray")]
220impl TexturePacker_JsonArray_SpriteDataObject {
221 #[doc = "`.ctor()` — no args"]
222 pub fn new() -> Self {
223 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
224 panic!(
225 "{}
226::{}
227 failed to instantiate",
228 ::core::stringify!(TexturePacker_JsonArray_SpriteDataObject),
229 ::core::stringify!(new),
230 )
231 });
232 <Self as ITexturePacker_JsonArray_SpriteDataObjectMethods>::ctor(this);
233 this
234 }
235}
236
237#[cfg(feature = "tm_pro-sprite_asset_utilities-texturepacker_jsonarray")]
238impl TexturePacker_JsonArray_SpriteSize {
239 #[doc = "`ToString()` overload"]
240 pub fn to_string(&mut self) -> ::unity::Il2CppString {
241 unsafe {
242 ::unity::il2cpp_call!((::unity::module_base()+0x3eaac40usize)as*mut u8, ::unity::Il2CppString;
243(*mut TexturePacker_JsonArray_SpriteSize)self as*mut TexturePacker_JsonArray_SpriteSize)
244 }
245 }
246}
247
248#[cfg(feature = "tm_pro-sprite_asset_utilities-texturepacker_jsonarray")]
249impl TexturePacker_JsonArray_SpriteSize {
250 pub fn to_string_method_info() -> &'static ::unity::il2cpp::MethodInfo {
251 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
252 }
253}
254
255#[cfg(feature = "tm_pro-sprite_asset_utilities-texturepacker_jsonarray")]
256#[doc(hidden)]
257pub mod prelude {
258 pub use super::{
259 ITexturePacker_JsonArray, ITexturePacker_JsonArrayMethods, ITexturePacker_JsonArray_SpriteDataObject,
260 ITexturePacker_JsonArray_SpriteDataObjectMethods, TexturePacker_JsonArray, TexturePacker_JsonArray_Frame, TexturePacker_JsonArray_Meta,
261 TexturePacker_JsonArray_SpriteDataObject, TexturePacker_JsonArray_SpriteFrame, TexturePacker_JsonArray_SpriteSize,
262 };
263 #[cfg(feature = "system-object")]
264 pub use crate::system::object::IObjectMethods;
265 #[cfg(feature = "system-valuetype")]
266 pub use crate::system::valuetype::IValueTypeMethods;
267 pub use crate::system::{object::IObject, valuetype::IValueType};
268}