示例#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);
        }