Пример #1
0
 public Game(OgreEngine OgreEngine)
 {
     this.OgreEngine = OgreEngine;
     World = new GameWorld(OgreEngine);
     GameSettings.LoadFromFile(OgreEngine.exeDir + "game.ini");
     this.Camera = new PlayerCamera(this);
 }
Пример #2
0
        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;
            }
        }
Пример #3
0
        public WorldMap(OgreEngine OgreEngine)
        {
            this.OgreEngine = OgreEngine;
            this.MapEditor = new MapEditor(OgreEngine, this);
            this.Size = new Vector3(1024, 256, 1024);

            CreateTerrain();
            CreateWater();
        }
Пример #4
0
 public GameWorld(OgreEngine OgreEngine)
 {
     this.OgreEngine = OgreEngine;
     ObjectList = new GameObjectList();
     this.mMgr = OgreEngine.mMgr;
 }