Fixed some bugs on parsing the appDefs

This commit is contained in:
Simon Martens
2022-11-25 20:50:09 +01:00
parent ccfcadb91b
commit e12223209a
3 changed files with 3 additions and 2 deletions

View File

@@ -42,6 +42,7 @@ namespace HaDocument
new PersonDefsReactor(_reader, _lib);
new TraditionsReactor(_reader, _lib, _settings.NormalizeWhitespace);
new CommentReactor(_reader, _lib, _settings.NormalizeWhitespace);
new AppDefsReactor(_reader, _lib);
}
private static void _createReader() {

View File

@@ -11,6 +11,7 @@ namespace HaDocument.Models {
) {
Index = index;
Name = name;
Category = category;
}
}
}

View File

@@ -10,14 +10,13 @@ namespace HaDocument.Reactors {
class AppDefsReactor : Reactor {
internal Dictionary<string, App> CreatedInstances;
// State
private string Index;
private string Name;
private bool Category;
internal AppDefsReactor(IReader reader, IntermediateLibrary lib) : base(reader, lib) {
lib.Locations = new Dictionary<string, Location>();
lib.Apps = new Dictionary<string, App>();
CreatedInstances = lib.Apps;
reader.Tag += Listen;
}