Getting the Map

Getting the Image

Calling rust_socket.get_map(add_icons: bool, add_events: bool, add_vending_machines: bool, add_team_positions: bool, override_images: dict, add_grid: bool) will return a PIL.Image with the respective additions.

Getting the Map Data

Calling rust_socket.get_map_info() will return a RustMap object with the following data:

class RustMap with fields:

width: int
height: int
jpg_image: bytes
margin: int
monuments : List[RustMonument]
background: str

class RustMonument with fields:

token: str
x: float
y: float

Last updated