SpaceAgeScenario.cs
/// <summary>
/// Adds a new event to the Chronicle, including all relevant vessel records, and displays a notification, if necessary
/// </summary>
/// <param name="e"></param>
Adds a new event to the Chronicle, including all relevant vessel records, and displays a notification, if necessary
Adds a new event to the Chronicle including all relevant vessel records and displays a notification if necessary
public void AddChronicleEvent(ChronicleEvent e)
        {
            chronicle.Add(e);
            foreach (string id in e.VesselIds)
                AddVesselRecord(new VesselRecord(id));
            if (SpaceAgeChronicleSettings.Instance.ShowNotifications && !e.LogOnly)
            {
                TimeWarp.SetRate(0, true, false);
                ScreenMessages.PostScreenMessage(e.Description);
            }
            Invalidate();
        }
public void AddChronicleEvent ( ChronicleEvent e ) { chronicle . Add ( e ) ; foreach ( string id in e . VesselIds ) AddVesselRecord ( new VesselRecord ( id ) ) ; if ( SpaceAgeChronicleSettings . Instance . ShowNotifications && ! e . LogOnly ) { TimeWarp . SetRate ( 0 , true , false ) ; ScreenMessages . PostScreenMessage ( e . Description ) ; } Invalidate ( ) ; }
Adds a new event to the Chronicle, including all relevant vessel records, and displays a notification, if necessary
Adds a new event to the Chronicle including all relevant vessel records and displays a notification if necessary
e
ChronicleEvent
None