foxapi 1.4.2__tar.gz → 1.6.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (190) hide show
  1. {foxapi-1.4.2 → foxapi-1.6.0}/PKG-INFO +23 -18
  2. {foxapi-1.4.2 → foxapi-1.6.0}/README.md +20 -16
  3. foxapi-1.6.0/foxapi/Images/MapIcons/59.png +0 -0
  4. foxapi-1.6.0/foxapi/Images/MapIcons/60.png +0 -0
  5. foxapi-1.6.0/foxapi/Images/MapIcons/70.png +0 -0
  6. foxapi-1.6.0/foxapi/Images/MapIcons/71.png +0 -0
  7. foxapi-1.6.0/foxapi/Images/MapIcons/72.png +0 -0
  8. foxapi-1.6.0/foxapi/Images/MapIcons/83.png +0 -0
  9. foxapi-1.6.0/foxapi/Images/MapIcons/MapIconForwardBase1.png +0 -0
  10. {foxapi-1.4.2 → foxapi-1.6.0}/foxapi/foxapi.py +130 -55
  11. {foxapi-1.4.2 → foxapi-1.6.0}/foxapi/utils.py +4 -3
  12. {foxapi-1.4.2 → foxapi-1.6.0}/foxapi.egg-info/PKG-INFO +23 -18
  13. {foxapi-1.4.2 → foxapi-1.6.0}/foxapi.egg-info/SOURCES.txt +8 -74
  14. {foxapi-1.4.2 → foxapi-1.6.0}/setup.py +1 -1
  15. foxapi-1.4.2/foxapi/Images/MapIcons/11COLONIALS.png +0 -0
  16. foxapi-1.4.2/foxapi/Images/MapIcons/11WARDENS.png +0 -0
  17. foxapi-1.4.2/foxapi/Images/MapIcons/12COLONIALS.png +0 -0
  18. foxapi-1.4.2/foxapi/Images/MapIcons/12WARDENS.png +0 -0
  19. foxapi-1.4.2/foxapi/Images/MapIcons/17COLONIALS.png +0 -0
  20. foxapi-1.4.2/foxapi/Images/MapIcons/17WARDENS.png +0 -0
  21. foxapi-1.4.2/foxapi/Images/MapIcons/18COLONIALS.png +0 -0
  22. foxapi-1.4.2/foxapi/Images/MapIcons/18WARDENS.png +0 -0
  23. foxapi-1.4.2/foxapi/Images/MapIcons/19COLONIALS.png +0 -0
  24. foxapi-1.4.2/foxapi/Images/MapIcons/19WARDENS.png +0 -0
  25. foxapi-1.4.2/foxapi/Images/MapIcons/27COLONIALS.png +0 -0
  26. foxapi-1.4.2/foxapi/Images/MapIcons/27WARDENS.png +0 -0
  27. foxapi-1.4.2/foxapi/Images/MapIcons/28COLONIALS.png +0 -0
  28. foxapi-1.4.2/foxapi/Images/MapIcons/28WARDENS.png +0 -0
  29. foxapi-1.4.2/foxapi/Images/MapIcons/29COLONIALS.png +0 -0
  30. foxapi-1.4.2/foxapi/Images/MapIcons/29WARDENS.png +0 -0
  31. foxapi-1.4.2/foxapi/Images/MapIcons/30COLONIALS.png +0 -0
  32. foxapi-1.4.2/foxapi/Images/MapIcons/30WARDENS.png +0 -0
  33. foxapi-1.4.2/foxapi/Images/MapIcons/33COLONIALS.png +0 -0
  34. foxapi-1.4.2/foxapi/Images/MapIcons/33WARDENS.png +0 -0
  35. foxapi-1.4.2/foxapi/Images/MapIcons/34COLONIALS.png +0 -0
  36. foxapi-1.4.2/foxapi/Images/MapIcons/34WARDENS.png +0 -0
  37. foxapi-1.4.2/foxapi/Images/MapIcons/35COLONIALS.png +0 -0
  38. foxapi-1.4.2/foxapi/Images/MapIcons/35WARDENS.png +0 -0
  39. foxapi-1.4.2/foxapi/Images/MapIcons/37COLONIALS.png +0 -0
  40. foxapi-1.4.2/foxapi/Images/MapIcons/37WARDENS.png +0 -0
  41. foxapi-1.4.2/foxapi/Images/MapIcons/39COLONIALS.png +0 -0
  42. foxapi-1.4.2/foxapi/Images/MapIcons/39WARDENS.png +0 -0
  43. foxapi-1.4.2/foxapi/Images/MapIcons/45COLONIALS.png +0 -0
  44. foxapi-1.4.2/foxapi/Images/MapIcons/45WARDENS.png +0 -0
  45. foxapi-1.4.2/foxapi/Images/MapIcons/46COLONIALS.png +0 -0
  46. foxapi-1.4.2/foxapi/Images/MapIcons/46WARDENS.png +0 -0
  47. foxapi-1.4.2/foxapi/Images/MapIcons/47COLONIALS.png +0 -0
  48. foxapi-1.4.2/foxapi/Images/MapIcons/47WARDENS.png +0 -0
  49. foxapi-1.4.2/foxapi/Images/MapIcons/51COLONIALS.png +0 -0
  50. foxapi-1.4.2/foxapi/Images/MapIcons/51WARDENS.png +0 -0
  51. foxapi-1.4.2/foxapi/Images/MapIcons/52COLONIALS.png +0 -0
  52. foxapi-1.4.2/foxapi/Images/MapIcons/52WARDENS.png +0 -0
  53. foxapi-1.4.2/foxapi/Images/MapIcons/53COLONIALS.png +0 -0
  54. foxapi-1.4.2/foxapi/Images/MapIcons/53WARDENS.png +0 -0
  55. foxapi-1.4.2/foxapi/Images/MapIcons/56COLONIALS.png +0 -0
  56. foxapi-1.4.2/foxapi/Images/MapIcons/56WARDENS.png +0 -0
  57. foxapi-1.4.2/foxapi/Images/MapIcons/57COLONIALS.png +0 -0
  58. foxapi-1.4.2/foxapi/Images/MapIcons/57WARDENS.png +0 -0
  59. foxapi-1.4.2/foxapi/Images/MapIcons/58COLONIALS.png +0 -0
  60. foxapi-1.4.2/foxapi/Images/MapIcons/58WARDENS.png +0 -0
  61. foxapi-1.4.2/foxapi/Images/MapIcons/59COLONIALS.png +0 -0
  62. foxapi-1.4.2/foxapi/Images/MapIcons/59WARDENS.png +0 -0
  63. foxapi-1.4.2/foxapi/Images/MapIcons/5COLONIALS.png +0 -0
  64. foxapi-1.4.2/foxapi/Images/MapIcons/5WARDENS.png +0 -0
  65. foxapi-1.4.2/foxapi/Images/MapIcons/60COLONIALS.png +0 -0
  66. foxapi-1.4.2/foxapi/Images/MapIcons/60WARDENS.png +0 -0
  67. foxapi-1.4.2/foxapi/Images/MapIcons/6COLONIALS.png +0 -0
  68. foxapi-1.4.2/foxapi/Images/MapIcons/6WARDENS.png +0 -0
  69. foxapi-1.4.2/foxapi/Images/MapIcons/75COLONIALS.png +0 -0
  70. foxapi-1.4.2/foxapi/Images/MapIcons/75WARDENS.png +0 -0
  71. foxapi-1.4.2/foxapi/Images/MapIcons/7COLONIALS.png +0 -0
  72. foxapi-1.4.2/foxapi/Images/MapIcons/7WARDENS.png +0 -0
  73. foxapi-1.4.2/foxapi/Images/MapIcons/84COLONIALS.png +0 -0
  74. foxapi-1.4.2/foxapi/Images/MapIcons/84WARDENS.png +0 -0
  75. foxapi-1.4.2/foxapi/Images/MapIcons/8COLONIALS.png +0 -0
  76. foxapi-1.4.2/foxapi/Images/MapIcons/8WARDENS.png +0 -0
  77. foxapi-1.4.2/foxapi/Images/MapIcons/9COLONIALS.png +0 -0
  78. foxapi-1.4.2/foxapi/Images/MapIcons/9WARDENS.png +0 -0
  79. foxapi-1.4.2/foxapi/Images/MapIcons/MapIconCoalFieldColor.png +0 -0
  80. foxapi-1.4.2/foxapi/Images/MapIcons/MapIconHomeBaseHallColonial.png +0 -0
  81. foxapi-1.4.2/foxapi/Images/MapIcons/MapIconHomeBaseHallWarden.png +0 -0
  82. foxapi-1.4.2/foxapi/Images/MapIcons/MapIconOilFieldColor.png +0 -0
  83. foxapi-1.4.2/foxapi/Images/MapIcons/MapIconSulfurColor.png +0 -0
  84. foxapi-1.4.2/foxapi/Images/MapIcons/MapIconTownHallColonial.png +0 -0
  85. foxapi-1.4.2/foxapi/Images/MapIcons/MapIconTownHallWarden.png +0 -0
  86. foxapi-1.4.2/foxapi/Images/MapIcons/MapIconVictoryColonial.png +0 -0
  87. foxapi-1.4.2/foxapi/Images/MapIcons/MapIconVictoryWarden.png +0 -0
  88. {foxapi-1.4.2 → foxapi-1.6.0}/LICENSE +0 -0
  89. {foxapi-1.4.2 → foxapi-1.6.0}/foxapi/Images/MapIcons/10.png +0 -0
  90. {foxapi-1.4.2 → foxapi-1.6.0}/foxapi/Images/MapIcons/11.png +0 -0
  91. {foxapi-1.4.2 → foxapi-1.6.0}/foxapi/Images/MapIcons/12.png +0 -0
  92. {foxapi-1.4.2 → foxapi-1.6.0}/foxapi/Images/MapIcons/13.png +0 -0
  93. {foxapi-1.4.2 → foxapi-1.6.0}/foxapi/Images/MapIcons/14.png +0 -0
  94. {foxapi-1.4.2 → foxapi-1.6.0}/foxapi/Images/MapIcons/15.png +0 -0
  95. {foxapi-1.4.2 → foxapi-1.6.0}/foxapi/Images/MapIcons/16.png +0 -0
  96. {foxapi-1.4.2 → foxapi-1.6.0}/foxapi/Images/MapIcons/17.png +0 -0
  97. {foxapi-1.4.2 → foxapi-1.6.0}/foxapi/Images/MapIcons/18.png +0 -0
  98. {foxapi-1.4.2 → foxapi-1.6.0}/foxapi/Images/MapIcons/19.png +0 -0
  99. {foxapi-1.4.2 → foxapi-1.6.0}/foxapi/Images/MapIcons/20.png +0 -0
  100. {foxapi-1.4.2 → foxapi-1.6.0}/foxapi/Images/MapIcons/21.png +0 -0
  101. {foxapi-1.4.2 → foxapi-1.6.0}/foxapi/Images/MapIcons/22.png +0 -0
  102. {foxapi-1.4.2 → foxapi-1.6.0}/foxapi/Images/MapIcons/23.png +0 -0
  103. {foxapi-1.4.2 → foxapi-1.6.0}/foxapi/Images/MapIcons/27.png +0 -0
  104. {foxapi-1.4.2 → foxapi-1.6.0}/foxapi/Images/MapIcons/28.png +0 -0
  105. {foxapi-1.4.2 → foxapi-1.6.0}/foxapi/Images/MapIcons/29.png +0 -0
  106. {foxapi-1.4.2 → foxapi-1.6.0}/foxapi/Images/MapIcons/30.png +0 -0
  107. {foxapi-1.4.2 → foxapi-1.6.0}/foxapi/Images/MapIcons/32.png +0 -0
  108. {foxapi-1.4.2 → foxapi-1.6.0}/foxapi/Images/MapIcons/33.png +0 -0
  109. {foxapi-1.4.2 → foxapi-1.6.0}/foxapi/Images/MapIcons/34.png +0 -0
  110. {foxapi-1.4.2 → foxapi-1.6.0}/foxapi/Images/MapIcons/35.png +0 -0
  111. {foxapi-1.4.2 → foxapi-1.6.0}/foxapi/Images/MapIcons/37.png +0 -0
  112. {foxapi-1.4.2 → foxapi-1.6.0}/foxapi/Images/MapIcons/38.png +0 -0
  113. {foxapi-1.4.2 → foxapi-1.6.0}/foxapi/Images/MapIcons/39.png +0 -0
  114. {foxapi-1.4.2 → foxapi-1.6.0}/foxapi/Images/MapIcons/40.png +0 -0
  115. {foxapi-1.4.2 → foxapi-1.6.0}/foxapi/Images/MapIcons/41.png +0 -0
  116. {foxapi-1.4.2 → foxapi-1.6.0}/foxapi/Images/MapIcons/45.png +0 -0
  117. {foxapi-1.4.2 → foxapi-1.6.0}/foxapi/Images/MapIcons/46.png +0 -0
  118. {foxapi-1.4.2 → foxapi-1.6.0}/foxapi/Images/MapIcons/47.png +0 -0
  119. {foxapi-1.4.2 → foxapi-1.6.0}/foxapi/Images/MapIcons/5.png +0 -0
  120. {foxapi-1.4.2 → foxapi-1.6.0}/foxapi/Images/MapIcons/51.png +0 -0
  121. {foxapi-1.4.2 → foxapi-1.6.0}/foxapi/Images/MapIcons/52.png +0 -0
  122. {foxapi-1.4.2 → foxapi-1.6.0}/foxapi/Images/MapIcons/53.png +0 -0
  123. {foxapi-1.4.2 → foxapi-1.6.0}/foxapi/Images/MapIcons/54.png +0 -0
  124. {foxapi-1.4.2 → foxapi-1.6.0}/foxapi/Images/MapIcons/56.png +0 -0
  125. {foxapi-1.4.2 → foxapi-1.6.0}/foxapi/Images/MapIcons/57.png +0 -0
  126. {foxapi-1.4.2 → foxapi-1.6.0}/foxapi/Images/MapIcons/58.png +0 -0
  127. {foxapi-1.4.2 → foxapi-1.6.0}/foxapi/Images/MapIcons/6.png +0 -0
  128. {foxapi-1.4.2 → foxapi-1.6.0}/foxapi/Images/MapIcons/61.png +0 -0
  129. {foxapi-1.4.2 → foxapi-1.6.0}/foxapi/Images/MapIcons/62.png +0 -0
  130. {foxapi-1.4.2 → foxapi-1.6.0}/foxapi/Images/MapIcons/7.png +0 -0
  131. {foxapi-1.4.2 → foxapi-1.6.0}/foxapi/Images/MapIcons/75.png +0 -0
  132. {foxapi-1.4.2 → foxapi-1.6.0}/foxapi/Images/MapIcons/8.png +0 -0
  133. /foxapi-1.4.2/foxapi/Images/MapIcons/MapIconSafehouse.png → /foxapi-1.6.0/foxapi/Images/MapIcons/84.png +0 -0
  134. {foxapi-1.4.2 → foxapi-1.6.0}/foxapi/Images/MapIcons/9.png +0 -0
  135. {foxapi-1.4.2 → foxapi-1.6.0}/foxapi/Images/MapIcons/DebugIcon.png +0 -0
  136. {foxapi-1.4.2 → foxapi-1.6.0}/foxapi/Images/MapIcons/MapIconCivicCenter.png +0 -0
  137. {foxapi-1.4.2 → foxapi-1.6.0}/foxapi/Images/MapIcons/MapIconFortCursed.png +0 -0
  138. {foxapi-1.4.2 → foxapi-1.6.0}/foxapi/Images/MapIcons/MapIconScorchedTown.png +0 -0
  139. {foxapi-1.4.2 → foxapi-1.6.0}/foxapi/Images/MapIcons/MapIconTownHall.png +0 -0
  140. {foxapi-1.4.2 → foxapi-1.6.0}/foxapi/Images/MapIcons/MapIconVictory.png +0 -0
  141. {foxapi-1.4.2 → foxapi-1.6.0}/foxapi/Images/MapsHex/MapAcrithiaHex.png +0 -0
  142. {foxapi-1.4.2 → foxapi-1.6.0}/foxapi/Images/MapsHex/MapAllodsBightHex.png +0 -0
  143. {foxapi-1.4.2 → foxapi-1.6.0}/foxapi/Images/MapsHex/MapAshFieldsHex.png +0 -0
  144. {foxapi-1.4.2 → foxapi-1.6.0}/foxapi/Images/MapsHex/MapBasinSionnachHex.png +0 -0
  145. {foxapi-1.4.2 → foxapi-1.6.0}/foxapi/Images/MapsHex/MapCallahansPassageHex.png +0 -0
  146. {foxapi-1.4.2 → foxapi-1.6.0}/foxapi/Images/MapsHex/MapCallumsCapeHex.png +0 -0
  147. {foxapi-1.4.2 → foxapi-1.6.0}/foxapi/Images/MapsHex/MapClahstraHex.png +0 -0
  148. {foxapi-1.4.2 → foxapi-1.6.0}/foxapi/Images/MapsHex/MapClansheadValleyHex.png +0 -0
  149. {foxapi-1.4.2 → foxapi-1.6.0}/foxapi/Images/MapsHex/MapDeadLandsHex.png +0 -0
  150. {foxapi-1.4.2 → foxapi-1.6.0}/foxapi/Images/MapsHex/MapDrownedValeHex.png +0 -0
  151. {foxapi-1.4.2 → foxapi-1.6.0}/foxapi/Images/MapsHex/MapEndlessShoreHex.png +0 -0
  152. {foxapi-1.4.2 → foxapi-1.6.0}/foxapi/Images/MapsHex/MapFarranacCoastHex.png +0 -0
  153. {foxapi-1.4.2 → foxapi-1.6.0}/foxapi/Images/MapsHex/MapFishermansRowHex.png +0 -0
  154. {foxapi-1.4.2 → foxapi-1.6.0}/foxapi/Images/MapsHex/MapGodcroftsHex.png +0 -0
  155. {foxapi-1.4.2 → foxapi-1.6.0}/foxapi/Images/MapsHex/MapGreatMarchHex.png +0 -0
  156. {foxapi-1.4.2 → foxapi-1.6.0}/foxapi/Images/MapsHex/MapHeartlandsHex.png +0 -0
  157. {foxapi-1.4.2 → foxapi-1.6.0}/foxapi/Images/MapsHex/MapHomeRegionC.png +0 -0
  158. {foxapi-1.4.2 → foxapi-1.6.0}/foxapi/Images/MapsHex/MapHomeRegionW.png +0 -0
  159. {foxapi-1.4.2 → foxapi-1.6.0}/foxapi/Images/MapsHex/MapHowlCountyHex.png +0 -0
  160. {foxapi-1.4.2 → foxapi-1.6.0}/foxapi/Images/MapsHex/MapKalokaiHex.png +0 -0
  161. {foxapi-1.4.2 → foxapi-1.6.0}/foxapi/Images/MapsHex/MapKingsCageHex.png +0 -0
  162. {foxapi-1.4.2 → foxapi-1.6.0}/foxapi/Images/MapsHex/MapLinnMercyHex.png +0 -0
  163. {foxapi-1.4.2 → foxapi-1.6.0}/foxapi/Images/MapsHex/MapLochMorHex.png +0 -0
  164. {foxapi-1.4.2 → foxapi-1.6.0}/foxapi/Images/MapsHex/MapMarbanHollow.png +0 -0
  165. {foxapi-1.4.2 → foxapi-1.6.0}/foxapi/Images/MapsHex/MapMooringCountyHex.png +0 -0
  166. {foxapi-1.4.2 → foxapi-1.6.0}/foxapi/Images/MapsHex/MapMorgensCrossingHex.png +0 -0
  167. {foxapi-1.4.2 → foxapi-1.6.0}/foxapi/Images/MapsHex/MapNevishLineHex.png +0 -0
  168. {foxapi-1.4.2 → foxapi-1.6.0}/foxapi/Images/MapsHex/MapOarbreakerHex.png +0 -0
  169. {foxapi-1.4.2 → foxapi-1.6.0}/foxapi/Images/MapsHex/MapOriginHex.png +0 -0
  170. {foxapi-1.4.2 → foxapi-1.6.0}/foxapi/Images/MapsHex/MapReachingTrailHex.png +0 -0
  171. {foxapi-1.4.2 → foxapi-1.6.0}/foxapi/Images/MapsHex/MapReaversPassHex.png +0 -0
  172. {foxapi-1.4.2 → foxapi-1.6.0}/foxapi/Images/MapsHex/MapRedRiverHex.png +0 -0
  173. {foxapi-1.4.2 → foxapi-1.6.0}/foxapi/Images/MapsHex/MapSableportHex.png +0 -0
  174. {foxapi-1.4.2 → foxapi-1.6.0}/foxapi/Images/MapsHex/MapShackledChasmHex.png +0 -0
  175. {foxapi-1.4.2 → foxapi-1.6.0}/foxapi/Images/MapsHex/MapSpeakingWoodsHex.png +0 -0
  176. {foxapi-1.4.2 → foxapi-1.6.0}/foxapi/Images/MapsHex/MapStemaLandingHex.png +0 -0
  177. {foxapi-1.4.2 → foxapi-1.6.0}/foxapi/Images/MapsHex/MapStlicanShelfHex.png +0 -0
  178. {foxapi-1.4.2 → foxapi-1.6.0}/foxapi/Images/MapsHex/MapStonecradleHex.png +0 -0
  179. {foxapi-1.4.2 → foxapi-1.6.0}/foxapi/Images/MapsHex/MapTempestIslandHex.png +0 -0
  180. {foxapi-1.4.2 → foxapi-1.6.0}/foxapi/Images/MapsHex/MapTerminusHex.png +0 -0
  181. {foxapi-1.4.2 → foxapi-1.6.0}/foxapi/Images/MapsHex/MapTheFingersHex.png +0 -0
  182. {foxapi-1.4.2 → foxapi-1.6.0}/foxapi/Images/MapsHex/MapUmbralWildwoodHex.png +0 -0
  183. {foxapi-1.4.2 → foxapi-1.6.0}/foxapi/Images/MapsHex/MapViperPitHex.png +0 -0
  184. {foxapi-1.4.2 → foxapi-1.6.0}/foxapi/Images/MapsHex/MapWeatheredExpanseHex.png +0 -0
  185. {foxapi-1.4.2 → foxapi-1.6.0}/foxapi/Images/MapsHex/MapWestgateHex.png +0 -0
  186. {foxapi-1.4.2 → foxapi-1.6.0}/foxapi/__init__.py +0 -0
  187. {foxapi-1.4.2 → foxapi-1.6.0}/foxapi.egg-info/dependency_links.txt +0 -0
  188. {foxapi-1.4.2 → foxapi-1.6.0}/foxapi.egg-info/requires.txt +0 -0
  189. {foxapi-1.4.2 → foxapi-1.6.0}/foxapi.egg-info/top_level.txt +0 -0
  190. {foxapi-1.4.2 → foxapi-1.6.0}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
