aboutsummaryrefslogtreecommitdiff
path: root/Mundus/Data/DataBaseContexts.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Mundus/Data/DataBaseContexts.cs')
-rw-r--r--Mundus/Data/DataBaseContexts.cs26
1 files changed, 26 insertions, 0 deletions
diff --git a/Mundus/Data/DataBaseContexts.cs b/Mundus/Data/DataBaseContexts.cs
new file mode 100644
index 0000000..18e75c9
--- /dev/null
+++ b/Mundus/Data/DataBaseContexts.cs
@@ -0,0 +1,26 @@
+using System;
+using Mundus.Data.Crafting;
+using Mundus.Data.SuperLayers;
+
+namespace Mundus.Data {
+ public static class DataBaseContexts {
+ public static CraftingTableContext CTContext { get; private set; }
+ public static GameEventLogContext GELContext { get; private set; }
+
+ public static SkyContext SContext { get; private set; }
+ public static LandContext LContext { get; private set; }
+ public static UndergroundContext UContext { get; private set; }
+ public static ISuperLayerContext[] SuperLayerContexts { get; private set; }
+
+ public static void CreateInstances() {
+ CTContext = new CraftingTableContext();
+ CTContext.AddRecipes();
+ GELContext = new GameEventLogContext();
+
+ SContext = new SkyContext();
+ LContext = new LandContext();
+ UContext = new UndergroundContext();
+ SuperLayerContexts = new ISuperLayerContext[] { SContext, LContext, UContext };
+ }
+ }
+}