Beispiel #1
0
 void StoreTrainerInfo()
 {
     gs.StoreBytes(0x00, NAME_SIZE, PkmString.GetBytes(TrainerInfo.playerName));
     gs.StoreByte(0x08, (byte)TrainerInfo.playerGender);
     gs.StoreUShort(0x0A, TrainerInfo.playerId.Public);
     gs.StoreUShort(0x0C, TrainerInfo.playerId.Secret);
     gs.StoreUShort(0x0E, TrainerInfo.playTime.hours);
     gs.StoreByte(0x10, TrainerInfo.playTime.minutes);
     gs.StoreByte(0x11, TrainerInfo.playTime.seconds);
 }
Beispiel #2
0
        private void StoreEV(int i)
        {
            int j = 12 * i;

            gs.StoreByte(j, ev.hp);
            gs.StoreByte(j + 1, ev.atk);
            gs.StoreByte(j + 2, ev.def);
            gs.StoreByte(j + 3, ev.spd);
            gs.StoreByte(j + 4, ev.sp_a);
            gs.StoreByte(j + 5, ev.sp_d);
            gs.StoreByte(j + 6, ev.cool);
            gs.StoreByte(j + 7, ev.bty);
            gs.StoreByte(j + 8, ev.cute);
            gs.StoreByte(j + 9, ev.smart);
            gs.StoreByte(j + 10, ev.tough);
            gs.StoreByte(j + 11, ev.feel);
        }