- Metadata-Version: 2.2
1
+ Metadata-Version: 2.4
2
2
  Name: foxapi
3
- Version: 1.4.2
3
+ Version: 1.6.0
4
4
  Summary: A wrapper for the foxhole API
5
5
  Home-page: https://github.com/ThePhoenix78/FoxAPI
6
6
  Download-URL: https://github.com/ThePhoenix78/FoxAPI/tarball/master
@@ -25,6 +25,7 @@ Dynamic: download-url
25
25
  Dynamic: home-page
26
26
  Dynamic: keywords
27
27
  Dynamic: license
28
+ Dynamic: license-file
28
29
  Dynamic: requires-dist
29
30
  Dynamic: summary
30
31
 
@@ -44,16 +45,22 @@ Also, if you work with discord.py or any asynchronous API, this tool might be us
44
45
 
45
46
 
46
47
  ## Table of Contents
47
- - [Dependencies](#dependencies)
48
- - [Wrapper](#wrapper)
49
- - [Methods](#methods)
50
- - [Map and War Data](#map-and-war-data)
51
- - [Hexagon Operations](#hexagon-operations)
52
- - [Listener Functions](#listener-functions)
53
- - [Queue Tasks](#queue-tasks)
54
- - [Error Handling](#error-handling)
55
- - [Objects](#objects)
56
- - [Example Usage](#example-usage)
48
+ - [FoxAPI Documentation](#foxapi-documentation)
49
+ - [Installation](#installation)
50
+ - [Table of Contents](#table-of-contents)
51
+ - [Dependencies](#dependencies)
52
+ - [Wrapper](#wrapper)
53
+ - [Methods](#methods)
54
+ - [API Interaction (async)](#api-interaction-async)
55
+ - [Note : all of theses methods are async, to run the synchronous version, add \_sync at the end (see API example)](#note--all-of-theses-methods-are-async-to-run-the-synchronous-version-add-_sync-at-the-end-see-api-example)
56
+ - [Map and War Data](#map-and-war-data)
57
+ - [Hexagon Operations](#hexagon-operations)
58
+ - [Listener Functions](#listener-functions)
59
+ - [Queue Tasks](#queue-tasks)
60
+ - [Error Handling](#error-handling)
61
+ - [Objects](#objects)
62
+ - [Example Usage](#example-usage)
63
+ - [I am not responsible for what you are doing with it](#i-am-not-responsible-for-what-you-are-doing-with-it)
57
64
 
58
65
  ## Dependencies
59
66
 
@@ -140,10 +147,11 @@ load_hexagon_map(hexagon: str) -> pillow.Image
140
147
  - Loads the PNG map for the specified hexagon.
141
148
 
142
149
  ```py
143
- make_map_png(hexagon: str, dynamic: dict = None, static: dict = None) -> pillow.Image
150
+ make_map_png(hexagon: str, show_icons: bool = True, colored: bool = False, dynamic: dict = None, static: dict = None) -> pillow.Image
144
151
  ```
145
152
  - Generates a PNG image of the hexagon map with all the icons associated to each faction in their respective colors (included fields and town base). Only public data will be present.
146
-
153
+ - colored -> display each region in the team's color
154
+ - show_icons -> display every building in their team's color
147
155
 
148
156
  ```py
149
157
  calculate_death_rate(hexagon: str = None, war_report: dict = None): -> dict
@@ -226,14 +234,13 @@ class APIResponse:
226
234
 
227
235
 
228
236
  class HexagonObject:
229
- def __init__(self, hexagon: str, war_report: dict, static: dict, dynamic: dict, captured_towns: dict, casualty_rate: dict, image: pillow.Image):
237
+ def __init__(self, hexagon: str, war_report: dict, static: dict, dynamic: dict, captured_towns: dict, casualty_rate: dict):
230
238
  self.hexagon: str = hexagon
231
239
  self.war_report: dict = war_report
232
240
  self.static: dict = static
233
241
  self.dynamic: dict = dynamic
234
242
  self.captured_towns: dict = captured_towns
235
243
  self.casualty_rate: dict = casualty_rate
236
- self.image: pillow.Image = image
237
244
  ```
238
245
 
239
246
 
@@ -297,7 +304,6 @@ async def function(hexagon: str = "DeadLandsHex"):
297
304
  @fox.on_hexagon_update("all")
298
305
  def on_update(hexa: HexagonObject):
299
306
  print(f"Hexagon {hexa.hexagon} has been updated")
300
- hexa.image.save(f"{hexa.hexagon}.png")
301
307
 
302
308
 
303
309
  # The following async code works as well
@@ -305,7 +311,6 @@ def on_update(hexa: HexagonObject):
305
311
  @fox.on_hexagon_update("all")
306
312
  async def on_update(hexa: HexagonObject):
307
313
  print(f"Hexagon {hexa.hexagon} has been updated")
308
- hexa.image.save(f"{hexa.hexagon}.png")
309
314
 
310
315
  ```
311
316
 
@@ -14,16 +14,22 @@ Also, if you work with discord.py or any asynchronous API, this tool might be us
14
14
 
15
15
 
16
16
  ## Table of Contents
17
- - [Dependencies](#dependencies)
18
- - [Wrapper](#wrapper)
19
- - [Methods](#methods)
20
- - [Map and War Data](#map-and-war-data)
21
- - [Hexagon Operations](#hexagon-operations)
22
- - [Listener Functions](#listener-functions)
23
- - [Queue Tasks](#queue-tasks)
24
- - [Error Handling](#error-handling)
25
- - [Objects](#objects)
26
- - [Example Usage](#example-usage)
17
+ - [FoxAPI Documentation](#foxapi-documentation)
18
+ - [Installation](#installation)
19
+ - [Table of Contents](#table-of-contents)
20
+ - [Dependencies](#dependencies)
21
+ - [Wrapper](#wrapper)
22
+ - [Methods](#methods)
23
+ - [API Interaction (async)](#api-interaction-async)
24
+ - [Note : all of theses methods are async, to run the synchronous version, add \_sync at the end (see API example)](#note--all-of-theses-methods-are-async-to-run-the-synchronous-version-add-_sync-at-the-end-see-api-example)
25
+ - [Map and War Data](#map-and-war-data)
26
+ - [Hexagon Operations](#hexagon-operations)
27
+ - [Listener Functions](#listener-functions)
28
+ - [Queue Tasks](#queue-tasks)
29
+ - [Error Handling](#error-handling)
30
+ - [Objects](#objects)
31
+ - [Example Usage](#example-usage)
32
+ - [I am not responsible for what you are doing with it](#i-am-not-responsible-for-what-you-are-doing-with-it)
27
33
 
28
34
  ## Dependencies
29
35
 
@@ -110,10 +116,11 @@ load_hexagon_map(hexagon: str) -> pillow.Image
110
116
  - Loads the PNG map for the specified hexagon.
111
117
 
112
118
  ```py
113
- make_map_png(hexagon: str, dynamic: dict = None, static: dict = None) -> pillow.Image
119
+ make_map_png(hexagon: str, show_icons: bool = True, colored: bool = False, dynamic: dict = None, static: dict = None) -> pillow.Image
114
120
  ```
115
121
  - Generates a PNG image of the hexagon map with all the icons associated to each faction in their respective colors (included fields and town base). Only public data will be present.
116
-
122
+ - colored -> display each region in the team's color
123
+ - show_icons -> display every building in their team's color
117
124
 
118
125
  ```py
119
126
  calculate_death_rate(hexagon: str = None, war_report: dict = None): -> dict
@@ -196,14 +203,13 @@ class APIResponse:
196
203
 
197
204
 
198
205
  class HexagonObject:
199
- def __init__(self, hexagon: str, war_report: dict, static: dict, dynamic: dict, captured_towns: dict, casualty_rate: dict, image: pillow.Image):
206
+ def __init__(self, hexagon: str, war_report: dict, static: dict, dynamic: dict, captured_towns: dict, casualty_rate: dict):
200
207
  self.hexagon: str = hexagon
201
208
  self.war_report: dict = war_report
202
209
  self.static: dict = static
203
210
  self.dynamic: dict = dynamic
204
211
  self.captured_towns: dict = captured_towns
205
212
  self.casualty_rate: dict = casualty_rate
206
- self.image: pillow.Image = image
207
213
  ```
208
214
 
209
215
 
@@ -267,7 +273,6 @@ async def function(hexagon: str = "DeadLandsHex"):
267
273
  @fox.on_hexagon_update("all")
268
274
  def on_update(hexa: HexagonObject):
269
275
  print(f"Hexagon {hexa.hexagon} has been updated")
270
- hexa.image.save(f"{hexa.hexagon}.png")
271
276
 
272
277
 
273
278
  # The following async code works as well
@@ -275,7 +280,6 @@ def on_update(hexa: HexagonObject):
275
280
  @fox.on_hexagon_update("all")
276
281
  async def on_update(hexa: HexagonObject):
277
282
  print(f"Hexagon {hexa.hexagon} has been updated")
278
- hexa.image.save(f"{hexa.hexagon}.png")
279
283
 
280
284
  ```
281
285
 
@@ -3,8 +3,8 @@ try:
3
3
  except ImportError:
4
4
  from utils import HexagonObject, FoxAPIError, HexagonError, EndpointError, APIResponse, Task
5
5
 
6
- from pathlib import Path
7
6
  from PIL import Image
7
+ from pathlib import Path
8
8
  import threading
9
9
  import requests
10
10
  import aiohttp
@@ -69,6 +69,9 @@ class FoxAPI():
69
69
 
70
70
  self._icon_size: tuple = (24, 24)
71
71
 
72
+ self.img_height: int = 888
73
+ self.img_width: int = 1024
74
+
72
75
  def close_session(self):
73
76
  self.session.close()
74
77
 
@@ -129,6 +132,7 @@ class FoxAPI():
129
132
  async with session.get(f"{self.base_api}{endpoint}", headers=headers) as data:
130
133
  self.etag[endpoint]: str = data.headers.get("ETag", self.etag.get(endpoint))
131
134
  data_json = await data.json()
135
+
132
136
  if data.status == 200:
133
137
  self.cache[endpoint] = data_json
134
138
  return APIResponse(headers=data.headers, json=data_json, status_code=data.status, hexagon=hexagon, is_cache=False)
@@ -200,8 +204,20 @@ class FoxAPI():
200
204
 
201
205
  return endpoint
202
206
 
203
- def calc_distance(self, x1: float, y1: float, x2: float, y2: float):
204
- return math.sqrt((abs(x1 - x2) ** 2) + (abs(y1 - y2) ** 2))
207
+ def calc_distance(self, p1: tuple, p2: tuple):
208
+ return math.sqrt((abs(p1[0] - p2[0]) ** 2) + (abs(p1[1] - p2[1]) ** 2))
209
+
210
+ def bissectrice(self, p1: tuple, p2: tuple):
211
+ mx, my = (p1[0] + p2[0]) / 2, (p1[1] + p2[1]) / 2
212
+
213
+ dx, dy = p2[0] - p1[0], p2[1] - p1[1]
214
+
215
+ if dx != 0:
216
+ slope = -dy / dx
217
+ intercept = my - slope * mx
218
+ return slope, intercept
219
+ else:
220
+ return None, mx
205
221
 
206
222
  def load_hexagon_map(self, hexagon: str):
207
223
  if self._safe_mode:
@@ -211,6 +227,89 @@ class FoxAPI():
211
227
 
212
228
  return Image.open(img_path).convert("RGBA")
213
229
 
230
+ def color_icon(self, image: Image, team: str = None) -> Image:
231
+ f: int = 50
232
+ g: int = 165
233
+
234
+ if team == "COLONIALS":
235
+ color: tuple = (101-f, 135-f, 94-f)
236
+
237
+ elif team == "WARDENS":
238
+ color: tuple = (45-f, 108-f, 161-f)
239
+
240
+ else:
241
+ return
242
+
243
+ width, height = image.size
244
+
245
+ pix = image.load()
246
+
247
+ for x in range(width):
248
+ for y in range(height):
249
+ p = pix[x, y]
250
+
251
+ if p[-1] >= 10:
252
+ new_color: tuple = (p[0]-g + color[0], p[1]-g + color[1], p[2]-g + color[2])
253
+ image.putpixel((x, y), new_color)
254
+
255
+
256
+ def color_regions(self, image: Image, dynamic: dict, static: dict) -> Image:
257
+ captured_towns: dict = self.get_captured_towns_sync(dynamic=dynamic, static=static)
258
+ map_info = [data for data in static["mapTextItems"] if data["mapMarkerType"] == "Major"]
259
+
260
+ for i in range(len(map_info)):
261
+ map_info[i]["team"] = captured_towns[map_info[i]["text"]]
262
+
263
+ points = [(p["x"] * self.img_width, p["y"] * self.img_height, p["team"]) for p in map_info]
264
+
265
+ for y in range(self.img_height):
266
+ for x in range(self.img_width):
267
+ current_pixel = image.getpixel((x, y))
268
+
269
+ if current_pixel[3] <= 10:
270
+ continue
271
+
272
+ closest_point_index = None
273
+ min_distance = float('inf')
274
+
275
+ for i, point in enumerate(points):
276
+ distance = math.sqrt((x - point[0])**2 + (y - point[1])**2)
277
+
278
+ if distance < min_distance:
279
+ min_distance = distance
280
+ closest_point_index = i
281
+
282
+ if points[closest_point_index][2] == "COLONIALS":
283
+ color: tuple = (50, 66, 47)
284
+
285
+ elif points[closest_point_index][2] == "WARDENS":
286
+ color: tuple = (22, 54, 80)
287
+
288
+ else:
289
+ continue
290
+
291
+ new_color: tuple = (current_pixel[0]//2 + color[0], current_pixel[1]//2 + color[1], current_pixel[2]//2 + color[2])
292
+ image.putpixel((x, y), new_color)
293
+
294
+ def add_icons(self, image: Image, dynamic: dict):
295
+ icon_size: tuple = self._icon_size
296
+
297
+ for data in dynamic["mapItems"]:
298
+ icon: str = data['iconType']
299
+ team: str = data["teamId"].strip()
300
+
301
+ try:
302
+ img_path: str = os.path.join(self._img_dir, "MapIcons", f"{icon}.png")
303
+ img2 = Image.open(img_path).convert("RGBA").resize(icon_size)
304
+ self.color_icon(img2, team=team)
305
+
306
+ except Exception:
307
+ print(icon)
308
+ img_path: str = os.path.join(self._img_dir, "MapIcons", f"DebugIcon.png")
309
+ img2 = Image.open(img_path).convert("RGBA").resize(icon_size)
310
+
311
+ image.paste(img2, (int(data["x"] * self.img_width), int(data["y"] * self.img_height)), mask=img2)
312
+
214
313
  """
215
314
  ASYNC METHODS
216
315
  """
@@ -267,37 +366,26 @@ class FoxAPI():
267
366
  for d in dynamic['mapItems']:
268
367
  if d['iconType'] in icons:
269
368
  faction.append(d['teamId'])
270
- deltas.append(self.calc_distance(s['x'], s['y'], d['x'], d['y']))
369
+ deltas.append(self.calc_distance((s['x'], s['y']), (d['x'], d['y'])))
271
370
 
272
371
  captured_towns[s['text']]: str = faction[deltas.index(min(deltas))]
273
372
 
274
373
  return captured_towns
275
374
 
276
- async def make_map_png(self, hexagon: str, dynamic: dict = None, static: dict = None):
277
- if dynamic is None:
278
- dynamic: dict = await self.get_dynamic(hexagon)
279
-
280
- if dynamic is None:
281
- raise FoxAPIError("Please pass the required parameters (hexagon or dynamic (static is optional))")
375
+ async def make_map_png(self, hexagon: str, show_icons: bool = True, colored: bool = False, dynamic: dict = None, static: dict = None):
376
+ if dynamic is None and (show_icons or colored):
377
+ dynamic: dict = await self.get_dynamic(hexagon=hexagon)
378
+
379
+ if static is None and colored:
380
+ static: dict = await self.get_static(hexagon=hexagon, use_cache=True)
282
381
 
283
- img1 = self.load_hexagon_map(hexagon)
284
- icon_size: tuple = self._icon_size
382
+ img1: Image = self.load_hexagon_map(hexagon)
285
383
 
286
- for data in dynamic["mapItems"]:
287
- image: str = data['iconType']
288
- team: str = data["teamId"].strip()
289
-
290
- try:
291
- img_path: str = os.path.join(self._img_dir, "MapIcons", f"{image}{team}.png")
292
- img2 = Image.open(img_path).convert("RGBA").resize(icon_size)
293
- except Exception:
294
- try:
295
- img_path: str = os.path.join(self._img_dir, "MapIcons", f"{image}.png")
296
- img2 = Image.open(img_path).convert("RGBA").resize(icon_size)
297
- except Exception:
298
- continue
384
+ if colored:
385
+ self.color_regions(image=img1, dynamic=dynamic, static=static)
299
386
 
300
- img1.paste(img2, (int(data["x"] * 1024), int(data["y"] * 888)), mask=img2)
387
+ if show_icons:
388
+ self.add_icons(image=img1, dynamic=dynamic)
301
389
 
302
390
  return img1
303
391
 
@@ -331,9 +419,8 @@ class FoxAPI():
331
419
 
332
420
  captured_towns: dict = await self.get_captured_towns(dynamic=dynamic, static=static)
333
421
  casualty_rate: dict = await self.calculate_death_rate(hexagon=hexagon, war_report=war_report)
334
- image = await self.make_map_png(hexagon=hexagon, dynamic=dynamic, static=static)
335
-
336
- return HexagonObject(hexagon=hexagon, war_report=war_report, static=static, dynamic=dynamic, captured_towns=captured_towns, casualty_rate=casualty_rate, image=image)
422
+
423
+ return HexagonObject(hexagon=hexagon, war_report=war_report, static=static, dynamic=dynamic, captured_towns=captured_towns, casualty_rate=casualty_rate)
337
424
 
338
425
  """
339
426
  SYNC METHODS
@@ -386,37 +473,26 @@ class FoxAPI():
386
473
  for d in dynamic['mapItems']:
387
474
  if d['iconType'] in icons:
388
475
  faction.append(d['teamId'])
389
- deltas.append(self.calc_distance(s['x'], s['y'], d['x'], d['y']))
476
+ deltas.append(self.calc_distance((s['x'], s['y']), (d['x'], d['y'])))
390
477
 
391
478
  captured_towns[s['text']]: str = faction[deltas.index(min(deltas))]
392
479
 
393
480
  return captured_towns
394
481
 
395
- def make_map_png_sync(self, hexagon: str, dynamic: dict = None, static: dict = None):
396
- if dynamic is None:
397
- dynamic: dict = self.get_dynamic_sync(hexagon)
398
-
399
- if dynamic is None:
400
- raise FoxAPIError("Please pass the required parameters (hexagon or dynamic (static is optional))")
482
+ def make_map_png_sync(self, hexagon: str, show_icons: bool = True, colored: bool = False, dynamic: dict = None, static: dict = None):
483
+ if dynamic is None and (show_icons or colored):
484
+ dynamic: dict = self.get_dynamic_sync(hexagon=hexagon)
485
+
486
+ if static is None and colored:
487
+ static: dict = self.get_static_sync(hexagon=hexagon, use_cache=True)
401
488
 
402
- img1 = self.load_hexagon_map(hexagon)
403
- icon_size: tuple = self._icon_size
404
-
405
- for data in dynamic["mapItems"]:
406
- image: str = data['iconType']
407
- team: str = data["teamId"].strip()
408
-
409
- try:
410
- img_path: str = os.path.join(self._img_dir, "MapIcons", f"{image}{team}.png")
411
- img2 = Image.open(img_path).convert("RGBA").resize(icon_size)
412
- except Exception:
413
- try:
414
- img_path: str = os.path.join(self._img_dir, "MapIcons", f"{image}.png")
415
- img2 = Image.open(img_path).convert("RGBA").resize(icon_size)
416
- except Exception:
417
- continue
489
+ img1: Image = self.load_hexagon_map(hexagon)
490
+
491
+ if colored:
492
+ self.color_regions(image=img1, dynamic=dynamic, static=static)
418
493
 
419
- img1.paste(img2, (int(data["x"] * 1024), int(data["y"] * 888)), mask=img2)
494
+ if show_icons:
495
+ self.add_icons(image=img1, dynamic=dynamic)
420
496
 
421
497
  return img1
422
498
 
@@ -453,9 +529,8 @@ class FoxAPI():
453
529
 
454
530
  captured_towns: dict = self.get_captured_towns_sync(dynamic=dynamic, static=static)
455
531
  casualty_rate: dict = self.calculate_death_rate_sync(hexagon=hexagon, war_report=war_report)
456
- image = self.make_map_png_sync(hexagon=hexagon, dynamic=dynamic, static=static)
457
532
 
458
- return HexagonObject(hexagon=hexagon, war_report=war_report, static=static, dynamic=dynamic, captured_towns=captured_towns, casualty_rate=casualty_rate, image=image)
533
+ return HexagonObject(hexagon=hexagon, war_report=war_report, static=static, dynamic=dynamic, captured_towns=captured_towns, casualty_rate=casualty_rate)
459
534
 
460
535
  """
461
536
  CRAWLER ASYNC
@@ -53,7 +53,9 @@ _images_relations: dict = {
53
53
  "70": "RocketTarget",
54
54
  "71": "RocketGroundZero",
55
55
  "72": "RocketSiteWithRocket",
56
- "75": "FacilityMineOilRig"
56
+ "75": "FacilityMineOilRig",
57
+ "83": "WeatherStation",
58
+ "84": "MortarHouse"
57
59
  }
58
60
 
59
61
  class EndpointError(Exception):
@@ -85,14 +87,13 @@ class APIResponse:
85
87
 
86
88
 
87
89
  class HexagonObject:
88
- def __init__(self, hexagon: str, war_report: dict, static: dict, dynamic: dict, captured_towns: dict, casualty_rate: dict, image):
90
+ def __init__(self, hexagon: str, war_report: dict, static: dict, dynamic: dict, captured_towns: dict, casualty_rate: dict):
89
91
  self.hexagon: str = hexagon
90
92
  self.war_report: dict = war_report
91
93
  self.static: dict = static
92
94
  self.dynamic: dict = dynamic
93
95
  self.captured_towns: dict = captured_towns
94
96
  self.casualty_rate: dict = casualty_rate
95
- self.image = image
96
97
 
97
98
 
98
99
  class FoxObject:
@@ -1,6 +1,6 @@
1
- Metadata-Version: 2.2
1
+ Metadata-Version: 2.4
2
2
  Name: foxapi
3
- Version: 1.4.2
3
+ Version: 1.6.0
4
4
  Summary: A wrapper for the foxhole API
5
5
  Home-page: https://github.com/ThePhoenix78/FoxAPI
6
6
  Download-URL: https://github.com/ThePhoenix78/FoxAPI/tarball/master
@@ -25,6 +25,7 @@ Dynamic: download-url
25
25
  Dynamic: home-page
26
26
  Dynamic: keywords
27
27
  Dynamic: license
28
+ Dynamic: license-file
28
29
  Dynamic: requires-dist
29
30
  Dynamic: summary
30
31
 
@@ -44,16 +45,22 @@ Also, if you work with discord.py or any asynchronous API, this tool might be us
44
45
 
45
46
 
46
47
  ## Table of Contents
47
- - [Dependencies](#dependencies)
48
- - [Wrapper](#wrapper)
49
- - [Methods](#methods)
50
- - [Map and War Data](#map-and-war-data)
51
- - [Hexagon Operations](#hexagon-operations)
52
- - [Listener Functions](#listener-functions)
53
- - [Queue Tasks](#queue-tasks)
54
- - [Error Handling](#error-handling)
55
- - [Objects](#objects)
56
- - [Example Usage](#example-usage)
48
+ - [FoxAPI Documentation](#foxapi-documentation)
49
+ - [Installation](#installation)
50
+ - [Table of Contents](#table-of-contents)
51
+ - [Dependencies](#dependencies)
52
+ - [Wrapper](#wrapper)
53
+ - [Methods](#methods)
54
+ - [API Interaction (async)](#api-interaction-async)
55
+ - [Note : all of theses methods are async, to run the synchronous version, add \_sync at the end (see API example)](#note--all-of-theses-methods-are-async-to-run-the-synchronous-version-add-_sync-at-the-end-see-api-example)
56
+ - [Map and War Data](#map-and-war-data)
57
+ - [Hexagon Operations](#hexagon-operations)
58
+ - [Listener Functions](#listener-functions)
59
+ - [Queue Tasks](#queue-tasks)
60
+ - [Error Handling](#error-handling)
61
+ - [Objects](#objects)
62
+ - [Example Usage](#example-usage)
63
+ - [I am not responsible for what you are doing with it](#i-am-not-responsible-for-what-you-are-doing-with-it)
57
64
 
58
65
  ## Dependencies
59
66
 
@@ -140,10 +147,11 @@ load_hexagon_map(hexagon: str) -> pillow.Image
140
147
  - Loads the PNG map for the specified hexagon.
141
148
 
142
149
  ```py
143
- make_map_png(hexagon: str, dynamic: dict = None, static: dict = None) -> pillow.Image
150
+ make_map_png(hexagon: str, show_icons: bool = True, colored: bool = False, dynamic: dict = None, static: dict = None) -> pillow.Image
144
151
  ```
145
152
  - Generates a PNG image of the hexagon map with all the icons associated to each faction in their respective colors (included fields and town base). Only public data will be present.
146
-
153
+ - colored -> display each region in the team's color
154
+ - show_icons -> display every building in their team's color
147
155
 
148
156
  ```py
149
157
  calculate_death_rate(hexagon: str = None, war_report: dict = None): -> dict
@@ -226,14 +234,13 @@ class APIResponse:
226
234
 
227
235
 
228
236
  class HexagonObject:
229
- def __init__(self, hexagon: str, war_report: dict, static: dict, dynamic: dict, captured_towns: dict, casualty_rate: dict, image: pillow.Image):
237
+ def __init__(self, hexagon: str, war_report: dict, static: dict, dynamic: dict, captured_towns: dict, casualty_rate: dict):
230
238
  self.hexagon: str = hexagon
231
239
  self.war_report: dict = war_report
232
240
  self.static: dict = static
233
241
  self.dynamic: dict = dynamic
234
242
  self.captured_towns: dict = captured_towns
235
243
  self.casualty_rate: dict = casualty_rate
236
- self.image: pillow.Image = image
237
244
  ```
238
245
 
239
246
 
@@ -297,7 +304,6 @@ async def function(hexagon: str = "DeadLandsHex"):
297
304
  @fox.on_hexagon_update("all")
298
305
  def on_update(hexa: HexagonObject):
299
306
  print(f"Hexagon {hexa.hexagon} has been updated")
300
- hexa.image.save(f"{hexa.hexagon}.png")
301
307
 
302
308
 
303
309
  # The following async code works as well
@@ -305,7 +311,6 @@ def on_update(hexa: HexagonObject):
305
311
  @fox.on_hexagon_update("all")
306
312
  async def on_update(hexa: HexagonObject):
307
313
  print(f"Hexagon {hexa.hexagon} has been updated")
308
- hexa.image.save(f"{hexa.hexagon}.png")
309
314
 
310
315
  ```
311
316