mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-25 22:42:04 +02:00
SiegeInfo: add foundation for drawbridge mechanics support
EDrawbridgeState enum represent current state of drawbridge. BattleDrawbridgeStateChanged netpack to pass bridge state changes to client.
This commit is contained in:
@@ -1208,6 +1208,11 @@ DLL_LINKAGE void BattleObstaclePlaced::applyGs( CGameState *gs )
|
||||
gs->curB->obstacles.push_back(obstacle);
|
||||
}
|
||||
|
||||
DLL_LINKAGE void BattleDrawbridgeStateChanged::applyGs(CGameState *gs)
|
||||
{
|
||||
gs->curB->si.drawbridgeState = state;
|
||||
}
|
||||
|
||||
void BattleResult::applyGs( CGameState *gs )
|
||||
{
|
||||
for (CStack *s : gs->curB->stacks)
|
||||
|
||||
Reference in New Issue
Block a user