public Game1(ServerEngine eng)
        {
            graphics = new GraphicsDeviceManager(this);
            Content.RootDirectory = "Content";
            //graphics.PreferredBackBufferWidth = 800;
            //graphics.PreferredBackBufferHeight = 600;

            graphics.PreferredBackBufferWidth = 1024;
            graphics.PreferredBackBufferHeight = 768;
            gengine = eng;
            environment = gengine.getEnvironment();
        }
 public Game1(ClientEngine eng)
 {
     graphics = new GraphicsDeviceManager(this);
     Content.RootDirectory = "Content";
     //graphics.PreferredBackBufferWidth = 600;//1024;
     //graphics.PreferredBackBufferHeight = 480;//768;
     graphics.PreferredBackBufferWidth = 1024;
     graphics.PreferredBackBufferHeight = 768;
     gengine = eng;
     while (!eng.ready)
     {
         // horrible
     }
     environment = gengine.getEnvironment();
 }