Ejemplo n.º 1
0
        // TODO: Remove if not needed
        /*public EngineClock (DateTime startTime, EngineContext context)
        {
            throw new NotImplementedException ();
            //Context = context;
            //StartTime = startTime;
        }*/
        public EngineClock(EngineSettings settings, ConsoleHelper console)
        {
            Console = console;

            if (settings.IsVerbose)
                Console.WriteDebugLine ("Constructing game engine clock");

            Settings = settings;
            StartTime = DateTime.Now;

            if (settings.IsVerbose)
                Console.WriteDebugLine ("Setting start time to: " + StartTime.ToString());
        }
Ejemplo n.º 2
0
        // TODO: Remove if not needed

        /*public EngineClock (DateTime startTime, EngineContext context)
         * {
         *      throw new NotImplementedException ();
         *      //Context = context;
         *      //StartTime = startTime;
         * }*/

        public EngineClock(EngineSettings settings, ConsoleHelper console)
        {
            Console = console;

            if (settings.IsVerbose)
            {
                Console.WriteDebugLine("Constructing game engine clock");
            }

            Settings  = settings;
            StartTime = DateTime.Now;

            if (settings.IsVerbose)
            {
                Console.WriteDebugLine("Setting start time to: " + StartTime.ToString());
            }
        }
Ejemplo n.º 3
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");
        }
Ejemplo n.º 4
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");
            }
        }