Exemplo n.º 1
0
        private static void PeekContinuation(object sender, RevealEventArgs e)
        {
            var identity = (CardIdentity)sender;

            identity.Revealed -= PeekContinuation;
            if (e.NewIdentity.Model == null)
            {
                e.NewIdentity.Revealed += PeekContinuation;
                return;
            }
            Program.TracePlayerEvent(Player.LocalPlayer, "You peeked at {0}.", e.NewIdentity.Model);
        }
Exemplo n.º 2
0
        public void Rename(object sender, RevealEventArgs e)
        {
            var id = (CardIdentity)sender;

            id.Revealed -= Rename;
            CardIdentity newId = e.NewIdentity;

            if (newId.Model != null)
            {
                Target.SetCardModel(newId.Model);
            }
            else
            {
                newId.Revealed += Rename;
            }
        }
Exemplo n.º 3
0
 private static void PeekContinuation(object sender, RevealEventArgs e)
 {
     var identity = (CardIdentity) sender;
     identity.Revealed -= PeekContinuation;
     if (e.NewIdentity.Model == null)
     {
         e.NewIdentity.Revealed += PeekContinuation;
         return;
     }
     Program.TracePlayerEvent(Player.LocalPlayer, "You peeked at {0}.", e.NewIdentity.Model);
 }
Exemplo n.º 4
0
 public void Rename(object sender, RevealEventArgs e)
 {
     var id = (CardIdentity) sender;
     id.Revealed -= Rename;
     CardIdentity newId = e.NewIdentity;
     if (newId.Model != null)
         Target.SetCardModel(newId.Model);
     else
         newId.Revealed += Rename;
 }