Exemple #1
0
 public DeckSaveDataBase(GameSaveData owner)
     : base(owner)
 {
     MainDeckCards  = new List <short>();
     SideDeckCards  = new List <short>();
     ExtraDeckCards = new List <short>();
 }
Exemple #2
0
 public MiscSaveData(GameSaveData owner)
     : base(owner)
 {
     Challenges      = new DeulistChallengeState[Constants.GetNumDeckDataSlots(Version)];
     UnlockedRecipes = new bool[Constants.GetNumDeckDataSlots(Version)];
     UnlockedAvatars = new bool[153];
 }
Exemple #3
0
 public BattlePackSaveData(GameSaveData owner)
     : base(owner)
 {
     DraftedCards = new List <short>();
     SealedCards1 = new List <short>();
     SealedCards2 = new List <short>();
     SealedCards3 = new List <short>();
 }
Exemple #4
0
        public void MigrateFrom(GameSaveData other)
        {
            LotdArchive archive = new LotdArchive(Version);

            archive.Load();
            LotdArchive otherArchive = new LotdArchive(other.Version);

            otherArchive.Load();

            CardList.MigrateFrom(archive, otherArchive, other);
        }
Exemple #5
0
        public CampaignSaveData(GameSaveData owner)
            : base(owner)
        {
            DuelsBySeries = new Dictionary <DuelSeries, Duel[]>();
            DuelsBySeries.Add(DuelSeries.YuGiOh, new Duel[DuelsPerSeries]);
            DuelsBySeries.Add(DuelSeries.YuGiOhGX, new Duel[DuelsPerSeries]);
            DuelsBySeries.Add(DuelSeries.YuGiOh5D, new Duel[DuelsPerSeries]);
            DuelsBySeries.Add(DuelSeries.YuGiOhZEXAL, new Duel[DuelsPerSeries]);
            DuelsBySeries.Add(DuelSeries.YuGiOhARCV, new Duel[DuelsPerSeries]);
            DuelsBySeries.Add(DuelSeries.YuGiOhVRAINS, new Duel[DuelsPerSeries]);

            foreach (KeyValuePair <DuelSeries, Duel[]> seriesDuels in DuelsBySeries)
            {
                for (int i = 0; i < DuelsPerSeries; i++)
                {
                    seriesDuels.Value[i] = new Duel();
                }
            }
        }
Exemple #6
0
        public void MigrateFrom(LotdArchive archive, LotdArchive otherArchive, GameSaveData other)
        {
            Dictionary <int, CardInfo> cardsById, cardsByIndex, otherCardsById, otherCardsByIndex;

            LoadCards(archive, out cardsById, out cardsByIndex);
            LoadCards(otherArchive, out otherCardsById, out otherCardsByIndex);

            // Well this doesn't work...
            for (int i = 0; i < other.CardList.Cards.Length; i++)
            {
                if (i < otherCardsByIndex.Count)
                {
                    CardInfo otherCard = otherCardsByIndex[i];
                    CardInfo card;
                    if (cardsById.TryGetValue(otherCard.CardId, out card))
                    {
                        Cards[card.Index].RawValue = other.CardList.Cards[i].RawValue;
                    }
                }
            }
        }
Exemple #7
0
 public DeckSaveData(GameSaveData owner)
     : base(owner)
 {
 }
Exemple #8
0
 public SaveDataChunk(GameSaveData owner)
 {
     Owner = owner;
 }
Exemple #9
0
 public StatSaveData(GameSaveData owner)
     : base(owner)
 {
     Stats = new Dictionary <StatSaveType, long>();
 }
Exemple #10
0
 public CardListSaveData(GameSaveData owner)
     : base(owner)
 {
     // Have enough cards to support the latest version of the game (so that we load old, modify as new, save as new)
     Cards = new CardState[Constants.GetNumCards2(Constants.LatestVersion)];
 }