Structsยง
- GameMap
- A struct representing a game map, from which we can create [Map] instances
Enumsยง
Constantsยง
- LAND_
COLOR ๐ - The color of the land on the map
- NULL_
COLOR ๐ - The color of the null pixels on the map
- SCALE ๐
- The scale factor for the input map image
- TEXT_
COLOR ๐ - The color of the text drawn on the map
- WATER_
COLOR ๐ - The color of the water on the map
Traitsยง
Functionsยง
- read_
png_ ๐bytes - Returns a vector of bytes from a png file encoded with rgb8, meaning each pixel is represented by 3 bytes
- serialize_
into_ ๐b64 - serialize_
title_ ๐color_ map