public static void RegisterEvent(BackstageEventBase ev) { System.Diagnostics.Debug.WriteLine("EVENT: " + ev.Title + " - " + ev.Detail); EventRegistered?.Invoke(ev); var tev = ev as TwitterEventBase; if (tev == null) { return; } lock (_twitterEvents.SyncRoot) { if (tev.IsLocalUserInvolved) { _twitterEvents.Insert(0, tev); } if (_twitterEvents.Count > TwitterEventMaxHoldCount) { _twitterEvents.RemoveAt(_twitterEvents.Count - 1); } } }
public void RegisterEvents(IEnumerable <ICombatEvent> events) { Events = events; EventRegistered?.Invoke(this, new EventArgs()); }