public PlayerShip(WgShip wgShip) { if (wgShip == null) return; ShipName = wgShip.Name; ShipType = wgShip.Type; ShipTier = wgShip.Tier; }
public PlayerShip(WgStatsShip wgStatsShip, WgStatsPlayer player, WgShip wgShip, int relationship) : this(wgShip) { if (wgStatsShip == null || player == null) return; ShipId = wgStatsShip.ShipId; AccountId = wgStatsShip.AccountId; Nickname = player.Nickname; Relation = relationship; Frags = wgStatsShip.Pvp.Frags; Wins = wgStatsShip.Pvp.Wins; Battles = wgStatsShip.Pvp.Battles; DamageDealt = wgStatsShip.Pvp.DamageDealt; XpEarned = wgStatsShip.Pvp.Xp; IsPrivateOrHidden = wgStatsShip.Private != null; }