コード例 #1
0
    public void Notify(string txt, SimulationEventNotificationPriority prio = SimulationEventNotificationPriority.Normal)
    {
        DateTime timestamp = GameTimeComponent.CurrentTime;
        SimulationEventNotification newNotification = new SimulationEventNotification(txt, prio, timestamp);

        NotificationReceived?.Invoke(newNotification);
    }
コード例 #2
0
    /*Private methods*/

    /*Public methods*/

    public SimulationEventNotification(string txt, SimulationEventNotificationPriority prio, DateTime timestamp)
    {
        this.Text      = txt;
        this.Priority  = prio;
        this.Timestamp = timestamp;
    }