pokemon.go 2.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. package pokemon
  2. // RawPokemon is a re-typed byte slice.
  3. type RawPokemon []byte
  4. // Pokemon is a struct the has fields for all relevant pokemon data from a
  5. // RawPokemon.
  6. type Pokemon struct {
  7. RawPokemon *RawPokemon `json:"raw_pokemon"`
  8. EncryptionConstant uint32 `json:"encryption_constant"`
  9. PokedexNumber uint16 `json:"pokedex_number"`
  10. HeldItemID uint16 `json:"held_item_id"`
  11. TrainerID uint16 `json:"trainer_id"`
  12. SecretID uint16 `json:"secret_id"`
  13. FullTrainerID uint32 `json:"full_trainer_id"`
  14. Experience uint32 `json:"experience"`
  15. AbilityID uint8 `json:"ability_id"`
  16. AbilityNum uint8 `json:"Ability_number"`
  17. PID uint32 `json:"pid"`
  18. NatureID uint8 `json:"nature_id"`
  19. FatefulEncounter bool `json:"fateful_encounter"`
  20. Gender string `json:"gender"`
  21. FormID uint8 `json:"form_id"`
  22. HPEV uint8 `json:"hp_ev"`
  23. AtkEV uint8 `json:"attack_ev"`
  24. DefEV uint8 `json:"defense_ev"`
  25. SpeEV uint8 `json:"speed_ev"`
  26. SpAtkEV uint8 `json:"special_attack_ev"`
  27. SpDefEV uint8 `json:"special_defense_ev"`
  28. PokerusDuration uint8 `json:"pokerus_duration"`
  29. PokerusStrain uint8 `json:"pokerus_strain"`
  30. RawNickname []byte `json:"raw_nickname"`
  31. Nickname string `json:"nickname"`
  32. Move1ID uint16 `json:"move_1_id"`
  33. Move2ID uint16 `json:"move_2_id"`
  34. Move3ID uint16 `json:"move_3_id"`
  35. Move4ID uint16 `json:"move_4_id"`
  36. Move1PP uint8 `json:"move_1_pp"`
  37. Move2PP uint8 `json:"move_2_pp"`
  38. Move3PP uint8 `json:"move_3_pp"`
  39. Move4PP uint8 `json:"move_4_pp"`
  40. Move1PPUsed uint8 `json:"move_1_pp_used"`
  41. Move2PPUsed uint8 `json:"move_2_pp_used"`
  42. Move3PPUsed uint8 `json:"move_3_pp_used"`
  43. Move4PPUsed uint8 `json:"move_4_pp_used"`
  44. EggMove1ID uint16 `json:"egg_move_1_id"`
  45. EggMove2ID uint16 `json:"egg_move_2_id"`
  46. EggMove3ID uint16 `json:"egg_move_3_id"`
  47. EggMove4ID uint16 `json:"egg_move_4_id"`
  48. HPIV uint32 `json:"hp_iv"`
  49. AtkIV uint32 `json:"attack_iv"`
  50. DefIV uint32 `json:"defense_iv"`
  51. SpeIV uint32 `json:"speed_iv"`
  52. SpAtkIV uint32 `json:"special_attack_iv"`
  53. SpDefIV uint32 `json:"special_defense_iv"`
  54. IsEgg bool `json:"is_egg"`
  55. IsNicknamed bool `json:"is_nicknamed"`
  56. }