1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-06-23 00:28:08 +02:00

Converted Component class to use VariantIdentifier instead of int

This commit is contained in:
Ivan Savenko
2023-10-31 11:09:56 +02:00
parent 0376873cb3
commit 10e50548e7
36 changed files with 435 additions and 363 deletions

View File

@ -2522,13 +2522,6 @@ void TurnTimeUpdate::applyGs(CGameState *gs) const
playerState.turnTimer = turnTimer;
}
Component::Component(const CStackBasicDescriptor & stack)
: id(EComponentType::CREATURE)
, subtype(stack.type->getId())
, val(stack.count)
{
}
void EntitiesChanged::applyGs(CGameState * gs)
{
for(const auto & change : changes)