Fixed serialization

This commit is contained in:
Antoine Pilote
2024-08-30 21:50:21 -04:00
parent 85b41e9ea0
commit 3959760627
2 changed files with 3 additions and 4 deletions

View File

@@ -54,6 +54,7 @@ namespace Nuake {
SERIALIZE_VAL(target);
SERIALIZE_VAL(TargetName);
j["IsSolid"] = IsSolid;
SERIALIZE_VAL(IsTrigger);
END_SERIALIZE();
}
@@ -83,7 +84,7 @@ namespace Nuake {
DESERIALIZE_VAL(target);
DESERIALIZE_VAL(TargetName);
DESERIALIZE_VAL(IsTrigger);
return true;
}
};

View File

@@ -273,7 +273,7 @@ namespace Nuake
{
if (!m_IsInitialized)
{
return;
Initialize();
}
const std::string sanitizedProjectName = String::Sanitize(project->Name);
@@ -444,8 +444,6 @@ namespace Nuake
if (entity.HasComponent<BSPBrushComponent>())
{
BSPBrushComponent& brushComponent = entity.GetComponent<BSPBrushComponent>();
classInstance.SetPropertyValue("TargetName", brushComponent.TargetName);
classInstance.SetPropertyValue("Target", brushComponent.target);
}
std::vector<std::string> detectedExposedVar;