mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-25 22:42:04 +02:00
Serialize Enitity classes by their ID
This commit is contained in:
@@ -164,24 +164,6 @@ struct VectorizedIDType
|
||||
using type = std::conditional_t<std::is_base_of_v<CGObjectInstance, T>, ObjectInstanceID, int32_t>;
|
||||
};
|
||||
|
||||
template <>
|
||||
struct VectorizedIDType<CArtifact>
|
||||
{
|
||||
using type = ArtifactID;
|
||||
};
|
||||
|
||||
template <>
|
||||
struct VectorizedIDType<CCreature>
|
||||
{
|
||||
using type = CreatureID;
|
||||
};
|
||||
|
||||
template <>
|
||||
struct VectorizedIDType<CHero>
|
||||
{
|
||||
using type = HeroTypeID;
|
||||
};
|
||||
|
||||
template <>
|
||||
struct VectorizedIDType<CArtifactInstance>
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user