@@ -11,6 +11,18 @@ mod __types {
1111 use crate :: unity_engine:: object_2:: { IObject_2 , Object_2 } ;
1212 use :: unity2:: prelude:: * ;
1313
14+ # [ doc = include_str ! ( concat ! ( env ! ( "CARGO_MANIFEST_DIR" ) , "/" , "docs/app/accessorydetailinfowindow/AccessoryDetailInfoWindow_BodyParts.md" ) ) ]
15+ #[ :: unity2:: class( namespace = "App" , name = "AccessoryDetailInfoWindow.BodyParts" ) ]
16+ #[ parent( crate :: system:: object:: Object ) ]
17+ pub struct AccessoryDetailInfoWindow_BodyParts {
18+ #[ rename( name = "m_Object" ) ]
19+ pub m_object : crate :: unity_engine:: gameobject:: GameObject ,
20+ #[ rename( name = "m_Image" ) ]
21+ pub m_image : crate :: unity_engine:: ui:: image:: Image ,
22+ #[ rename( name = "m_Text" ) ]
23+ pub m_text : crate :: tm_pro:: textmeshprougui:: TextMeshProUGUI ,
24+ }
25+
1426 # [ doc = include_str ! ( concat ! ( env ! ( "CARGO_MANIFEST_DIR" ) , "/" , "docs/app/accessorydetailinfowindow/AccessoryDetailInfoWindow.md" ) ) ]
1527 #[ :: unity2:: class( namespace = "App" , name = "AccessoryDetailInfoWindow" ) ]
1628 #[ parent( crate :: unity_engine:: monobehaviour:: MonoBehaviour ) ]
@@ -24,23 +36,106 @@ mod __types {
2436 crate :: app:: accessorydetailinfowindow:: AccessoryDetailInfoWindow_BodyParts ,
2537 > ,
2638 }
27-
28- # [ doc = include_str ! ( concat ! ( env ! ( "CARGO_MANIFEST_DIR" ) , "/" , "docs/app/accessorydetailinfowindow/AccessoryDetailInfoWindow_BodyParts.md" ) ) ]
29- #[ :: unity2:: class( namespace = "App" , name = "AccessoryDetailInfoWindow.BodyParts" ) ]
30- #[ parent( crate :: system:: object:: Object ) ]
31- pub struct AccessoryDetailInfoWindow_BodyParts {
32- #[ rename( name = "m_Object" ) ]
33- pub m_object : crate :: unity_engine:: gameobject:: GameObject ,
34- #[ rename( name = "m_Image" ) ]
35- pub m_image : crate :: unity_engine:: ui:: image:: Image ,
36- #[ rename( name = "m_Text" ) ]
37- pub m_text : crate :: tm_pro:: textmeshprougui:: TextMeshProUGUI ,
38- }
3939}
4040
4141#[ cfg( feature = "app-accessorydetailinfowindow-types" ) ]
4242pub use __types:: * ;
4343
44+ #[ cfg( feature = "app-accessorydetailinfowindow" ) ]
45+ #[ doc( hidden) ]
46+ #[ allow( non_snake_case, non_camel_case_types, clippy:: too_many_arguments) ]
47+ mod __AccessoryDetailInfoWindow_BodyParts_unity2_raw {
48+ use super :: * ;
49+ #[ doc( hidden) ]
50+ #[ allow( non_snake_case) ]
51+ pub mod __lookup_ctor {
52+ use super :: * ;
53+ static METHOD : :: std:: sync:: LazyLock <
54+ :: unity2:: Il2CppResult < & ' static :: unity2:: il2cpp:: MethodInfo > ,
55+ > = :: std:: sync:: LazyLock :: new ( || {
56+ let param_types: & [ & ' static :: unity2:: il2cpp:: Il2CppType ] = & [ ] ;
57+ :: unity2:: lookup:: method_info_on_class_with_signature (
58+ <AccessoryDetailInfoWindow_BodyParts as :: unity2:: ClassIdentity >:: class ( ) ,
59+ ".ctor" ,
60+ 0 ,
61+ param_types,
62+ false ,
63+ )
64+ } ) ;
65+ pub fn get_method_info ( ) -> & ' static :: unity2:: il2cpp:: MethodInfo {
66+ match & * METHOD {
67+ :: core:: result:: Result :: Ok ( mi) => * mi,
68+ :: core:: result:: Result :: Err ( e) => panic ! (
69+ "method lookup failed: {}::{}: {}" ,
70+ <AccessoryDetailInfoWindow_BodyParts as :: unity2:: ClassIdentity >:: NAME ,
71+ ".ctor" ,
72+ e
73+ ) ,
74+ }
75+ }
76+ pub fn get_offset ( ) -> usize {
77+ let method_ptr = get_method_info ( ) . method_ptr ;
78+ let text = :: lazysimd:: scan:: get_text ( ) ;
79+ unsafe { ( method_ptr as * const u8 ) . offset_from ( text. as_ptr ( ) ) as usize }
80+ }
81+ }
82+ pub unsafe fn ctor (
83+ this : AccessoryDetailInfoWindow_BodyParts ,
84+ __unity2_method_info : :: unity2:: OptionalMethod ,
85+ ) -> ( ) {
86+ let inner: extern "C" fn (
87+ AccessoryDetailInfoWindow_BodyParts ,
88+ :: unity2:: OptionalMethod ,
89+ ) -> ( ) = :: core:: mem:: transmute (
90+ ( unsafe { :: skyline:: hooks:: getRegionAddress ( :: skyline:: hooks:: Region :: Text ) }
91+ as * const u8 )
92+ . offset ( __lookup_ctor:: get_offset ( ) as isize ) ,
93+ ) ;
94+ inner ( this, __unity2_method_info)
95+ }
96+ }
97+
98+ #[ cfg( feature = "app-accessorydetailinfowindow" ) ]
99+ pub trait IAccessoryDetailInfoWindow_BodyPartsMethods :
100+ IAccessoryDetailInfoWindow_BodyParts
101+ {
102+ #[ doc = "`.ctor()` overload" ]
103+ fn ctor ( self ) -> ( ) {
104+ unsafe {
105+ let __receiver =
106+ <AccessoryDetailInfoWindow_BodyParts as :: unity2:: FromIlInstance >:: from_il_instance (
107+ <Self as :: unity2:: SystemObject >:: as_instance ( self ) ,
108+ ) ;
109+ __AccessoryDetailInfoWindow_BodyParts_unity2_raw:: ctor (
110+ __receiver,
111+ :: core:: option:: Option :: None ,
112+ )
113+ }
114+ }
115+ }
116+
117+ #[ cfg( feature = "app-accessorydetailinfowindow" ) ]
118+ impl < __T : IAccessoryDetailInfoWindow_BodyParts > IAccessoryDetailInfoWindow_BodyPartsMethods
119+ for __T
120+ {
121+ }
122+
123+ #[ cfg( feature = "app-accessorydetailinfowindow" ) ]
124+ impl AccessoryDetailInfoWindow_BodyParts {
125+ #[ doc = "`.ctor()` — no args" ]
126+ pub fn new ( ) -> Self {
127+ let this = <Self as :: unity2:: FromIlInstance >:: instantiate ( ) . unwrap_or_else ( || {
128+ panic ! (
129+ "{}::{} failed to instantiate" ,
130+ :: core:: stringify!( AccessoryDetailInfoWindow_BodyParts ) ,
131+ :: core:: stringify!( new) ,
132+ )
133+ } ) ;
134+ <Self as IAccessoryDetailInfoWindow_BodyPartsMethods >:: ctor ( this) ;
135+ this
136+ }
137+ }
138+
44139#[ cfg( feature = "app-accessorydetailinfowindow" ) ]
45140#[ doc( hidden) ]
46141#[ allow( non_snake_case, non_camel_case_types, clippy:: too_many_arguments) ]
@@ -363,101 +458,6 @@ impl AccessoryDetailInfoWindow {
363458 }
364459}
365460
366- #[ cfg( feature = "app-accessorydetailinfowindow" ) ]
367- #[ doc( hidden) ]
368- #[ allow( non_snake_case, non_camel_case_types, clippy:: too_many_arguments) ]
369- mod __AccessoryDetailInfoWindow_BodyParts_unity2_raw {
370- use super :: * ;
371- #[ doc( hidden) ]
372- #[ allow( non_snake_case) ]
373- pub mod __lookup_ctor {
374- use super :: * ;
375- static METHOD : :: std:: sync:: LazyLock <
376- :: unity2:: Il2CppResult < & ' static :: unity2:: il2cpp:: MethodInfo > ,
377- > = :: std:: sync:: LazyLock :: new ( || {
378- let param_types: & [ & ' static :: unity2:: il2cpp:: Il2CppType ] = & [ ] ;
379- :: unity2:: lookup:: method_info_on_class_with_signature (
380- <AccessoryDetailInfoWindow_BodyParts as :: unity2:: ClassIdentity >:: class ( ) ,
381- ".ctor" ,
382- 0 ,
383- param_types,
384- false ,
385- )
386- } ) ;
387- pub fn get_method_info ( ) -> & ' static :: unity2:: il2cpp:: MethodInfo {
388- match & * METHOD {
389- :: core:: result:: Result :: Ok ( mi) => * mi,
390- :: core:: result:: Result :: Err ( e) => panic ! (
391- "method lookup failed: {}::{}: {}" ,
392- <AccessoryDetailInfoWindow_BodyParts as :: unity2:: ClassIdentity >:: NAME ,
393- ".ctor" ,
394- e
395- ) ,
396- }
397- }
398- pub fn get_offset ( ) -> usize {
399- let method_ptr = get_method_info ( ) . method_ptr ;
400- let text = :: lazysimd:: scan:: get_text ( ) ;
401- unsafe { ( method_ptr as * const u8 ) . offset_from ( text. as_ptr ( ) ) as usize }
402- }
403- }
404- pub unsafe fn ctor (
405- this : AccessoryDetailInfoWindow_BodyParts ,
406- __unity2_method_info : :: unity2:: OptionalMethod ,
407- ) -> ( ) {
408- let inner: extern "C" fn (
409- AccessoryDetailInfoWindow_BodyParts ,
410- :: unity2:: OptionalMethod ,
411- ) -> ( ) = :: core:: mem:: transmute (
412- ( unsafe { :: skyline:: hooks:: getRegionAddress ( :: skyline:: hooks:: Region :: Text ) }
413- as * const u8 )
414- . offset ( __lookup_ctor:: get_offset ( ) as isize ) ,
415- ) ;
416- inner ( this, __unity2_method_info)
417- }
418- }
419-
420- #[ cfg( feature = "app-accessorydetailinfowindow" ) ]
421- pub trait IAccessoryDetailInfoWindow_BodyPartsMethods :
422- IAccessoryDetailInfoWindow_BodyParts
423- {
424- #[ doc = "`.ctor()` overload" ]
425- fn ctor ( self ) -> ( ) {
426- unsafe {
427- let __receiver =
428- <AccessoryDetailInfoWindow_BodyParts as :: unity2:: FromIlInstance >:: from_il_instance (
429- <Self as :: unity2:: SystemObject >:: as_instance ( self ) ,
430- ) ;
431- __AccessoryDetailInfoWindow_BodyParts_unity2_raw:: ctor (
432- __receiver,
433- :: core:: option:: Option :: None ,
434- )
435- }
436- }
437- }
438-
439- #[ cfg( feature = "app-accessorydetailinfowindow" ) ]
440- impl < __T : IAccessoryDetailInfoWindow_BodyParts > IAccessoryDetailInfoWindow_BodyPartsMethods
441- for __T
442- {
443- }
444-
445- #[ cfg( feature = "app-accessorydetailinfowindow" ) ]
446- impl AccessoryDetailInfoWindow_BodyParts {
447- #[ doc = "`.ctor()` — no args" ]
448- pub fn new ( ) -> Self {
449- let this = <Self as :: unity2:: FromIlInstance >:: instantiate ( ) . unwrap_or_else ( || {
450- panic ! (
451- "{}::{} failed to instantiate" ,
452- :: core:: stringify!( AccessoryDetailInfoWindow_BodyParts ) ,
453- :: core:: stringify!( new) ,
454- )
455- } ) ;
456- <Self as IAccessoryDetailInfoWindow_BodyPartsMethods >:: ctor ( this) ;
457- this
458- }
459- }
460-
461461#[ cfg( feature = "app-accessorydetailinfowindow" ) ]
462462pub mod prelude {
463463 pub use super :: AccessoryDetailInfoWindow ;
0 commit comments