1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-10-31 00:07:39 +02:00

Partial support for customizable artifacts and Spell Scroll. Still doesn't work, though.

This commit is contained in:
DjWarmonger
2010-10-03 17:52:11 +00:00
parent 0f314e106c
commit b75cf89f86
15 changed files with 199 additions and 45 deletions

View File

@@ -385,8 +385,9 @@ CSerializer::CSerializer()
void CSerializer::addStdVecItems(CGameState *gs, LibClasses *lib)
{
registerVectoredType(&gs->map->objects, &CGObjectInstance::id);
registerVectoredType(&lib->heroh->heroes, &CHero::ID);
registerVectoredType(&lib->creh->creatures, &CCreature::idNumber);
registerVectoredType(&lib->arth->artifacts, &CArtifact::id);
registerVectoredType(&lib->heroh->heroes, &CHero::ID);
registerVectoredType(&gs->map->artInstances, &IModableArt::ID);
smartVectorMembersSerialization = true;
}