public static string MapNpcListType(NpcListType type, int mapleId) { switch (type) { case NpcListType.Npc: return(NpcRef(mapleId)); case NpcListType.Mob: return(MobRef(mapleId)); case NpcListType.Map: return(MapRef(mapleId)); case NpcListType.Skill: return(SkillRef(mapleId)); case NpcListType.Item: return(MobRef(mapleId)); case NpcListType.SkillIcon: return(SkillIcon(mapleId)); case NpcListType.ItemIcon: return(ItemIcon(mapleId)); case NpcListType.InventoryItem: return(InventoryItemRef(mapleId)); default: throw new ArgumentOutOfRangeException(nameof(type), type, null); } }
public static string CreateSelectionList(NpcListType type, params int[] ids) { var builder = new StringBuilder(); for (var i = 0; i < ids.Length; i++) { builder.Append($"\r\n#L{i}#{MapNpcListType(type, ids[i])}#l"); } return(builder.ToString()); }