mirror of
https://github.com/vcmi/vcmi.git
synced 2025-01-12 02:28:11 +02:00
3dd4fa2528
Final goal (of multiple PR's) is to remove all remaining pointers from serializeable game state, and replace them with either identifiers or with shared/unique pointers. CGTownInstance::town and CGHeroInstance::type members have been removed. Now this data is computed dynamically using subID member. VLC entity of a town can now be accessed via following methods: - getFactionID() returns ID of a faction - getFaction() returns pointer to a faction - getTown() returns pointer to a town VLC entity of a hero can now be accessed via following methods: - getHeroTypeID() returns ID of a hero - getHeroClassID() returns ID of a hero class - getHeroType() returns pointer to a hero - getHeroClass() returns pointer to a hero class |
||
---|---|---|
.. | ||
BinaryDeserializer.cpp | ||
BinaryDeserializer.h | ||
BinarySerializer.cpp | ||
BinarySerializer.h | ||
CLoadFile.cpp | ||
CLoadFile.h | ||
CMemorySerializer.cpp | ||
CMemorySerializer.h | ||
Connection.cpp | ||
Connection.h | ||
CSaveFile.cpp | ||
CSaveFile.h | ||
CSerializer.cpp | ||
CSerializer.h | ||
CTypeList.cpp | ||
CTypeList.h | ||
ESerializationVersion.h | ||
JsonDeserializer.cpp | ||
JsonDeserializer.h | ||
JsonSerializeFormat.cpp | ||
JsonSerializeFormat.h | ||
JsonSerializer.cpp | ||
JsonSerializer.h | ||
JsonTreeSerializer.h | ||
JsonUpdater.cpp | ||
JsonUpdater.h | ||
RegisterTypes.h | ||
Serializeable.h | ||
SerializerReflection.cpp | ||
SerializerReflection.h |