working on campaign

This commit is contained in:
Vladislav Khorev committed 2026-10-23 22:47:55 +06:00
1 parent 9fa120d4ad
commit d38a75ea72
24 files changed
+929 -410

No files matched your search

+5 -1
View File
@@ -32,9 +32,13 @@ struct StoredChatMessage {
bool incoming;
};
using LocationMap = std::unordered_map<std::string, std::shared_ptr<Location>>;
struct GameState : public ISaveable {
// --- World ---
std::unordered_map<std::string, std::shared_ptr<Location>> locations;
// Campaign being played (see CampaignRegistry); `locations` holds that campaign's locations.
std::string campaignId = "main";
LocationMap locations;
std::string currentLocationName;
bool isDarklands = false;
bool isNight = false;