public LocationViewModel() { DBhelper = new DBhelper(); DBhelper.FillAllDefaultData(); LocationsDict = DBhelper.GetLocationDict(); this.CurrentLocation = DBhelper.GetLocationById(App.PlayerViewModel.Player.InLocationId); }
public void ChangeLocation(int locationId) { DBhelper.UpdateList(CurrentLocation.ItemList); this.CurrentLocation = DBhelper.GetLocationById(locationId); }