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:
@@ -31,3 +31,8 @@ void GameCallbackMock::sendAndApply(CPackForClient * pack)
|
||||
{
|
||||
upperCallback->apply(pack);
|
||||
}
|
||||
|
||||
vstd::RNG & GameCallbackMock::getRandomGenerator()
|
||||
{
|
||||
throw std::runtime_error("Not implemented!");
|
||||
}
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user