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.
- {rustplus-6.0.7 → rustplus-6.0.9}/LICENSE +1 -1
- {rustplus-6.0.7/rustplus.egg-info → rustplus-6.0.9}/PKG-INFO +1 -7
- {rustplus-6.0.7 → rustplus-6.0.9}/README.md +0 -6
- {rustplus-6.0.7 → rustplus-6.0.9}/rustplus/__init__.py +1 -1
- rustplus-6.0.9/rustplus/icons/jungle_ziggurat.png +0 -0
- {rustplus-6.0.7 → rustplus-6.0.9}/rustplus/rust_api.py +1 -1
- {rustplus-6.0.7 → rustplus-6.0.9}/rustplus/utils/utils.py +13 -12
- {rustplus-6.0.7 → rustplus-6.0.9/rustplus.egg-info}/PKG-INFO +1 -7
- {rustplus-6.0.7 → rustplus-6.0.9}/rustplus.egg-info/SOURCES.txt +1 -0
- {rustplus-6.0.7 → rustplus-6.0.9}/MANIFEST.in +0 -0
- {rustplus-6.0.7 → rustplus-6.0.9}/requirements.txt +0 -0
- {rustplus-6.0.7 → rustplus-6.0.9}/rustplus/annotations/__init__.py +0 -0
- {rustplus-6.0.7 → rustplus-6.0.9}/rustplus/annotations/chat_event.py +0 -0
- {rustplus-6.0.7 → rustplus-6.0.9}/rustplus/annotations/command.py +0 -0
- {rustplus-6.0.7 → rustplus-6.0.9}/rustplus/annotations/entity_event.py +0 -0
- {rustplus-6.0.7 → rustplus-6.0.9}/rustplus/annotations/protobuf_event.py +0 -0
- {rustplus-6.0.7 → rustplus-6.0.9}/rustplus/annotations/team_event.py +0 -0
- {rustplus-6.0.7 → rustplus-6.0.9}/rustplus/commands/__init__.py +0 -0
- {rustplus-6.0.7 → rustplus-6.0.9}/rustplus/commands/chat_command.py +0 -0
- {rustplus-6.0.7 → rustplus-6.0.9}/rustplus/commands/chat_command_data.py +0 -0
- {rustplus-6.0.7 → rustplus-6.0.9}/rustplus/commands/command_options.py +0 -0
- {rustplus-6.0.7 → rustplus-6.0.9}/rustplus/events/__init__.py +0 -0
- {rustplus-6.0.7 → rustplus-6.0.9}/rustplus/events/chat_event.py +0 -0
- {rustplus-6.0.7 → rustplus-6.0.9}/rustplus/events/entity_event.py +0 -0
- {rustplus-6.0.7 → rustplus-6.0.9}/rustplus/events/protobuf_event.py +0 -0
- {rustplus-6.0.7 → rustplus-6.0.9}/rustplus/events/team_event.py +0 -0
- {rustplus-6.0.7 → rustplus-6.0.9}/rustplus/exceptions/__init__.py +0 -0
- {rustplus-6.0.7 → rustplus-6.0.9}/rustplus/exceptions/exceptions.py +0 -0
- {rustplus-6.0.7 → rustplus-6.0.9}/rustplus/icons/__init__.py +0 -0
- {rustplus-6.0.7 → rustplus-6.0.9}/rustplus/icons/airfield.png +0 -0
- {rustplus-6.0.7 → rustplus-6.0.9}/rustplus/icons/arctic_base.png +0 -0
- {rustplus-6.0.7 → rustplus-6.0.9}/rustplus/icons/bandit.png +0 -0
- {rustplus-6.0.7 → rustplus-6.0.9}/rustplus/icons/barn.png +0 -0
- {rustplus-6.0.7 → rustplus-6.0.9}/rustplus/icons/cargo.png +0 -0
- {rustplus-6.0.7 → rustplus-6.0.9}/rustplus/icons/chinook.png +0 -0
- {rustplus-6.0.7 → rustplus-6.0.9}/rustplus/icons/chinook_blades.png +0 -0
- {rustplus-6.0.7 → rustplus-6.0.9}/rustplus/icons/crate.png +0 -0
- {rustplus-6.0.7 → rustplus-6.0.9}/rustplus/icons/desert_base.png +0 -0
- {rustplus-6.0.7 → rustplus-6.0.9}/rustplus/icons/dome.png +0 -0
- {rustplus-6.0.7 → rustplus-6.0.9}/rustplus/icons/excavator.png +0 -0
- {rustplus-6.0.7 → rustplus-6.0.9}/rustplus/icons/explosion.png +0 -0
- {rustplus-6.0.7 → rustplus-6.0.9}/rustplus/icons/ferryterminal.png +0 -0
- {rustplus-6.0.7 → rustplus-6.0.9}/rustplus/icons/fishing.png +0 -0
- {rustplus-6.0.7 → rustplus-6.0.9}/rustplus/icons/harbour.png +0 -0
- {rustplus-6.0.7 → rustplus-6.0.9}/rustplus/icons/icon.png +0 -0
- {rustplus-6.0.7 → rustplus-6.0.9}/rustplus/icons/junkyard.png +0 -0
- {rustplus-6.0.7 → rustplus-6.0.9}/rustplus/icons/large_oil_rig.png +0 -0
- {rustplus-6.0.7 → rustplus-6.0.9}/rustplus/icons/launchsite.png +0 -0
- {rustplus-6.0.7 → rustplus-6.0.9}/rustplus/icons/lighthouse.png +0 -0
- {rustplus-6.0.7 → rustplus-6.0.9}/rustplus/icons/military_tunnels.png +0 -0
- {rustplus-6.0.7 → rustplus-6.0.9}/rustplus/icons/mining_outpost.png +0 -0
- {rustplus-6.0.7 → rustplus-6.0.9}/rustplus/icons/mining_quarry_hqm.png +0 -0
- {rustplus-6.0.7 → rustplus-6.0.9}/rustplus/icons/mining_quarry_stone.png +0 -0
- {rustplus-6.0.7 → rustplus-6.0.9}/rustplus/icons/mining_quarry_sulfur.png +0 -0
- {rustplus-6.0.7 → rustplus-6.0.9}/rustplus/icons/missile_silo.png +0 -0
- {rustplus-6.0.7 → rustplus-6.0.9}/rustplus/icons/outpost.png +0 -0
- {rustplus-6.0.7 → rustplus-6.0.9}/rustplus/icons/oxums.png +0 -0
- {rustplus-6.0.7 → rustplus-6.0.9}/rustplus/icons/patrol.png +0 -0
- {rustplus-6.0.7 → rustplus-6.0.9}/rustplus/icons/power_plant.png +0 -0
- {rustplus-6.0.7 → rustplus-6.0.9}/rustplus/icons/radtown.png +0 -0
- {rustplus-6.0.7 → rustplus-6.0.9}/rustplus/icons/satellite.png +0 -0
- {rustplus-6.0.7 → rustplus-6.0.9}/rustplus/icons/sewer.png +0 -0
- {rustplus-6.0.7 → rustplus-6.0.9}/rustplus/icons/small_oil_rig.png +0 -0
- {rustplus-6.0.7 → rustplus-6.0.9}/rustplus/icons/stables.png +0 -0
- {rustplus-6.0.7 → rustplus-6.0.9}/rustplus/icons/supermarket.png +0 -0
- {rustplus-6.0.7 → rustplus-6.0.9}/rustplus/icons/swamp.png +0 -0
- {rustplus-6.0.7 → rustplus-6.0.9}/rustplus/icons/train.png +0 -0
- {rustplus-6.0.7 → rustplus-6.0.9}/rustplus/icons/train_yard.png +0 -0
- {rustplus-6.0.7 → rustplus-6.0.9}/rustplus/icons/underwater_lab.png +0 -0
- {rustplus-6.0.7 → rustplus-6.0.9}/rustplus/icons/vending_machine.png +0 -0
- {rustplus-6.0.7 → rustplus-6.0.9}/rustplus/icons/water_treatment.png +0 -0
- {rustplus-6.0.7 → rustplus-6.0.9}/rustplus/identification/__init__.py +0 -0
- {rustplus-6.0.7 → rustplus-6.0.9}/rustplus/identification/handler_list.py +0 -0
- {rustplus-6.0.7 → rustplus-6.0.9}/rustplus/identification/registered_listener.py +0 -0
- {rustplus-6.0.7 → rustplus-6.0.9}/rustplus/identification/server_details.py +0 -0
- {rustplus-6.0.7 → rustplus-6.0.9}/rustplus/remote/__init__.py +0 -0
- {rustplus-6.0.7 → rustplus-6.0.9}/rustplus/remote/camera/__init__.py +0 -0
- {rustplus-6.0.7 → rustplus-6.0.9}/rustplus/remote/camera/camera_constants.py +0 -0
- {rustplus-6.0.7 → rustplus-6.0.9}/rustplus/remote/camera/camera_manager.py +0 -0
- {rustplus-6.0.7 → rustplus-6.0.9}/rustplus/remote/camera/camera_parser.py +0 -0
- {rustplus-6.0.7 → rustplus-6.0.9}/rustplus/remote/camera/structures.py +0 -0
- {rustplus-6.0.7 → rustplus-6.0.9}/rustplus/remote/fcm/__init__.py +0 -0
- {rustplus-6.0.7 → rustplus-6.0.9}/rustplus/remote/fcm/fcm_listener.py +0 -0
- {rustplus-6.0.7 → rustplus-6.0.9}/rustplus/remote/proxy/__init__.py +0 -0
- {rustplus-6.0.7 → rustplus-6.0.9}/rustplus/remote/proxy/proxy_value_grabber.py +0 -0
- {rustplus-6.0.7 → rustplus-6.0.9}/rustplus/remote/ratelimiter/__init__.py +0 -0
- {rustplus-6.0.7 → rustplus-6.0.9}/rustplus/remote/rustplus_proto/__init__.py +0 -0
- {rustplus-6.0.7 → rustplus-6.0.9}/rustplus/remote/rustplus_proto/rustplus.py +0 -0
- {rustplus-6.0.7 → rustplus-6.0.9}/rustplus/remote/websocket/__init__.py +0 -0
- {rustplus-6.0.7 → rustplus-6.0.9}/rustplus/remote/websocket/ws.py +0 -0
- {rustplus-6.0.7 → rustplus-6.0.9}/rustplus/structs/__init__.py +0 -0
- {rustplus-6.0.7 → rustplus-6.0.9}/rustplus/structs/rust_chat_message.py +0 -0
- {rustplus-6.0.7 → rustplus-6.0.9}/rustplus/structs/rust_contents.py +0 -0
- {rustplus-6.0.7 → rustplus-6.0.9}/rustplus/structs/rust_entity_info.py +0 -0
- {rustplus-6.0.7 → rustplus-6.0.9}/rustplus/structs/rust_error.py +0 -0
- {rustplus-6.0.7 → rustplus-6.0.9}/rustplus/structs/rust_info.py +0 -0
- {rustplus-6.0.7 → rustplus-6.0.9}/rustplus/structs/rust_item.py +0 -0
- {rustplus-6.0.7 → rustplus-6.0.9}/rustplus/structs/rust_map.py +0 -0
- {rustplus-6.0.7 → rustplus-6.0.9}/rustplus/structs/rust_marker.py +0 -0
- {rustplus-6.0.7 → rustplus-6.0.9}/rustplus/structs/rust_team_info.py +0 -0
- {rustplus-6.0.7 → rustplus-6.0.9}/rustplus/structs/rust_time.py +0 -0
- {rustplus-6.0.7 → rustplus-6.0.9}/rustplus/structs/serialization.py +0 -0
- {rustplus-6.0.7 → rustplus-6.0.9}/rustplus/structs/util.py +0 -0
- {rustplus-6.0.7 → rustplus-6.0.9}/rustplus/utils/__init__.py +0 -0
- {rustplus-6.0.7 → rustplus-6.0.9}/rustplus/utils/deprecated.py +0 -0
- {rustplus-6.0.7 → rustplus-6.0.9}/rustplus/utils/emojis.py +0 -0
- {rustplus-6.0.7 → rustplus-6.0.9}/rustplus/utils/fonts/PermanentMarker.ttf +0 -0
- {rustplus-6.0.7 → rustplus-6.0.9}/rustplus/utils/fonts/__init__.py +0 -0
- {rustplus-6.0.7 → rustplus-6.0.9}/rustplus/utils/grab_items.py +0 -0
- {rustplus-6.0.7 → rustplus-6.0.9}/rustplus/utils/yielding_event.py +0 -0
- {rustplus-6.0.7 → rustplus-6.0.9}/rustplus.egg-info/dependency_links.txt +0 -0
- {rustplus-6.0.7 → rustplus-6.0.9}/rustplus.egg-info/requires.txt +0 -0
- {rustplus-6.0.7 → rustplus-6.0.9}/rustplus.egg-info/top_level.txt +0 -0
- {rustplus-6.0.7 → rustplus-6.0.9}/setup.cfg +0 -0
- {rustplus-6.0.7 → rustplus-6.0.9}/setup.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: rustplus
|
|
3
|
-
Version: 6.0.
|
|
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>
|
|
Binary file
|
|
@@ -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(
|
|
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(
|
|
147
|
+
def convert_marker(marker_type: int, angle) -> Image.Image:
|
|
148
148
|
name_to_file = {
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
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[
|
|
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
|
|
159
|
+
if marker_type == 6:
|
|
160
160
|
icon = icon.resize((85, 85))
|
|
161
|
-
elif
|
|
161
|
+
elif marker_type == 2:
|
|
162
162
|
icon = icon.resize((96, 96))
|
|
163
|
-
elif
|
|
163
|
+
elif marker_type == 4 or marker_type == 8:
|
|
164
164
|
blades_file = "chinook_blades.png"
|
|
165
|
-
blades_size = (100, 100) if
|
|
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
|
|
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.
|
|
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>
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|