Exemplo n.º 1
0
    private static FF9SAVE_MINIGAME DoDeepCopyWidhCardsAlwaysBeYours(FF9SAVE_MINIGAME originalData)
    {
        FF9SAVE_MINIGAME ff9SAVE_MINIGAME = new FF9SAVE_MINIGAME();

        ff9SAVE_MINIGAME.sWin  = originalData.sWin;
        ff9SAVE_MINIGAME.sLose = originalData.sLose;
        ff9SAVE_MINIGAME.sDraw = originalData.sDraw;
        foreach (QuadMistCard quadMistCard in originalData.MiniGameCard)
        {
            QuadMistCard quadMistCard2 = new QuadMistCard();
            quadMistCard2.id     = quadMistCard.id;
            quadMistCard2.side   = 0;
            quadMistCard2.atk    = quadMistCard.atk;
            quadMistCard2.type   = quadMistCard.type;
            quadMistCard2.pdef   = quadMistCard.pdef;
            quadMistCard2.mdef   = quadMistCard.mdef;
            quadMistCard2.cpoint = quadMistCard.cpoint;
            quadMistCard2.arrow  = quadMistCard.arrow;
            ff9SAVE_MINIGAME.MiniGameCard.Add(quadMistCard2);
        }
        return(ff9SAVE_MINIGAME);
    }
Exemplo n.º 2
0
 private static void WriteCurrentDataToSharedData(FF9SAVE_MINIGAME data)
 {
     FF9StateSystem.MiniGame.SavedData = QuadMistDatabase.DoDeepCopyWidhCardsAlwaysBeYours(data);
 }