Exemplo n.º 1
0
        public DuelingSystem(IChatClient chatClient, IAutomatedActionSystem automatedActionSystem)
        {
            _chatClient = chatClient;
            _chatClient.OnWhisperReceived += ChatClientOnOnWhisperReceived;
            var repeatingCallbackAction = new RepeatingCallbackAction(CheckForExpiredDuels);

            automatedActionSystem.AddAction(repeatingCallbackAction);
        }
Exemplo n.º 2
0
 public GameScheduler(IAutomatedActionSystem automatedActionSystem)
 {
     _action = new RepeatingCallbackAction(OpenGameIfNeeded, _intervalInSeconds);
     automatedActionSystem.AddAction(_action);
 }