32 lines
1.0 KiB
C#
32 lines
1.0 KiB
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;
|
|
}
|
|
|
|
var 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, hairstyles
|
|
Cards = 3_357, // cards
|
|
GathererBooks = 4_107, // gatherer books
|
|
OrchestrionRolls = 5_845, // orchestrion rolls
|
|
FieldNotes = 19_743, // bozjan field notes
|
|
FashionAccessories = 20_086, // fashion accessories
|
|
}
|
|
}
|