mirror of
https://github.com/gwdevhub/Daybreak.git
synced 2026-07-24 03:56:30 +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>
17 lines
524 B
C#
17 lines
524 B
C#
using Daybreak.API.Interop;
|
|
using Daybreak.API.Interop.GuildWars;
|
|
|
|
namespace Daybreak.API.Services.Interop;
|
|
|
|
public unsafe sealed class GameContextService
|
|
{
|
|
|
|
public WrappedPointer<GameContext> GetGameContext() => GWCA.GW.GetGameContext();
|
|
|
|
public WrappedPointer<PreGameContext> GetPreGameContext() => GWCA.GW.GetPreGameContext();
|
|
|
|
public WrappedPointer<GuildWarsArray<CharacterInformation>> GetAvailableChars() => GWCA.GW.GetAvailableChars();
|
|
|
|
public bool IsMapLoaded() => GWCA.GW.Map.GetIsMapLoaded();
|
|
}
|