Esempio n. 1
0
 private static void OnMapStart()
 {
     try
     {
         MapStart?.Invoke();
     }
     catch (Exception ex)
     {
         Trace.WriteLine("Unhandled Exception in " + typeof(Game).Name + ".OnMapStart!");
         Trace.WriteLine(ex.ToString());
     }
 }
Esempio n. 2
0
        public void InitializeMap(bool loadGame)
        {
            if (loadGame)
            {
                //TODO: load game
            }
            else
            {
                Scene.LoadEntities(MapInfo.Model.BSPFile.Entities);
            }

            Scene.Start();

            MapStart?.Invoke(this, Scene);
        }