public void destroyAndDropContents(Vector2 pointToDropAt, GameLocation location) { if (items.Count > 0) { location.playSound("throwDownITem"); } foreach (Item item in items) { if (item != null) { Game1.createItemDebris(item, pointToDropAt, Game1.random.Next(4), location); } } items.Clear(); clearNulls(); }
public void LoadScores(List <KeyValuePair <string, int> > scores) { entries.Clear(); foreach (KeyValuePair <string, int> score in scores) { AddScore(score.Key, score.Value); } }