public Game(OgreEngine OgreEngine)
 {
     this.OgreEngine = OgreEngine;
     World = new GameWorld(OgreEngine);
     GameSettings.LoadFromFile(OgreEngine.exeDir + "game.ini");
     this.Camera = new PlayerCamera(this);
 }
        static void Main()
        {
            /*

            String hw = Registration.GetHwKey();

            if (!Registration.Registered())
            {
                if (DialogResult.Yes == MessageBox.Show("Aplikace není zaregistrována, přejete si ji nyní zdarma zaregistrovat? Bez registrace nelze hru spustit.", "Registrace", MessageBoxButtons.YesNo))
                {

                }
                else
                {
                    return;
                }
            }*/

            OgreEngine ogreEngine = null;

            try
            {
                ogreEngine = new OgreEngine();
                ogreEngine.Go();
            }
            catch (System.Runtime.InteropServices.SEHException)
            {
                if (OgreException.IsThrown)
                    MessageBox.Show(OgreException.LastException.FullDescription, "An Ogre exception has occurred!");
                else
                    throw;
            }
        }
Exemple #3
0
        public WorldMap(OgreEngine OgreEngine)
        {
            this.OgreEngine = OgreEngine;
            this.MapEditor = new MapEditor(OgreEngine, this);
            this.Size = new Vector3(1024, 256, 1024);

            CreateTerrain();
            CreateWater();
        }
 public GameWorld(OgreEngine OgreEngine)
 {
     this.OgreEngine = OgreEngine;
     ObjectList = new GameObjectList();
     this.mMgr = OgreEngine.mMgr;
 }