JSON models now fully integrated, added BackgroundTaskManager

This commit is contained in:
N00MKRAD
2021-05-17 16:09:19 +02:00
parent dd554a5033
commit ed2a2257ca
12 changed files with 167 additions and 41 deletions

View File

@@ -6,7 +6,7 @@ using System.IO;
namespace Flowframes.Data
{
class ModelCollection
public class ModelCollection
{
public AI ai;
public List<ModelInfo> models;
@@ -53,8 +53,6 @@ namespace Flowframes.Data
bool.TryParse((string)item.isDefault, out def);
models.Add(new ModelInfo(ai, (string)item.name, (string)item.desc, (string)item.dir, def));
}
Logger.Log($"Loaded {models.Count} {ai.aiName} models from JSON.", true);
}
}
}