Ejemplo n.º 1
0
        private static void HandleEvents(RouterEventArgs @event, ref dynamic vaProxy)
        {
            foreach (var voiceAttackVariable in @event.EventArgs)
            {
                SetVariable(ref vaProxy, voiceAttackVariable.Type, voiceAttackVariable.VariableName, voiceAttackVariable.VariableValue);
            }

            if (@event is IWaypointEvent waypointEvent && waypointEvent.CopyToClipboard)
            {
                WaypointToClipboard();
            }

            var vaCommandName = $"((EDRouter {@event.EventName.ToLowerInvariant()}))";

            if (@event.EmitEvent && vaProxy.CommandExists(vaCommandName))
            {
                vaProxy.ExecuteCommand(vaCommandName);
            }
        }
 public void SendEvent(RouterEventArgs @event)
 {
 }
Ejemplo n.º 3
0
 public void SendEvent(RouterEventArgs @event)
 {
     EventSent?.Invoke(this, @event);
 }