Terraria v1.4.4.9
Terraria source code documentation
All Classes Namespaces Files Functions Variables Enumerations Enumerator Properties Events Macros

◆ SendCommand()

void System.Diagnostics.Tracing.EventPipeEventDispatcher.SendCommand ( EventListener eventListener,
EventCommand command,
bool enable,
EventLevel level,
EventKeywords matchAnyKeywords )
inlinepackage

Definition at line 52 of file EventPipeEventDispatcher.cs.

53 {
54 if (command == EventCommand.Update && enable)
55 {
57 {
58 m_subscriptions[eventListener] = new EventListenerSubscription(matchAnyKeywords, level);
60 return;
61 }
62 }
63 if (command == EventCommand.Update && !enable)
64 {
66 }
67 }
readonly Dictionary< EventListener, EventListenerSubscription > m_subscriptions

References System.Diagnostics.Tracing.EventPipeEventDispatcher.CommitDispatchConfiguration(), System.Diagnostics.Tracing.EventPipeEventDispatcher.m_dispatchControlLock, System.Diagnostics.Tracing.EventPipeEventDispatcher.m_subscriptions, and System.Diagnostics.Tracing.EventPipeEventDispatcher.RemoveEventListener().