Changed to only use 1 file watcher

This commit is contained in:
Antoine Pilote
2024-09-02 12:56:02 -04:00
parent 8f72f1711d
commit 5077b1b7f8
8 changed files with 275604 additions and 275486 deletions
+7
View File
@@ -124,10 +124,16 @@ namespace Nuake
ClassProperty classProp;
classProp.name = t.Name;
classProp.type = ClassPropertyType::String;
if (t.Type == ExposedVarTypes::String && t.Value.has_value())
{
classProp.value = std::any_cast<std::string>(t.Value);
}
else if (t.Type == ExposedVarTypes::Float && t.Value.has_value())
{
classProp.value = std::any_cast<float>(t.Value);
classProp.type = ClassPropertyType::Float;
}
else if (t.Type == ExposedVarTypes::Int)
{
classProp.value = std::to_string(std::any_cast<int>(t.Value));
@@ -136,6 +142,7 @@ namespace Nuake
{
classProp.value = "";
}
brushEntity.Properties.push_back(classProp);
}