Exemplo n.º 1
0
        public EngineContext(EngineSettings settings, DataManager data)
        {
            Data = data;

            Settings = settings;

            Console = new ConsoleHelper (Settings);

            Clock = new EngineClock (Settings, Console);

            Info = new EngineInfo (Clock.StartTime, Settings);

            Log = new LogWriter (Settings.EngineId, data.Client);

            World = new GameEnvironment (this);

            if (Settings.IsVerbose)
                Console.WriteDebugLine ("Constructing engine context");
        }
Exemplo n.º 2
0
        public EngineContext(EngineSettings settings, DataManager data)
        {
            Data = data;

            Settings = settings;

            Console = new ConsoleHelper(Settings);

            Clock = new EngineClock(Settings, Console);

            Info = new EngineInfo(Clock.StartTime, Settings);

            Log = new LogWriter(Settings.EngineId, data.Client);

            World = new GameEnvironment(this);

            if (Settings.IsVerbose)
            {
                Console.WriteDebugLine("Constructing engine context");
            }
        }