mirror of
https://github.com/antopilo/Nuake.git
synced 2026-01-03 14:09:46 +03:00
Fixed serialization
This commit is contained in:
@@ -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;
|
||||
}
|
||||
};
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user