Esempio n. 1
0
 public DeckSaveDataBase(GameSaveData owner)
     : base(owner)
 {
     MainDeckCards  = new List <short>();
     SideDeckCards  = new List <short>();
     ExtraDeckCards = new List <short>();
 }
Esempio n. 2
0
 public MiscSaveData(GameSaveData owner)
     : base(owner)
 {
     Challenges      = new DeulistChallengeState[Constants.GetNumDeckDataSlots(Version)];
     UnlockedRecipes = new bool[Constants.GetNumDeckDataSlots(Version)];
     UnlockedAvatars = new bool[153];
 }
Esempio n. 3
0
 public BattlePackSaveData(GameSaveData owner)
     : base(owner)
 {
     DraftedCards = new List <short>();
     SealedCards1 = new List <short>();
     SealedCards2 = new List <short>();
     SealedCards3 = new List <short>();
 }
Esempio n. 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);
        }
Esempio n. 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();
                }
            }
        }
Esempio n. 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;
                    }
                }
            }
        }
Esempio n. 7
0
 public DeckSaveData(GameSaveData owner)
     : base(owner)
 {
 }
Esempio n. 8
0
 public SaveDataChunk(GameSaveData owner)
 {
     Owner = owner;
 }
Esempio n. 9
0
 public StatSaveData(GameSaveData owner)
     : base(owner)
 {
     Stats = new Dictionary <StatSaveType, long>();
 }
Esempio n. 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)];
 }