コード例 #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
ファイル: Program.cs プロジェクト: Serebriakov/rybrcoul-games
        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
ファイル: Map.cs プロジェクト: Serebriakov/rybrcoul-games
        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;
 }