GoodMemory/GoodMemory/ActionType.cs

32 lines
1.0 KiB
C#
Raw Normal View History

2020-09-02 00:21:43 +00:00
using Lumina.Excel.GeneratedSheets;
using System;
using System.Linq;
namespace GoodMemory {
public static class ActionTypeExt {
private static readonly ActionType[] Valid = (ActionType[])Enum.GetValues(typeof(ActionType));
2020-09-02 00:21:43 +00:00
public static bool IsValidAction(ItemAction? action) {
2020-09-02 00:21:43 +00:00
if (action == null || action.RowId == 0) {
return false;
}
var type = (ActionType)action.Type;
return Valid.Contains(type);
2020-09-02 00:21:43 +00:00
}
}
public enum ActionType : ushort {
Minions = 853, // minions
Bardings = 1_013, // bardings
Mounts = 1_322, // mounts
CrafterBooks = 2_136, // crafter books
2020-09-03 13:47:40 +00:00
Miscellaneous = 2_633, // riding maps, blu totems, emotes/dances, hairstyles
2020-09-02 00:21:43 +00:00
Cards = 3_357, // cards
GathererBooks = 4_107, // gatherer books
OrchestrionRolls = 5_845, // orchestrion rolls
2020-12-11 03:35:31 +00:00
FieldNotes = 19_743, // bozjan field notes
2020-09-02 00:21:43 +00:00
FashionAccessories = 20_086, // fashion accessories
}
}