Пример #1
0
 public override void OnTwitchExtension(string name, int amount, string action, JToken settings)
 {
     Logger.WriteLine("OnTwitchExtension");
     if (_handler.GetAction(action, settings, out var baseAction))
     {
         baseAction.Execute(new Data {
             Type = EventType.TwitchExtension, Amount = amount
         });
     }
 }
Пример #2
0
 public override void OnTwitchExtension(string name, int amount, string action, JToken settings)
 {
     Plugin.Logger.WriteLine("OnTwitchExtension");
     if (_handler.GetAction(action, settings, out var baseAction))
     {
         var data = new Data {
             Type = EventType.TwitchExtension, Amount = amount
         };
         baseAction.Execute(data, GetParams(data));
     }
 }