pokemon.go 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  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. RawNotOTName []byte `json:"raw_not_ot_name"`
  57. NotOTName string `json:"not_ot_name"`
  58. NotOTGender string `json:"not_ot_gender"`
  59. CurrentHandlerIsOT bool `json:"current_handler_is_ot"`
  60. GeoLocation1RegionID uint8 `json:"geo_location_1_region_id"`
  61. GeoLocation1CountryID uint8 `json:"geo_location_1_country_id"`
  62. GeoLocation2RegionID uint8 `json:"geo_location_2_region_id"`
  63. GeoLocation2CountryID uint8 `json:"geo_location_2_country_id"`
  64. GeoLocation3RegionID uint8 `json:"geo_location_3_region_id"`
  65. GeoLocation3CountryID uint8 `json:"geo_location_3_country_id"`
  66. GeoLocation4RegionID uint8 `json:"geo_location_4_region_id"`
  67. GeoLocation4CountryID uint8 `json:"geo_location_4_country_id"`
  68. GeoLocation5RegionID uint8 `json:"geo_location_5_region_id"`
  69. GeoLocation5CountryID uint8 `json:"geo_location_5_country_id"`
  70. NotOTFriendship uint8 `json:"not_ot_friendship"`
  71. NotOTAffection uint8 `json:"not_ot_affection"`
  72. NotOTMemoryIntensity uint8 `json:"not_ot_memory_intensity"`
  73. NotOTMemoryLine uint8 `json:"not_ot_memory_line"`
  74. NotOTMemoryFeeling uint8 `json:"not_ot_memory_feeling"`
  75. NotOTMemoryTextVar uint16 `json:"not_ot_memory_text_var"`
  76. Fullness uint8 `json:"fullness"`
  77. Enjoyment uint8 `json:"enjoyment"`
  78. RawOTName []byte `json:"raw_ot_name"`
  79. OTName string `json:"ot_name"`
  80. OTFriendship uint8 `json:"ot_friendship"`
  81. OTAffection uint8 `json:"ot_affection"`
  82. OTMemoryIntensity uint8 `json:"ot_memory_intensity"`
  83. OTMemoryLine uint8 `json:"ot_memory_line"`
  84. OTMemoryTextVar uint16 `json:"ot_memory_text_var"`
  85. OTMemoryFeeling uint8 `json:"ot_memory_feeling"`
  86. DateEggReceived int64 `json:"date_egg_received"`
  87. DateMet int64 `json:"date_met"`
  88. EggLocationID uint16 `json:"egg_location_id"`
  89. MetLocationID uint16 `json:"met_location_id"`
  90. PokeballID uint8 `json:"pokeball_id"`
  91. LevelMet uint8 `json:"level_met"`
  92. OTGender string `json:"ot_gender"`
  93. Gen4EncounterTypeID uint8 `json:"gen_4_encounter_type_id"`
  94. OTGameID uint8 `json:"OTGameID"`
  95. CountryID uint8 `json:"CountryID"`
  96. RegionID uint8 `json:"RegionID"`
  97. RawConsoleRegion uint8 `json:"raw_console_region"`
  98. ConsoleRegion string `json:"console_region"`
  99. OTLanguageID uint8 `json:"ot_language_id"`
  100. }