public CrystalGame(CrystalConfig config) { if (Instance != null) { throw new Exception("Can't create more than one game object!"); } Instance = this; this.config = config; }
static void Main() { var config = CrystalConfig.FromDirectory("Config/"); RegisteredTypes.LoadAllIn("Assemblies/"); var game = new CrystalGame(config); game.Run(); }