예제 #1
0
        public PoffinCase4(SAV4Sinnoh sav)
        {
            SAV = sav;

            Offset  = sav.OFS_PoffinCase;
            Poffins = ReadPoffins(SAV, Offset);
        }
예제 #2
0
 private static void WritePoffins(SAV4Sinnoh sav, int offset, IReadOnlyList <Poffin4> poffins)
 {
     Debug.Assert(poffins.Count == Count);
     for (int i = 0; i < poffins.Count; i++)
     {
         sav.SetData(sav.General, poffins[i].Data, offset + (i * Poffin4.SIZE));
     }
 }
예제 #3
0
        private static Poffin4[] ReadPoffins(SAV4Sinnoh sav, int offset)
        {
            var Poffins = new Poffin4[Count];

            for (int i = 0; i < Poffins.Length; i++)
            {
                Poffins[i] = new Poffin4(sav.General, offset + (i * Poffin4.SIZE));
            }
            return(Poffins);
        }