-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Persistence and time management refactor
- Loading branch information
1 parent
cfcf61c
commit 33081de
Showing
16 changed files
with
234 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
#pragma once | ||
|
||
#include "SaveManager.h" | ||
|
||
namespace linguine::alfredo { | ||
|
||
class MacSaveManager : public SaveManager { | ||
public: | ||
MacSaveManager() : SaveManager() { | ||
load(); | ||
} | ||
|
||
~MacSaveManager() override = default; | ||
|
||
protected: | ||
void load() override { | ||
_points = 0; | ||
_upgradeRanks[0] = 0; | ||
_upgradeRanks[1] = 0; | ||
_upgradeRanks[2] = 0; | ||
_upgradeRanks[3] = 0; | ||
} | ||
|
||
void save() override {} | ||
}; | ||
|
||
} // namespace linguine::alfredo |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
#pragma once | ||
|
||
#include "SaveManager.h" | ||
|
||
namespace linguine::pesto { | ||
|
||
class WebSaveManager : public SaveManager { | ||
public: | ||
WebSaveManager() : SaveManager() { | ||
load(); | ||
} | ||
|
||
~WebSaveManager() override = default; | ||
|
||
protected: | ||
void load() override { | ||
_points = 0; | ||
_upgradeRanks[0] = 0; | ||
_upgradeRanks[1] = 0; | ||
_upgradeRanks[2] = 0; | ||
_upgradeRanks[3] = 0; | ||
} | ||
|
||
void save() override {} | ||
}; | ||
|
||
} // namespace linguine::pesto |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#pragma once | ||
|
||
#include "SaveManager.h" | ||
|
||
namespace linguine::scampi { | ||
|
||
class IosSaveManager : public SaveManager { | ||
public: | ||
IosSaveManager(); | ||
|
||
~IosSaveManager() override = default; | ||
|
||
protected: | ||
void load() override; | ||
|
||
void save() override; | ||
}; | ||
|
||
} // namespace linguine::scampi |
Oops, something went wrong.