Пример #1
0
        public CrystalGame(CrystalConfig config)
        {
            if (Instance != null)
            {
                throw new Exception("Can't create more than one game object!");
            }

            Instance    = this;
            this.config = config;
        }
Пример #2
0
        static void Main()
        {
            var config = CrystalConfig.FromDirectory("Config/");

            RegisteredTypes.LoadAllIn("Assemblies/");

            var game = new CrystalGame(config);

            game.Run();
        }