GoodMemory/GoodMemory/ActionType.cs

31 lines
983 B
C#

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));
public static bool IsValidAction(ItemAction action) {
if (action == null || action.RowId == 0) {
return false;
}
ActionType type = (ActionType)action.Type;
return VALID.Contains(type);
}
}
public enum ActionType : ushort {
Minions = 853, // minions
Bardings = 1_013, // bardings
Mounts = 1_322, // mounts
CrafterBooks = 2_136, // crafter books
Miscellaneous = 2_633, // riding maps, blu totems, emotes/dances
Cards = 3_357, // cards
GathererBooks = 4_107, // gatherer books
OrchestrionRolls = 5_845, // orchestrion rolls
FashionAccessories = 20_086, // fashion accessories
}
}