Esempio n. 1
0
        /// <summary>
        /// Remove a MessageEvent from this event manager.
        /// </summary>
        /// <param name="messageEvent"></param>
        public void removeEvent(MessageEvent messageEvent)
        {
            EventLayer layer;

            if (eventLayers.TryGetValue(messageEvent.EventLayerKey, out layer))
            {
                layer.removeEvent(messageEvent);
            }
            else
            {
                Logging.Log.Warning($"Could not unbind message event to layer {messageEvent.EventLayerKey}");
            }
        }
Esempio n. 2
0
 public void removeEvent(MessageEvent evt)
 {
     messageEvents.Remove(evt);
 }
Esempio n. 3
0
 public void addEvent(MessageEvent evt)
 {
     messageEvents.Add(evt);
 }
Esempio n. 4
0
 /// <summary>
 /// Remove an event from this event layer.
 /// </summary>
 /// <param name="evt">The event to remove.</param>
 public void removeEvent(MessageEvent evt)
 {
     eventList.Remove(evt);
 }
Esempio n. 5
0
 /// <summary>
 /// Add an event to this event layer.
 /// </summary>
 /// <param name="evt">The event to add.</param>
 public void addEvent(MessageEvent evt)
 {
     eventList.Add(evt);
 }