mirror of
https://github.com/Ottermandias/Glamourer.git
synced 2025-12-12 10:17:23 +01:00
29 lines
759 B
C#
29 lines
759 B
C#
using Dalamud.Utility;
|
|
using Lumina.Excel.GeneratedSheets;
|
|
|
|
namespace Glamourer.Structs;
|
|
|
|
// A struct containing the different jobs the game supports.
|
|
// Also contains the jobs Name and Abbreviation as strings.
|
|
public readonly struct Job
|
|
{
|
|
public readonly string Name;
|
|
public readonly string Abbreviation;
|
|
public readonly ClassJob Base;
|
|
|
|
public uint Id
|
|
=> Base.RowId;
|
|
|
|
public JobFlag Flag
|
|
=> (JobFlag)(1ul << (int)Base.RowId);
|
|
|
|
public Job(ClassJob job)
|
|
{
|
|
Base = job;
|
|
Name = job.Name.ToDalamudString().ToString();
|
|
Abbreviation = job.Abbreviation.ToDalamudString().ToString();
|
|
}
|
|
|
|
public override string ToString()
|
|
=> Name;
|
|
}
|