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