Skip to content

Commit d841980

Browse files
committed
Fields use offset for immediate access
1 parent 8a26c63 commit d841980

2,417 files changed

Lines changed: 399358 additions & 383810 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

src/generated/app/accessorydata.rs

Lines changed: 33 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,24 @@ mod __types {
1818
},
1919
};
2020

21-
#[doc = include_str!(concat!(env!("CARGO_MANIFEST_DIR"), "/", "docs/app/accessorydata/AccessoryData_Masks.md"))]
21+
# [doc = include_str ! (concat ! (env ! ("CARGO_MANIFEST_DIR") , "/" , "docs/app/accessorydata/AccessoryData.md"))]
22+
#[::unity2::class(namespace = "App", name = "AccessoryData")]
23+
# [parent (crate :: app :: structdata_1 :: StructData_1 < crate :: app :: accessorydata :: AccessoryData >)]
24+
pub struct AccessoryData {
25+
#[offset(168)]
26+
#[rename(name = "FlagName")]
27+
pub flag_name: ::unity2::Il2CppString,
28+
}
29+
30+
#[doc = include_str!(concat!(env!("CARGO_MANIFEST_DIR"), "/", "docs/app/accessorydata/AccessoryData_Kinds.md"))]
2231
#[repr(C)]
2332
#[derive(::core::clone::Clone, ::core::marker::Copy, ::core::fmt::Debug, ::core::cmp::PartialEq, ::core::cmp::Eq)]
24-
pub struct AccessoryData_Masks {
33+
pub struct AccessoryData_Kinds {
2534
pub value: i32,
2635
}
2736

28-
impl ::unity2::ClassIdentity for AccessoryData_Masks {
29-
const NAME: &'static str = "AccessoryData.Masks";
37+
impl ::unity2::ClassIdentity for AccessoryData_Kinds {
38+
const NAME: &'static str = "AccessoryData.Kinds";
3039
const NAMESPACE: &'static str = "App";
3140

3241
fn class() -> ::unity2::Class {
@@ -36,39 +45,43 @@ mod __types {
3645
}
3746
}
3847

39-
impl ::unity2::IlType for AccessoryData_Masks {
48+
impl ::unity2::IlType for AccessoryData_Kinds {
4049
fn il_type() -> &'static ::unity2::il2cpp::Il2CppType {
4150
&<Self as ::unity2::ClassIdentity>::class().raw()._1.byval_arg
4251
}
4352
}
4453

45-
impl AccessoryData_Masks {
54+
impl AccessoryData_Kinds {
4655
pub fn body() -> Self {
47-
Self { value: 1 }
56+
Self { value: 0 }
4857
}
4958

5059
pub fn head() -> Self {
51-
Self { value: 2 }
60+
Self { value: 1 }
5261
}
5362

5463
pub fn face() -> Self {
55-
Self { value: 4 }
64+
Self { value: 2 }
5665
}
5766

5867
pub fn back() -> Self {
59-
Self { value: 8 }
68+
Self { value: 3 }
69+
}
70+
71+
pub fn num() -> Self {
72+
Self { value: 4 }
6073
}
6174
}
6275

63-
#[doc = include_str!(concat!(env!("CARGO_MANIFEST_DIR"), "/", "docs/app/accessorydata/AccessoryData_Kinds.md"))]
76+
#[doc = include_str!(concat!(env!("CARGO_MANIFEST_DIR"), "/", "docs/app/accessorydata/AccessoryData_Masks.md"))]
6477
#[repr(C)]
6578
#[derive(::core::clone::Clone, ::core::marker::Copy, ::core::fmt::Debug, ::core::cmp::PartialEq, ::core::cmp::Eq)]
66-
pub struct AccessoryData_Kinds {
79+
pub struct AccessoryData_Masks {
6780
pub value: i32,
6881
}
6982

70-
impl ::unity2::ClassIdentity for AccessoryData_Kinds {
71-
const NAME: &'static str = "AccessoryData.Kinds";
83+
impl ::unity2::ClassIdentity for AccessoryData_Masks {
84+
const NAME: &'static str = "AccessoryData.Masks";
7285
const NAMESPACE: &'static str = "App";
7386

7487
fn class() -> ::unity2::Class {
@@ -78,41 +91,29 @@ mod __types {
7891
}
7992
}
8093

81-
impl ::unity2::IlType for AccessoryData_Kinds {
94+
impl ::unity2::IlType for AccessoryData_Masks {
8295
fn il_type() -> &'static ::unity2::il2cpp::Il2CppType {
8396
&<Self as ::unity2::ClassIdentity>::class().raw()._1.byval_arg
8497
}
8598
}
8699

87-
impl AccessoryData_Kinds {
100+
impl AccessoryData_Masks {
88101
pub fn body() -> Self {
89-
Self { value: 0 }
102+
Self { value: 1 }
90103
}
91104

92105
pub fn head() -> Self {
93-
Self { value: 1 }
106+
Self { value: 2 }
94107
}
95108

96109
pub fn face() -> Self {
97-
Self { value: 2 }
110+
Self { value: 4 }
98111
}
99112

100113
pub fn back() -> Self {
101-
Self { value: 3 }
102-
}
103-
104-
pub fn num() -> Self {
105-
Self { value: 4 }
114+
Self { value: 8 }
106115
}
107116
}
108-
109-
# [doc = include_str ! (concat ! (env ! ("CARGO_MANIFEST_DIR") , "/" , "docs/app/accessorydata/AccessoryData.md"))]
110-
#[::unity2::class(namespace = "App", name = "AccessoryData")]
111-
# [parent (crate :: app :: structdata_1 :: StructData_1 < crate :: app :: accessorydata :: AccessoryData >)]
112-
pub struct AccessoryData {
113-
#[rename(name = "FlagName")]
114-
pub flag_name: ::unity2::Il2CppString,
115-
}
116117
}
117118

118119
#[cfg(feature = "app-accessorydata-types")]

src/generated/app/accessorydetailinfowindow.rs

Lines changed: 90 additions & 84 deletions
Original file line numberDiff line numberDiff line change
@@ -15,34 +15,112 @@ mod __types {
1515
},
1616
};
1717

18-
# [doc = include_str ! (concat ! (env ! ("CARGO_MANIFEST_DIR") , "/" , "docs/app/accessorydetailinfowindow/AccessoryDetailInfoWindow.md"))]
19-
#[::unity2::class(namespace = "App", name = "AccessoryDetailInfoWindow")]
20-
#[parent(crate::unity_engine::monobehaviour::MonoBehaviour)]
21-
pub struct AccessoryDetailInfoWindow {
22-
#[rename(name = "m_AccessoryName")]
23-
pub m_accessory_name: crate::tm_pro::textmeshprougui::TextMeshProUGUI,
24-
#[rename(name = "m_Message")]
25-
pub m_message: crate::tm_pro::textmeshprougui::TextMeshProUGUI,
26-
#[rename(name = "m_BodyParts")]
27-
pub m_body_parts: ::unity2::Array<crate::app::accessorydetailinfowindow::AccessoryDetailInfoWindow_BodyParts>,
28-
}
29-
3018
# [doc = include_str ! (concat ! (env ! ("CARGO_MANIFEST_DIR") , "/" , "docs/app/accessorydetailinfowindow/AccessoryDetailInfoWindow_BodyParts.md"))]
3119
#[::unity2::class(namespace = "App", name = "AccessoryDetailInfoWindow.BodyParts")]
3220
#[parent(crate::system::object::Object)]
3321
pub struct AccessoryDetailInfoWindow_BodyParts {
22+
#[offset(16)]
3423
#[rename(name = "m_Object")]
3524
pub m_object: crate::unity_engine::gameobject::GameObject,
25+
#[offset(24)]
3626
#[rename(name = "m_Image")]
3727
pub m_image: crate::unity_engine::ui::image::Image,
28+
#[offset(32)]
3829
#[rename(name = "m_Text")]
3930
pub m_text: crate::tm_pro::textmeshprougui::TextMeshProUGUI,
4031
}
32+
33+
# [doc = include_str ! (concat ! (env ! ("CARGO_MANIFEST_DIR") , "/" , "docs/app/accessorydetailinfowindow/AccessoryDetailInfoWindow.md"))]
34+
#[::unity2::class(namespace = "App", name = "AccessoryDetailInfoWindow")]
35+
#[parent(crate::unity_engine::monobehaviour::MonoBehaviour)]
36+
pub struct AccessoryDetailInfoWindow {
37+
#[offset(24)]
38+
#[rename(name = "m_AccessoryName")]
39+
pub m_accessory_name: crate::tm_pro::textmeshprougui::TextMeshProUGUI,
40+
#[offset(32)]
41+
#[rename(name = "m_Message")]
42+
pub m_message: crate::tm_pro::textmeshprougui::TextMeshProUGUI,
43+
#[offset(40)]
44+
#[rename(name = "m_BodyParts")]
45+
pub m_body_parts: ::unity2::Array<crate::app::accessorydetailinfowindow::AccessoryDetailInfoWindow_BodyParts>,
46+
}
4147
}
4248

4349
#[cfg(feature = "app-accessorydetailinfowindow-types")]
4450
pub use __types::*;
4551

52+
#[cfg(feature = "app-accessorydetailinfowindow")]
53+
#[doc(hidden)]
54+
#[allow(non_snake_case, non_camel_case_types, clippy::too_many_arguments)]
55+
mod __AccessoryDetailInfoWindow_BodyParts_unity2_raw {
56+
use super::*;
57+
#[doc(hidden)]
58+
#[allow(non_snake_case)]
59+
pub mod __lookup_ctor {
60+
use super::*;
61+
static METHOD: ::std::sync::LazyLock<::unity2::Il2CppResult<&'static ::unity2::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
62+
let param_types: &[&'static ::unity2::il2cpp::Il2CppType] = &[];
63+
::unity2::lookup::method_info_on_class_with_signature(
64+
<AccessoryDetailInfoWindow_BodyParts as ::unity2::ClassIdentity>::class(),
65+
".ctor",
66+
0,
67+
param_types,
68+
false,
69+
)
70+
});
71+
pub fn get_method_info() -> &'static ::unity2::il2cpp::MethodInfo {
72+
match &*METHOD {
73+
::core::result::Result::Ok(mi) => *mi,
74+
::core::result::Result::Err(e) => {
75+
panic!(
76+
"method lookup failed: {}::{}: {}",
77+
<AccessoryDetailInfoWindow_BodyParts as ::unity2::ClassIdentity>::NAME,
78+
".ctor",
79+
e
80+
)
81+
},
82+
}
83+
}
84+
}
85+
pub unsafe fn ctor(this: AccessoryDetailInfoWindow_BodyParts, __unity2_method_info: ::unity2::OptionalMethod) -> () {
86+
let inner: extern "C" fn(AccessoryDetailInfoWindow_BodyParts, ::unity2::OptionalMethod) -> () =
87+
::core::mem::transmute(__lookup_ctor::get_method_info().method_ptr);
88+
inner(this, __unity2_method_info)
89+
}
90+
}
91+
92+
#[cfg(feature = "app-accessorydetailinfowindow")]
93+
pub trait IAccessoryDetailInfoWindow_BodyPartsMethods: IAccessoryDetailInfoWindow_BodyParts {
94+
#[doc = "`.ctor()` overload"]
95+
fn ctor(self) -> () {
96+
unsafe {
97+
let __receiver = <AccessoryDetailInfoWindow_BodyParts as ::unity2::FromIlInstance>::from_il_instance(
98+
<Self as ::unity2::SystemObject>::as_instance(self),
99+
);
100+
__AccessoryDetailInfoWindow_BodyParts_unity2_raw::ctor(__receiver, ::core::option::Option::None)
101+
}
102+
}
103+
}
104+
105+
#[cfg(feature = "app-accessorydetailinfowindow")]
106+
impl<__T: IAccessoryDetailInfoWindow_BodyParts> IAccessoryDetailInfoWindow_BodyPartsMethods for __T {}
107+
108+
#[cfg(feature = "app-accessorydetailinfowindow")]
109+
impl AccessoryDetailInfoWindow_BodyParts {
110+
#[doc = "`.ctor()` — no args"]
111+
pub fn new() -> Self {
112+
let this = <Self as ::unity2::FromIlInstance>::instantiate().unwrap_or_else(|| {
113+
panic!(
114+
"{}::{} failed to instantiate",
115+
::core::stringify!(AccessoryDetailInfoWindow_BodyParts),
116+
::core::stringify!(new),
117+
)
118+
});
119+
<Self as IAccessoryDetailInfoWindow_BodyPartsMethods>::ctor(this);
120+
this
121+
}
122+
}
123+
46124
#[cfg(feature = "app-accessorydetailinfowindow")]
47125
#[doc(hidden)]
48126
#[allow(non_snake_case, non_camel_case_types, clippy::too_many_arguments)]
@@ -299,78 +377,6 @@ impl AccessoryDetailInfoWindow {
299377
}
300378
}
301379

302-
#[cfg(feature = "app-accessorydetailinfowindow")]
303-
#[doc(hidden)]
304-
#[allow(non_snake_case, non_camel_case_types, clippy::too_many_arguments)]
305-
mod __AccessoryDetailInfoWindow_BodyParts_unity2_raw {
306-
use super::*;
307-
#[doc(hidden)]
308-
#[allow(non_snake_case)]
309-
pub mod __lookup_ctor {
310-
use super::*;
311-
static METHOD: ::std::sync::LazyLock<::unity2::Il2CppResult<&'static ::unity2::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
312-
let param_types: &[&'static ::unity2::il2cpp::Il2CppType] = &[];
313-
::unity2::lookup::method_info_on_class_with_signature(
314-
<AccessoryDetailInfoWindow_BodyParts as ::unity2::ClassIdentity>::class(),
315-
".ctor",
316-
0,
317-
param_types,
318-
false,
319-
)
320-
});
321-
pub fn get_method_info() -> &'static ::unity2::il2cpp::MethodInfo {
322-
match &*METHOD {
323-
::core::result::Result::Ok(mi) => *mi,
324-
::core::result::Result::Err(e) => {
325-
panic!(
326-
"method lookup failed: {}::{}: {}",
327-
<AccessoryDetailInfoWindow_BodyParts as ::unity2::ClassIdentity>::NAME,
328-
".ctor",
329-
e
330-
)
331-
},
332-
}
333-
}
334-
}
335-
pub unsafe fn ctor(this: AccessoryDetailInfoWindow_BodyParts, __unity2_method_info: ::unity2::OptionalMethod) -> () {
336-
let inner: extern "C" fn(AccessoryDetailInfoWindow_BodyParts, ::unity2::OptionalMethod) -> () =
337-
::core::mem::transmute(__lookup_ctor::get_method_info().method_ptr);
338-
inner(this, __unity2_method_info)
339-
}
340-
}
341-
342-
#[cfg(feature = "app-accessorydetailinfowindow")]
343-
pub trait IAccessoryDetailInfoWindow_BodyPartsMethods: IAccessoryDetailInfoWindow_BodyParts {
344-
#[doc = "`.ctor()` overload"]
345-
fn ctor(self) -> () {
346-
unsafe {
347-
let __receiver = <AccessoryDetailInfoWindow_BodyParts as ::unity2::FromIlInstance>::from_il_instance(
348-
<Self as ::unity2::SystemObject>::as_instance(self),
349-
);
350-
__AccessoryDetailInfoWindow_BodyParts_unity2_raw::ctor(__receiver, ::core::option::Option::None)
351-
}
352-
}
353-
}
354-
355-
#[cfg(feature = "app-accessorydetailinfowindow")]
356-
impl<__T: IAccessoryDetailInfoWindow_BodyParts> IAccessoryDetailInfoWindow_BodyPartsMethods for __T {}
357-
358-
#[cfg(feature = "app-accessorydetailinfowindow")]
359-
impl AccessoryDetailInfoWindow_BodyParts {
360-
#[doc = "`.ctor()` — no args"]
361-
pub fn new() -> Self {
362-
let this = <Self as ::unity2::FromIlInstance>::instantiate().unwrap_or_else(|| {
363-
panic!(
364-
"{}::{} failed to instantiate",
365-
::core::stringify!(AccessoryDetailInfoWindow_BodyParts),
366-
::core::stringify!(new),
367-
)
368-
});
369-
<Self as IAccessoryDetailInfoWindow_BodyPartsMethods>::ctor(this);
370-
this
371-
}
372-
}
373-
374380
#[cfg(feature = "app-accessorydetailinfowindow")]
375381
#[doc(hidden)]
376382
pub mod prelude {

src/generated/app/accessoryemptymenuitem.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ mod __types {
1414
#[::unity2::class(namespace = "App", name = "AccessoryEmptyMenuItem")]
1515
#[parent(crate::app::basicmenuitem::BasicMenuItem)]
1616
pub struct AccessoryEmptyMenuItem {
17+
#[offset(104)]
1718
#[rename(name = "m_SelectEventHandler")]
1819
pub m_select_event_handler: crate::app::accessorymenuitem::AccessoryMenuItem_SelectEventHandler,
1920
}

src/generated/app/accessoryequipmentinfo.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,13 @@ mod __types {
1919
#[::unity2::class(namespace = "App", name = "AccessoryEquipmentInfo")]
2020
#[parent(crate::unity_engine::monobehaviour::MonoBehaviour)]
2121
pub struct AccessoryEquipmentInfo {
22+
#[offset(24)]
2223
#[rename(name = "m_ContentObject")]
2324
pub m_content_object: crate::unity_engine::gameobject::GameObject,
25+
#[offset(32)]
2426
#[rename(name = "m_CursorObject")]
2527
pub m_cursor_object: crate::unity_engine::gameobject::GameObject,
28+
#[offset(40)]
2629
#[rename(name = "m_MenuItemList")]
2730
pub m_menu_item_list: crate::system::collections::generic::list_1::List_1<crate::app::basicmenuitem::BasicMenuItem>,
2831
}

0 commit comments

Comments
 (0)