serialization fixing world unit test and missing serialize for inert.
This commit is contained in:
+4
-15
@@ -20,17 +20,6 @@
|
||||
#include <UnitTest/WorldUnitTest.h>
|
||||
#endif
|
||||
|
||||
// namespace
|
||||
// {
|
||||
// void serialize_test(Archive* ar, void* payload)
|
||||
// {
|
||||
// SerializedEntityTest* test = reinterpret_cast<SerializedEntityTest*>(payload);
|
||||
// serialize_elem(ar, test->A);
|
||||
// }
|
||||
// } // namespace
|
||||
//
|
||||
// DEFINE_ENTITY_SERIALIZED(SerializedEntityTest, serialize_test)
|
||||
|
||||
namespace
|
||||
{
|
||||
GameState* gGameState = nullptr;
|
||||
@@ -71,16 +60,16 @@ extern "C" JULIET_API void __cdecl GameUpdate(GameData* params, [[maybe_unused]]
|
||||
// Reserve cameras. Lets go with 4 for now
|
||||
ReserveCamera(4);
|
||||
|
||||
#if JULIET_DEBUG
|
||||
UnitTest::WorldUnitTest();
|
||||
#endif
|
||||
|
||||
// Bootstrap world
|
||||
auto* worldArena = ArenaAllocate({ .ReserveSize = Megabytes(1), .Name = "World Arena" });
|
||||
World* world = ArenaPushStruct<World>(worldArena JULIET_DEBUG_PARAM("World"));
|
||||
gameState->World = world;
|
||||
InitWorld(gameState->World, worldArena);
|
||||
|
||||
#if JULIET_DEBUG
|
||||
UnitTest::WorldUnitTest();
|
||||
#endif
|
||||
|
||||
// Entity Use case
|
||||
InitEntityManager(gameState->World);
|
||||
auto& manager = GetEntityManager();
|
||||
|
||||
Reference in New Issue
Block a user