Пример #1
0
        public void Load()
        {
            if (_loaded)
            {
                return;
            }

            var stats = Game.GetCardFromId(Id);

            PlayerClass   = stats.PlayerClass;
            Rarity        = stats.Rarity;
            Type          = stats.Type;
            Name          = stats.Name;
            Cost          = stats.Cost;
            LocalizedName = stats.LocalizedName;
            InHandCount   = stats.InHandCount;
            Text          = stats.Text;
            EnglishText   = stats.EnglishText;
            Attack        = stats.Attack;
            Health        = stats.Health;
            Race          = stats.Race;
            Durability    = stats.Durability;
            Mechanics     = stats.Mechanics;
            Artist        = stats.Artist;
            Set           = stats.Set;
            _wasDiscarded = false;
            _loaded       = true;
            OnPropertyChanged();
        }
Пример #2
0
        public void Load()
        {
            Debug.Assert(Id != null);

            var stats = Game.GetCardFromId(Id);

            PlayerClass   = stats.PlayerClass;
            Rarity        = stats.Rarity;
            Type          = stats.Type;
            Name          = stats.Name;
            Cost          = stats.Cost;
            LocalizedName = stats.LocalizedName;
            InHandCount   = stats.InHandCount;
            Text          = stats.Text;
            Attack        = stats.Attack;
            Health        = stats.Health;
            Race          = stats.Race;
            Durability    = stats.Durability;
            _wasDiscarded = false;
            OnPropertyChanged();
        }