Beispiel #1
0
 public Weapon(SabberEntities.Weapon playable)
 {
     CardId     = playable.Card.AssetId;
     ATK        = playable.AttackDamage;
     Durability = playable.Durability;
     Damage     = playable.Damage;
     Windfury   = playable.IsWindfury;
     Lifesteal  = playable.HasLifeSteal;
     Immune     = playable.IsImmune;
 }
 public Weapon(SabberStoneCore.Model.Entities.Weapon weapon)
 {
     cardId_     = weapon.Card.AssetId;
     atk_        = weapon.AttackDamage;
     durability_ = weapon.Durability;
     windfury_   = weapon.IsWindfury;
     lifesteal_  = weapon.HasLifeSteal;
     poisonous_  = weapon.Poisonous;
     immune_     = weapon.IsImmune;
 }
Beispiel #3
0
 private Weapon GetWeapon(SabberStoneCore.Model.Entities.Weapon weapon)
 {
     return(new Weapon()
     {
         CardId = weapon.Card.AssetId,
         Atk = weapon.AttackDamage,
         Durability = weapon.Durability,
         Windfury = weapon.IsWindfury,
         Lifesteal = weapon.HasLifeSteal,
         Poisonous = weapon.Poisonous,
         Immune = weapon.IsImmune,
     });
 }