rustplus 6.0.7__tar.gz → 6.0.9__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 (115) hide show
  1. {rustplus-6.0.7 → rustplus-6.0.9}/LICENSE +1 -1
  2. {rustplus-6.0.7/rustplus.egg-info → rustplus-6.0.9}/PKG-INFO +1 -7
  3. {rustplus-6.0.7 → rustplus-6.0.9}/README.md +0 -6
  4. {rustplus-6.0.7 → rustplus-6.0.9}/rustplus/__init__.py +1 -1
  5. rustplus-6.0.9/rustplus/icons/jungle_ziggurat.png +0 -0
  6. {rustplus-6.0.7 → rustplus-6.0.9}/rustplus/rust_api.py +1 -1
  7. {rustplus-6.0.7 → rustplus-6.0.9}/rustplus/utils/utils.py +13 -12
  8. {rustplus-6.0.7 → rustplus-6.0.9/rustplus.egg-info}/PKG-INFO +1 -7
  9. {rustplus-6.0.7 → rustplus-6.0.9}/rustplus.egg-info/SOURCES.txt +1 -0
  10. {rustplus-6.0.7 → rustplus-6.0.9}/MANIFEST.in +0 -0
  11. {rustplus-6.0.7 → rustplus-6.0.9}/requirements.txt +0 -0
  12. {rustplus-6.0.7 → rustplus-6.0.9}/rustplus/annotations/__init__.py +0 -0
  13. {rustplus-6.0.7 → rustplus-6.0.9}/rustplus/annotations/chat_event.py +0 -0
  14. {rustplus-6.0.7 → rustplus-6.0.9}/rustplus/annotations/command.py +0 -0
  15. {rustplus-6.0.7 → rustplus-6.0.9}/rustplus/annotations/entity_event.py +0 -0
  16. {rustplus-6.0.7 → rustplus-6.0.9}/rustplus/annotations/protobuf_event.py +0 -0
  17. {rustplus-6.0.7 → rustplus-6.0.9}/rustplus/annotations/team_event.py +0 -0
  18. {rustplus-6.0.7 → rustplus-6.0.9}/rustplus/commands/__init__.py +0 -0
  19. {rustplus-6.0.7 → rustplus-6.0.9}/rustplus/commands/chat_command.py +0 -0
  20. {rustplus-6.0.7 → rustplus-6.0.9}/rustplus/commands/chat_command_data.py +0 -0
  21. {rustplus-6.0.7 → rustplus-6.0.9}/rustplus/commands/command_options.py +0 -0
  22. {rustplus-6.0.7 → rustplus-6.0.9}/rustplus/events/__init__.py +0 -0
  23. {rustplus-6.0.7 → rustplus-6.0.9}/rustplus/events/chat_event.py +0 -0
  24. {rustplus-6.0.7 → rustplus-6.0.9}/rustplus/events/entity_event.py +0 -0
  25. {rustplus-6.0.7 → rustplus-6.0.9}/rustplus/events/protobuf_event.py +0 -0
  26. {rustplus-6.0.7 → rustplus-6.0.9}/rustplus/events/team_event.py +0 -0
  27. {rustplus-6.0.7 → rustplus-6.0.9}/rustplus/exceptions/__init__.py +0 -0
  28. {rustplus-6.0.7 → rustplus-6.0.9}/rustplus/exceptions/exceptions.py +0 -0
  29. {rustplus-6.0.7 → rustplus-6.0.9}/rustplus/icons/__init__.py +0 -0
  30. {rustplus-6.0.7 → rustplus-6.0.9}/rustplus/icons/airfield.png +0 -0
  31. {rustplus-6.0.7 → rustplus-6.0.9}/rustplus/icons/arctic_base.png +0 -0
  32. {rustplus-6.0.7 → rustplus-6.0.9}/rustplus/icons/bandit.png +0 -0
  33. {rustplus-6.0.7 → rustplus-6.0.9}/rustplus/icons/barn.png +0 -0
  34. {rustplus-6.0.7 → rustplus-6.0.9}/rustplus/icons/cargo.png +0 -0
  35. {rustplus-6.0.7 → rustplus-6.0.9}/rustplus/icons/chinook.png +0 -0
  36. {rustplus-6.0.7 → rustplus-6.0.9}/rustplus/icons/chinook_blades.png +0 -0
  37. {rustplus-6.0.7 → rustplus-6.0.9}/rustplus/icons/crate.png +0 -0
  38. {rustplus-6.0.7 → rustplus-6.0.9}/rustplus/icons/desert_base.png +0 -0
  39. {rustplus-6.0.7 → rustplus-6.0.9}/rustplus/icons/dome.png +0 -0
  40. {rustplus-6.0.7 → rustplus-6.0.9}/rustplus/icons/excavator.png +0 -0
  41. {rustplus-6.0.7 → rustplus-6.0.9}/rustplus/icons/explosion.png +0 -0
  42. {rustplus-6.0.7 → rustplus-6.0.9}/rustplus/icons/ferryterminal.png +0 -0
  43. {rustplus-6.0.7 → rustplus-6.0.9}/rustplus/icons/fishing.png +0 -0
  44. {rustplus-6.0.7 → rustplus-6.0.9}/rustplus/icons/harbour.png +0 -0
  45. {rustplus-6.0.7 → rustplus-6.0.9}/rustplus/icons/icon.png +0 -0
  46. {rustplus-6.0.7 → rustplus-6.0.9}/rustplus/icons/junkyard.png +0 -0
  47. {rustplus-6.0.7 → rustplus-6.0.9}/rustplus/icons/large_oil_rig.png +0 -0
  48. {rustplus-6.0.7 → rustplus-6.0.9}/rustplus/icons/launchsite.png +0 -0
  49. {rustplus-6.0.7 → rustplus-6.0.9}/rustplus/icons/lighthouse.png +0 -0
  50. {rustplus-6.0.7 → rustplus-6.0.9}/rustplus/icons/military_tunnels.png +0 -0
  51. {rustplus-6.0.7 → rustplus-6.0.9}/rustplus/icons/mining_outpost.png +0 -0
  52. {rustplus-6.0.7 → rustplus-6.0.9}/rustplus/icons/mining_quarry_hqm.png +0 -0
  53. {rustplus-6.0.7 → rustplus-6.0.9}/rustplus/icons/mining_quarry_stone.png +0 -0
  54. {rustplus-6.0.7 → rustplus-6.0.9}/rustplus/icons/mining_quarry_sulfur.png +0 -0
  55. {rustplus-6.0.7 → rustplus-6.0.9}/rustplus/icons/missile_silo.png +0 -0
  56. {rustplus-6.0.7 → rustplus-6.0.9}/rustplus/icons/outpost.png +0 -0
  57. {rustplus-6.0.7 → rustplus-6.0.9}/rustplus/icons/oxums.png +0 -0
  58. {rustplus-6.0.7 → rustplus-6.0.9}/rustplus/icons/patrol.png +0 -0
  59. {rustplus-6.0.7 → rustplus-6.0.9}/rustplus/icons/power_plant.png +0 -0
  60. {rustplus-6.0.7 → rustplus-6.0.9}/rustplus/icons/radtown.png +0 -0
  61. {rustplus-6.0.7 → rustplus-6.0.9}/rustplus/icons/satellite.png +0 -0
  62. {rustplus-6.0.7 → rustplus-6.0.9}/rustplus/icons/sewer.png +0 -0
  63. {rustplus-6.0.7 → rustplus-6.0.9}/rustplus/icons/small_oil_rig.png +0 -0
  64. {rustplus-6.0.7 → rustplus-6.0.9}/rustplus/icons/stables.png +0 -0
  65. {rustplus-6.0.7 → rustplus-6.0.9}/rustplus/icons/supermarket.png +0 -0
  66. {rustplus-6.0.7 → rustplus-6.0.9}/rustplus/icons/swamp.png +0 -0
  67. {rustplus-6.0.7 → rustplus-6.0.9}/rustplus/icons/train.png +0 -0
  68. {rustplus-6.0.7 → rustplus-6.0.9}/rustplus/icons/train_yard.png +0 -0
  69. {rustplus-6.0.7 → rustplus-6.0.9}/rustplus/icons/underwater_lab.png +0 -0
  70. {rustplus-6.0.7 → rustplus-6.0.9}/rustplus/icons/vending_machine.png +0 -0
  71. {rustplus-6.0.7 → rustplus-6.0.9}/rustplus/icons/water_treatment.png +0 -0
  72. {rustplus-6.0.7 → rustplus-6.0.9}/rustplus/identification/__init__.py +0 -0
  73. {rustplus-6.0.7 → rustplus-6.0.9}/rustplus/identification/handler_list.py +0 -0
  74. {rustplus-6.0.7 → rustplus-6.0.9}/rustplus/identification/registered_listener.py +0 -0
  75. {rustplus-6.0.7 → rustplus-6.0.9}/rustplus/identification/server_details.py +0 -0
  76. {rustplus-6.0.7 → rustplus-6.0.9}/rustplus/remote/__init__.py +0 -0
  77. {rustplus-6.0.7 → rustplus-6.0.9}/rustplus/remote/camera/__init__.py +0 -0
  78. {rustplus-6.0.7 → rustplus-6.0.9}/rustplus/remote/camera/camera_constants.py +0 -0
  79. {rustplus-6.0.7 → rustplus-6.0.9}/rustplus/remote/camera/camera_manager.py +0 -0
  80. {rustplus-6.0.7 → rustplus-6.0.9}/rustplus/remote/camera/camera_parser.py +0 -0
  81. {rustplus-6.0.7 → rustplus-6.0.9}/rustplus/remote/camera/structures.py +0 -0
  82. {rustplus-6.0.7 → rustplus-6.0.9}/rustplus/remote/fcm/__init__.py +0 -0
  83. {rustplus-6.0.7 → rustplus-6.0.9}/rustplus/remote/fcm/fcm_listener.py +0 -0
  84. {rustplus-6.0.7 → rustplus-6.0.9}/rustplus/remote/proxy/__init__.py +0 -0
  85. {rustplus-6.0.7 → rustplus-6.0.9}/rustplus/remote/proxy/proxy_value_grabber.py +0 -0
  86. {rustplus-6.0.7 → rustplus-6.0.9}/rustplus/remote/ratelimiter/__init__.py +0 -0
  87. {rustplus-6.0.7 → rustplus-6.0.9}/rustplus/remote/rustplus_proto/__init__.py +0 -0
  88. {rustplus-6.0.7 → rustplus-6.0.9}/rustplus/remote/rustplus_proto/rustplus.py +0 -0
  89. {rustplus-6.0.7 → rustplus-6.0.9}/rustplus/remote/websocket/__init__.py +0 -0
  90. {rustplus-6.0.7 → rustplus-6.0.9}/rustplus/remote/websocket/ws.py +0 -0
  91. {rustplus-6.0.7 → rustplus-6.0.9}/rustplus/structs/__init__.py +0 -0
  92. {rustplus-6.0.7 → rustplus-6.0.9}/rustplus/structs/rust_chat_message.py +0 -0
  93. {rustplus-6.0.7 → rustplus-6.0.9}/rustplus/structs/rust_contents.py +0 -0
  94. {rustplus-6.0.7 → rustplus-6.0.9}/rustplus/structs/rust_entity_info.py +0 -0
  95. {rustplus-6.0.7 → rustplus-6.0.9}/rustplus/structs/rust_error.py +0 -0
  96. {rustplus-6.0.7 → rustplus-6.0.9}/rustplus/structs/rust_info.py +0 -0
  97. {rustplus-6.0.7 → rustplus-6.0.9}/rustplus/structs/rust_item.py +0 -0
  98. {rustplus-6.0.7 → rustplus-6.0.9}/rustplus/structs/rust_map.py +0 -0
  99. {rustplus-6.0.7 → rustplus-6.0.9}/rustplus/structs/rust_marker.py +0 -0
  100. {rustplus-6.0.7 → rustplus-6.0.9}/rustplus/structs/rust_team_info.py +0 -0
  101. {rustplus-6.0.7 → rustplus-6.0.9}/rustplus/structs/rust_time.py +0 -0
  102. {rustplus-6.0.7 → rustplus-6.0.9}/rustplus/structs/serialization.py +0 -0
  103. {rustplus-6.0.7 → rustplus-6.0.9}/rustplus/structs/util.py +0 -0
  104. {rustplus-6.0.7 → rustplus-6.0.9}/rustplus/utils/__init__.py +0 -0
  105. {rustplus-6.0.7 → rustplus-6.0.9}/rustplus/utils/deprecated.py +0 -0
  106. {rustplus-6.0.7 → rustplus-6.0.9}/rustplus/utils/emojis.py +0 -0
  107. {rustplus-6.0.7 → rustplus-6.0.9}/rustplus/utils/fonts/PermanentMarker.ttf +0 -0
  108. {rustplus-6.0.7 → rustplus-6.0.9}/rustplus/utils/fonts/__init__.py +0 -0
  109. {rustplus-6.0.7 → rustplus-6.0.9}/rustplus/utils/grab_items.py +0 -0
  110. {rustplus-6.0.7 → rustplus-6.0.9}/rustplus/utils/yielding_event.py +0 -0
  111. {rustplus-6.0.7 → rustplus-6.0.9}/rustplus.egg-info/dependency_links.txt +0 -0
  112. {rustplus-6.0.7 → rustplus-6.0.9}/rustplus.egg-info/requires.txt +0 -0
  113. {rustplus-6.0.7 → rustplus-6.0.9}/rustplus.egg-info/top_level.txt +0 -0
  114. {rustplus-6.0.7 → rustplus-6.0.9}/setup.cfg +0 -0
  115. {rustplus-6.0.7 → rustplus-6.0.9}/setup.py +0 -0
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) 2021-2023 Olijeffers0n
3
+ Copyright (c) 2021-2025 Olijeffers0n
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: rustplus
3
- Version: 6.0.7
3
+ Version: 6.0.9
4
4
  Summary: A python wrapper for the Rust Plus API
