예제 #1
0
        public void Compose(string seed, bool testMode)  // 1st
        {
            InitialSeed = seed;

            try
            {
                game = CreateGameInstance();  //  2nd
            }
            catch (Exception ex)
            {
                Logger.Fatal("Exception terminated construction", ex);
                return;
            }

            SourceMe.Build(new Size(gameWidth, gameHeight));  //  3rd
            Logger = SourceMe.The <ILog>();
            Basis.ConnectIDGenerator();
        }
예제 #2
0
        public void InitializeEngine()  //  Nth + 2
        {
            var engine = SourceMe.The <Engine>();

            engine.Init(InitialSeed);
        }