/// <summary> /// Return GameItem types for specyfied game /// </summary> /// <param name="game"></param> /// <returns></returns> public string[] GetGameItemTypes(GameID game) { if (Providers.ContainsKey(game)) { IGameItemProvider p = Providers[game]; return(p.GetItemTypes()); } return(null); }
/// <summary> /// Return provider that supports given GameItem /// </summary> /// <param name="item"></param> /// <returns></returns> public IGameItemProvider GetGameItemProvider(GameItem item) { if (Providers.ContainsKey(item.Game)) { IGameItemProvider p = Providers[item.Game]; if (p.GetItemTypes().Contains(item.Symbol)) { return(p); } } return(null); }