5
5
  Home-page: https://github.com/olijeffers0n/rustplus
6
6
  Author: olijeffers0n
@@ -78,9 +78,3 @@ You can also join me on my discord server:
78
78
  GitHub ⭐'s are always welcome :)
79
79
 
80
80
  Have Fun!
81
-
82
- ## Special Thanks:
83
- Thanks to [JetBrains](https://www.jetbrains.com/?from=rustplus) for providing me with a free Open Source License for
84
- PyCharm Professional, which is what I use to develop this project.
85
-
86
- <a href="https://jb.gg/OpenSourceSupport"><img src="https://resources.jetbrains.com/storage/products/company/brand/logos/jb_beam.svg" width="150"></a>
@@ -47,9 +47,3 @@ You can also join me on my discord server:
47
47
  GitHub ⭐'s are always welcome :)
48
48
 
49
49
  Have Fun!
50
-
51
- ## Special Thanks:
52
- Thanks to [JetBrains](https://www.jetbrains.com/?from=rustplus) for providing me with a free Open Source License for
53
- PyCharm Professional, which is what I use to develop this project.
54
-
55
- <a href="https://jb.gg/OpenSourceSupport"><img src="https://resources.jetbrains.com/storage/products/company/brand/logos/jb_beam.svg" width="150"></a>
@@ -14,5 +14,5 @@ from .structs import RustError, RustMarker, Vector
14
14
 
15
15
  __name__ = "rustplus"
16
16
  __author__ = "olijeffers0n"
17
- __version__ = "6.0.7"
17
+ __version__ = "6.0.9"
18
18
  __support__ = "Discord: https://discord.gg/nQqJe8qvP8"
@@ -333,7 +333,7 @@ class RustSocket:
333
333
  for marker in map_markers:
334
334
  if add_events:
335
335
  if marker.type in [2, 4, 5, 6, 8]:
336
- icon = convert_marker(str(marker.type), marker.rotation)
336
+ icon = convert_marker(int(marker.type), marker.rotation)
337
337
  if marker.type == 6:
338
338
  x, y = marker.x, marker.y
339
339
  y = min(max(y, 0), map_size)
@@ -144,31 +144,31 @@ async def avatar_processing(
144
144
  return border_image
145
145
 
146
146
 
147
- def convert_marker(name, angle) -> Image.Image:
147
+ def convert_marker(marker_type: int, angle) -> Image.Image:
148
148
  name_to_file = {
149
- "2": "explosion.png",
150
- "4": "chinook.png",
151
- "5": "cargo.png",
152
- "6": "crate.png",
153
- "8": "patrol.png",
149
+ 2: "explosion.png",
150
+ 4: "chinook.png",
151
+ 5: "cargo.png",
152
+ 6: "crate.png",
153
+ 8: "patrol.png",
154
154
  }
155
155
 
156
- with resources.path(ICONS_PATH, name_to_file[name]) as path:
156
+ with resources.path(ICONS_PATH, name_to_file[marker_type]) as path:
157
157
  icon = Image.open(path).convert("RGBA")
158
158
 
159
- if name == "6":
159
+ if marker_type == 6:
160
160
  icon = icon.resize((85, 85))
161
- elif name == "2":
161
+ elif marker_type == 2:
162
162
  icon = icon.resize((96, 96))
163
- elif name in ["4", "8"]:
163
+ elif marker_type == 4 or marker_type == 8:
164
164
  blades_file = "chinook_blades.png"
165
- blades_size = (100, 100) if name == "4" else (200, 200)
165
+ blades_size = (100, 100) if marker_type == 4 else (200, 200)
166
166
 
167
167
  with resources.path(ICONS_PATH, blades_file) as path:
168
168
  blades = Image.open(path).convert("RGBA")
169
169
  blades = blades.resize(blades_size)
170
170
 
171
- if name == "4":
171
+ if marker_type == 4:
172
172
  icon.paste(blades, (64 - 50, 96 - 50), blades)
173
173
  icon.paste(blades, (64 - 50, 32 - 50), blades)
174
174
  else:
@@ -192,6 +192,7 @@ def convert_monument(name: str, override_images: Dict[str, Image.Image]) -> Imag
192
192
  "train_yard_display_name": "train_yard.png",
193
193
  "outpost": "outpost.png",
194
194
  "bandit_camp": "bandit.png",
195
+ "jungle_ziggurat": "jungle_ziggurat.png",
195
196
  "junkyard_display_name": "junkyard.png",
196
197
  "dome_monument_name": "dome.png",
197
198
  "satellite_dish_display_name": "satellite.png",
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: rustplus
3
- Version: 6.0.7
3
+ Version: 6.0.9
4
4
  Summary: A python wrapper for the Rust Plus API
5
5
  Home-page: https://github.com/olijeffers0n/rustplus
6
6
  Author: olijeffers0n
@@ -78,9 +78,3 @@ You can also join me on my discord server:
78
78
  GitHub ⭐'s are always welcome :)
79
79
 
80
80
  Have Fun!
81
-
82
- ## Special Thanks:
83
- Thanks to [JetBrains](https://www.jetbrains.com/?from=rustplus) for providing me with a free Open Source License for
84
- PyCharm Professional, which is what I use to develop this project.
85
-
86
- <a href="https://jb.gg/OpenSourceSupport"><img src="https://resources.jetbrains.com/storage/products/company/brand/logos/jb_beam.svg" width="150"></a>
@@ -45,6 +45,7 @@ rustplus/icons/ferryterminal.png
45
45
  rustplus/icons/fishing.png
46
46
  rustplus/icons/harbour.png
47
47
  rustplus/icons/icon.png
48
+ rustplus/icons/jungle_ziggurat.png
48
49
  rustplus/icons/junkyard.png
49
50
  rustplus/icons/large_oil_rig.png
50
51
  rustplus/icons/launchsite.png
File without changes
File without changes
File without changes
File without changes