Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
ScottLilly committed Sep 29, 2020
1 parent fdea73e commit f538073
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 8 deletions.
2 changes: 1 addition & 1 deletion Engine/GameData/GameDetails.json
@@ -1,5 +1,5 @@
{
"Name": "SOSCSRPG",
"Name": "Scott's Open Source C# RPG",
"Version": "0.1.000",
"PlayerAttributes": [
{
Expand Down
3 changes: 0 additions & 3 deletions Engine/Models/Player.cs
Expand Up @@ -8,9 +8,6 @@ public class Player : LivingEntity
{
#region Properties

public ObservableCollection<PlayerAttribute> PlayerAttributes { get; } =
new ObservableCollection<PlayerAttribute>();

private string _characterClass;
private int _experiencePoints;

Expand Down
2 changes: 1 addition & 1 deletion Engine/Services/SaveGameService.cs
Expand Up @@ -149,7 +149,7 @@ private static void PopulatePlayerRecipes(JObject data, Player player)

private static string FileVersion(JObject data)
{
return (string)data[nameof(GameSession.Version)];
return (string)data[nameof(GameSession.GameDetails.Version)];
}
}
}
2 changes: 0 additions & 2 deletions Engine/ViewModels/GameSession.cs
Expand Up @@ -22,8 +22,6 @@ public class GameSession : BaseNotificationClass
private Monster _currentMonster;
private Trader _currentTrader;

public string Version { get; } = "0.1.000";

[JsonIgnore]
public GameDetails GameDetails
{
Expand Down
2 changes: 1 addition & 1 deletion TestEngine/Services/TestSaveGameService.cs
Expand Up @@ -16,7 +16,7 @@ public void Test_Restore_0_1_000()
.LoadLastSaveOrCreateNew(@".\TestFiles\SavedGames\Game_0_1_000.soscsrpg");

// Game session data
Assert.AreEqual("0.1.000", gameSession.Version);
Assert.AreEqual("0.1.000", gameSession.GameDetails.Version);
Assert.AreEqual(0, gameSession.CurrentLocation.XCoordinate);
Assert.AreEqual(1, gameSession.CurrentLocation.YCoordinate);

Expand Down

0 comments on commit f538073

Please sign in to comment.