Skip to content

Commit

Permalink
Fixed serialization
Browse files Browse the repository at this point in the history
  • Loading branch information
antopilo committed Aug 31, 2024
1 parent 85b41e9 commit 3959760
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 2 additions & 1 deletion Nuake/src/Scene/Components/BSPBrushComponent.h
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ namespace Nuake {
SERIALIZE_VAL(target);
SERIALIZE_VAL(TargetName);
j["IsSolid"] = IsSolid;
SERIALIZE_VAL(IsTrigger);
END_SERIALIZE();
}

Expand Down Expand Up @@ -83,7 +84,7 @@ namespace Nuake {

DESERIALIZE_VAL(target);
DESERIALIZE_VAL(TargetName);

DESERIALIZE_VAL(IsTrigger);
return true;
}
};
Expand Down
4 changes: 1 addition & 3 deletions Nuake/src/Scripting/ScriptingEngineNet.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ namespace Nuake
{
if (!m_IsInitialized)
{
return;
Initialize();
}

const std::string sanitizedProjectName = String::Sanitize(project->Name);
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 3959760

Please sign in to comment.