Exemple #1
0
        public HeadlessGameHost(string gameName = @"", bool bindIPC = false, bool realtime = true)
            : base(gameName, bindIPC)
        {
            if (!realtime)
            {
                customClock = new FramedClock(new FastClock(1000.0 / 30));
            }

            UpdateThread.Scheduler.Update();
            Dependencies.Cache(Storage = new DesktopStorage(string.Empty));
        }
 public HeadlessGameHost(string gameName = @"", bool bindIPC = false) : base(gameName, bindIPC)
 {
     Size = Vector2.One; //we may be expected to have a non-zero size by components we run.
     UpdateScheduler.Update();
     Dependencies.Cache(Storage = new DesktopStorage(string.Empty));
 }
 public HeadlessGameHost(string gameName = @"", bool bindIPC = false) : base(gameName, bindIPC)
 {
     UpdateThread.Scheduler.Update();
     Dependencies.Cache(Storage = new DesktopStorage(string.Empty));
 }
Exemple #4
0
        protected override void Load(BaseGame game)
        {
            Storage = new DesktopStorage(string.Empty);

            base.Load(game);
        }