Beispiel #1
0
        private void TriggerImmediately(IEffect effect)
        {
            var handle = effect.GetHandle(this);

            AddEffect(effect);
            TriggerEffect(handle);
        }
Beispiel #2
0
 private static void EffectAddedCallback(IEffect effect)
 {
     try
     {
         if (effect is IResponseEffect && effect.CanBeTriggered(game))
         {
             if (PromptForBool("You have a response that can be triggered right now.\r\n\r\n{0}\r\n\r\nWould you like to trigger this repsonse?", effect))
             {
                 var handle = effect.GetHandle(game);
                 game.TriggerEffect(handle);
             }
         }
     }
     catch (Exception ex)
     {
         WriteLine("\r\nError in effect added callback: {0}\r\n{1}", ex.Message, ex.StackTrace);
     }
 }