1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-06 09:09:40 +02:00

Moved generation of new rumors to server

This commit is contained in:
Ivan Savenko
2024-06-01 16:38:41 +00:00
parent 55bf75c43e
commit 5178e4842e
9 changed files with 100 additions and 59 deletions

View File

@@ -22,6 +22,7 @@
#include "../ResourceSet.h"
#include "../TurnTimerInfo.h"
#include "../gameState/EVictoryLossCheckResult.h"
#include "../gameState/RumorState.h"
#include "../gameState/QuestInfo.h"
#include "../gameState/TavernSlot.h"
#include "../int3.h"
@@ -1169,6 +1170,7 @@ struct DLL_LINKAGE NewTurn : public CPackForClient
ui32 day = 0;
ui8 specialWeek = 0; //weekType
CreatureID creatureid; //for creature weeks
std::optional<RumorState> newRumor; // only on new weeks
NewTurn() = default;
@@ -1180,6 +1182,7 @@ struct DLL_LINKAGE NewTurn : public CPackForClient
h & day;
h & specialWeek;
h & creatureid;
h & newRumor;
}
};