mirror of
https://github.com/gwdevhub/Daybreak.git
synced 2026-07-15 15:19:57 +00:00
ef513e1230
* Bump version to 0.9.10.1 * Bump Microsoft.Web.WebView2 from 1.0.3719.77 to 1.0.3800.47 (#1442) --- updated-dependencies: - dependency-name: Microsoft.Web.WebView2 dependency-version: 1.0.3800.47 dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Improve mod view responsiveness (#1443) * Improve application launcher logging (Closes #1441) (#1444) * Damage modifier 0x248 (Closes #1438) (#1445) * Initial commit * Setup generator * Progress * Update generator * Initial commit * Setup generator * Progress * Update generator * Fix library loading * Move code to gwca * Fix leave party * Disable console on Release * Add more exports to gwca * Upgrade gwca * Fixes to character selector * Fix GetWindowHandle * Move character selector to frame based * Fix config spamming --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Alexandru Macocian <amacocian@microsoft.com>
24 lines
817 B
C#
24 lines
817 B
C#
using System.Extensions;
|
|
using System.Runtime.InteropServices;
|
|
|
|
namespace Daybreak.API.Interop.GuildWars;
|
|
|
|
[StructLayout(LayoutKind.Explicit, Pack = 1)]
|
|
[GWCAEquivalent("CharacterInformation")]
|
|
public readonly struct CharInfoContext
|
|
{
|
|
[FieldOffset(0x0008)]
|
|
public readonly Uuid Uuid;
|
|
[FieldOffset(0x0018)]
|
|
public readonly Array20Char Name;
|
|
[FieldOffset(0x0040)]
|
|
public readonly Array17Uint Props;
|
|
|
|
public readonly uint MapId => (this.Props[0] >> 16) & 0xFFFF;
|
|
public readonly uint Primary => (this.Props[2] >> 20) & 0xF;
|
|
public readonly uint Secondary => (this.Props[7] >> 10) & 0xF;
|
|
public readonly uint Campaign => this.Props[7] & 0xF;
|
|
public readonly uint Level => (this.Props[7] >> 4) & 0x3F;
|
|
public readonly bool IsPvp => ((this.Props[7] >> 9) & 0x1) == 0x1;
|
|
}
|