4
4
using System ;
5
5
using System . Runtime . InteropServices ;
6
6
7
- namespace Brio . Game . World ;
7
+ namespace Brio . Game . World . Interop ;
8
8
9
9
// TODO: Move into ClientStructs
10
10
// Tracking: https://github.com/aers/FFXIVClientStructs/pull/310 & https://github.com/aers/FFXIVClientStructs/pull/311
11
11
12
12
[ StructLayout ( LayoutKind . Explicit , Size = 0x98 ) ]
13
- public unsafe struct LayoutManager
13
+ public unsafe struct LayoutManagerStruct
14
14
{
15
15
[ FieldOffset ( 0x38 ) ] public uint FestivalStatus ; // SetActiveFestivals will not allow a change when not 5 or 0
16
16
[ FieldOffset ( 0x40 ) ] public fixed uint ActiveFestivals [ 4 ] ;
17
17
}
18
18
19
19
public unsafe class LayoutManagerInterop
20
20
{
21
- private delegate void SetActiveFestivalsDelegate ( LayoutManager * instance , uint * festivalArray ) ;
21
+ private delegate void SetActiveFestivalsDelegate ( LayoutManagerStruct * instance , uint * festivalArray ) ;
22
22
23
23
[ Signature ( "E8 ?? ?? ?? ?? 8B C5 EB 6A" , ScanType = ScanType . Text ) ]
24
24
private SetActiveFestivalsDelegate _setActiveFestivals = null ! ;
25
25
26
- public LayoutManagerInterop ( )
26
+ public LayoutManagerInterop ( )
27
27
{
28
28
SignatureHelper . Initialise ( this ) ;
29
29
}
@@ -33,7 +33,7 @@ public unsafe void SetActiveFestivals(uint* festivalArray)
33
33
var world = LayoutWorld . Instance ( ) ;
34
34
if ( world != null )
35
35
{
36
- var manager = ( LayoutManager * ) world ->ActiveLayout ;
36
+ var manager = ( LayoutManagerStruct * ) world ->ActiveLayout ;
37
37
if ( manager != null )
38
38
{
39
39
_setActiveFestivals ( manager , festivalArray ) ;
@@ -48,7 +48,7 @@ public uint[] GetActiveFestivals()
48
48
var world = LayoutWorld . Instance ( ) ;
49
49
if ( world != null )
50
50
{
51
- var manager = ( LayoutManager * ) world ->ActiveLayout ;
51
+ var manager = ( LayoutManagerStruct * ) world ->ActiveLayout ;
52
52
if ( manager != null )
53
53
{
54
54
for ( int i = 0 ; i < 4 ; ++ i )
@@ -68,7 +68,7 @@ public bool IsBusy
68
68
var world = LayoutWorld . Instance ( ) ;
69
69
if ( world != null )
70
70
{
71
- var manager = ( LayoutManager * ) world ->ActiveLayout ;
71
+ var manager = ( LayoutManagerStruct * ) world ->ActiveLayout ;
72
72
if ( manager != null )
73
73
{
74
74
return manager ->FestivalStatus != 0 && manager ->FestivalStatus != 5 ;
0 commit comments