serialization fixing world unit test and missing serialize for inert.

This commit is contained in:
2026-09-13 11:59:10 -04:00
parent 58b79fb499
commit 2bd0cf39f1
4 changed files with 35 additions and 20 deletions
+2
View File
@@ -140,4 +140,6 @@ Entity* deserialize_entity(Archive& ar, EntityManager& manager)
}
entity_base->is_dirty = false;
return entity_base;
}
+6 -1
View File
@@ -1,4 +1,9 @@
#include <Entity/entity_types.h>
#include <Core/Common/serialization.h>
DEFINE_ENTITY_VERSIONED(Inert, 1)
internal void serialize(Archive& /*ar*/, uint16 /*version*/, Inert& /*inert*/) {}
internal void serialize(Archive& ar, uint16 /*version*/, Inert& inert)
{
SERIALIZE(ar, MeshInstance, inert.MeshInstance);
}