mirror of
https://github.com/gwdevhub/Daybreak.git
synced 2026-07-21 01:59:49 +00:00
97fed608d2
* Improve GWCA bindings generator based on headers * Move all structs to gwca * Progress * Complete parser work * More generator adjustments * GWCA fixes * GWCA improvements * GWCA fixes * GWCA fixes * GWCA fixes * GWCA fixes * Fix API usage of GWCA * Update GWCA --------- Co-authored-by: Alexandru Macocian <amacocian@microsoft.com>
35 lines
869 B
C#
35 lines
869 B
C#
using System.Runtime.InteropServices;
|
|
|
|
namespace Daybreak.API.Interop;
|
|
|
|
[StructLayout(LayoutKind.Explicit, Pack = 1, Size = 0x1AC)]
|
|
[GWCAEquivalent("Frame")]
|
|
public readonly struct Frame
|
|
{
|
|
[FieldOffset(0x0008)]
|
|
public readonly uint FrameLayout;
|
|
|
|
[FieldOffset(0x0018)]
|
|
public readonly uint VisibilityFlags;
|
|
|
|
[FieldOffset(0x0020)]
|
|
public readonly uint Type;
|
|
|
|
[FieldOffset(0x0024)]
|
|
public readonly uint TemplateType;
|
|
|
|
[FieldOffset(0x00b8)]
|
|
public readonly uint ChildOffsetId;
|
|
|
|
[FieldOffset(0x00bc)]
|
|
public readonly uint FrameId;
|
|
|
|
[FieldOffset(0x018C)]
|
|
public readonly uint FrameState;
|
|
|
|
public bool IsCreated => (this.FrameState & 0x4) != 0;
|
|
public bool IsHidden => (this.FrameState & 0x200) != 0;
|
|
public bool IsVisible => !this.IsHidden;
|
|
public bool IsDIsabled => (this.FrameState & 0x10) != 0;
|
|
}
|