OSDN Git Service

Merge branch 'Split_renderers' into vgd
[automap/automap.git] / Automap / Data / PersistedConfiguration.cs
diff --git a/Automap/Data/PersistedConfiguration.cs b/Automap/Data/PersistedConfiguration.cs
new file mode 100644 (file)
index 0000000..4f4a35c
--- /dev/null
@@ -0,0 +1,37 @@
+using System;
+using System.Collections.Generic;
+
+using Newtonsoft.Json;
+
+namespace Automap
+{
+       
+       public  class PersistedConfiguration
+       {
+               /// <summary>
+               /// Run AM After a small delay when client has loaded fully
+               /// </summary>
+               /// <value>To autostart.</value>
+               public bool Autostart { get; set; } = false;
+
+               //public string ChosenRendererName { get; set; }
+
+               //All - Designators, setup
+               public List<BlockDesignator> BlockDesignators { get; set; }
+               public List<EntityDesignator> EntityDesignators { get; set; }
+
+
+               public PersistedConfiguration(bool defaults = false )
+               {
+
+               if (defaults) {
+               BlockDesignators = DefaultDesignators.DefaultBlockDesignators( );
+               EntityDesignators= DefaultDesignators.DefaultEntityDesignators( );
+               }
+
+               }
+
+
+       }
+}
+