mirror of
https://github.com/gwdevhub/Daybreak.git
synced 2026-07-15 15:19:57 +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
330 B
C#
17 lines
330 B
C#
using Daybreak.API.Interop.GuildWars;
|
|
|
|
namespace Daybreak.API.Extensions;
|
|
|
|
public static class TitleExtensions
|
|
{
|
|
public static bool IsPercentageBased(this Title title)
|
|
{
|
|
return (title.Props & 1) != 0;
|
|
}
|
|
|
|
public static bool HasTiers(this Title title)
|
|
{
|
|
return (title.Props & 3) == 2;
|
|
}
|
|
}
|