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