1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-12-01 23:12:49 +02:00

GameState now uses random generator from server. Blocked access to rmg

on client
This commit is contained in:
Ivan Savenko
2024-06-01 16:09:14 +00:00
parent 63bcf7d83c
commit 0d66ddbeec
10 changed files with 36 additions and 13 deletions

View File

@@ -31,3 +31,8 @@ void GameCallbackMock::sendAndApply(CPackForClient * pack)
{
upperCallback->apply(pack);
}
vstd::RNG & GameCallbackMock::getRandomGenerator()
{
throw std::runtime_error("Not implemented!");
}

View File

@@ -93,6 +93,8 @@ public:
///useful callback methods
void sendAndApply(CPackForClient * pack) override;
vstd::RNG & getRandomGenerator() override;
#if SCRIPTING_ENABLED
MOCK_CONST_METHOD0(getGlobalContextPool, scripting::Pool *());
#endif