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