Changed to only use 1 file watcher
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user