public void Notify(string txt, SimulationEventNotificationPriority prio = SimulationEventNotificationPriority.Normal) { DateTime timestamp = GameTimeComponent.CurrentTime; SimulationEventNotification newNotification = new SimulationEventNotification(txt, prio, timestamp); NotificationReceived?.Invoke(newNotification); }
/*Private methods*/ /*Public methods*/ public SimulationEventNotification(string txt, SimulationEventNotificationPriority prio, DateTime timestamp) { this.Text = txt; this.Priority = prio; this.Timestamp = timestamp; }