private void CreatePlayerTreasure(List <string> i_treasureIds) { foreach (string treasureId in i_treasureIds) { ITreasureData data = GetTreasureDataForId(treasureId); if (data != null) { ITreasure treasure = TreasureSpawner.Create(data); PlayerTreasure.Add(treasureId, treasure); } } }
public bool DoesPlayerHaveTreasure(string i_treasureId) { return(PlayerTreasure.ContainsKey(i_treasureId)); }