using System.Collections.Generic; using WingsEmu.Game.Items; using WingsEmu.Packets.Enums; namespace WingsEmu.Game.Managers.StaticData; public class StaticItemsManager { public static IItemsManager Instance { get; private set; } public static void Initialize(IItemsManager manager) { Instance = manager; } } public interface IItemsManager { /// /// Loads the items into the cache /// void Initialize(); /// /// Returns an item with the corresponding VNum /// /// /// IGameItem GetItem(int vnum); /// /// Get item /// /// key /// List GetItem(string name); /// /// Returns a list of items with the ItemType specified /// as parameter /// /// /// IEnumerable GetItemsByType(ItemType type); /// /// Returns a Title ID based on the VNum /// /// /// int GetTitleId(int itemVnum); }