Exemplo n.º 1
0
 void SetTrainerInfo()
 {
     TrainerInfo.playerName       = PkmString.GetString(gs.GetBytes(0x00, NAME_SIZE));
     TrainerInfo.playerGender     = (Gender)gs.GetByte(0x08);
     TrainerInfo.playerId.Public  = gs.GetUShort(0x0A);
     TrainerInfo.playerId.Secret  = gs.GetUShort(0x0C);
     TrainerInfo.playTime.hours   = gs.GetUShort(0x0E);
     TrainerInfo.playTime.minutes = gs.GetByte(0x10);
     TrainerInfo.playTime.seconds = gs.GetByte(0x11);
 }
Exemplo n.º 2
0
        void SetGrowth(int offset)
        {
            if (gr == null)
            {
                gr = new Growth();
            }

            gr.species = gs.GetUShort(offset);
            gr.item    = gs.GetUShort(offset + 2);
            gr.exp     = gs.GetUInt(offset + 4);
            gr.ppUp    = gs.GetByte(offset + 8);
            gr.friend  = gs.GetByte(offset + 9);

            dexNum = PokeList.GetDex(gr.species);
        }