public static UseAbilityMessage Create(string phaseTag, IEnumerable<Ability> abilities)
 {
     var abilityList = abilities.ToList();
     var message = new UseAbilityMessage
                       {
                           Phase = phaseTag,
                           Required = abilityList.Any(a => a.IsRequired),
                           Abilities = abilityList.Select(a => a.CreateMessage())
                       };
     return message;
 }
Beispiel #2
0
 void IPlayerView.UseAbility(UseAbilityMessage message)
 {
     Clients.Caller.displayUseAbility(message);
 }