mirror of
https://github.com/vcmi/vcmi.git
synced 2025-07-05 00:49:09 +02:00
Implement turn timer feature
This commit is contained in:
@ -2513,6 +2513,12 @@ void YourTurn::applyGs(CGameState * gs) const
|
||||
playerState.daysWithoutCastle = daysWithoutCastle;
|
||||
}
|
||||
|
||||
void TurnTimeUpdate::applyGs(CGameState *gs) const
|
||||
{
|
||||
auto & playerState = gs->players[player];
|
||||
playerState.turnTime = turnTime;
|
||||
}
|
||||
|
||||
Component::Component(const CStackBasicDescriptor & stack)
|
||||
: id(EComponentType::CREATURE)
|
||||
, subtype(stack.type->getId())
|
||||
|
Reference in New Issue
Block a user