endstone::MapRenderer
Represents a renderer for a map.
Functions:
Name | Description |
---|---|
MapRenderer | Initialize the map renderer base with the given contextual status. |
initialize | Initialize this MapRenderer for the given map. |
isContextual | Get whether the renderer is contextual, i.e. has different canvases for different players. |
render | Render to the given map. |
MapRenderer
MapRenderer(const bool is_contextual = false)
Initialize the map renderer base with the given contextual status.
Parameters:
is_contextual
Whether the renderer is contextual. See isContextual().
initialize
void initialize(MapView &map)
Initialize this MapRenderer for the given map.
Parameters:
map
The MapView being initialized.
isContextual
bool isContextual() const
Get whether the renderer is contextual, i.e. has different canvases for different players.
Returns:
true if contextual, false otherwise.
render
void render(MapView &map, MapCanvas &canvas, Player &player)
Render to the given map.
Parameters:
map
The MapView being rendered to.canvas
The canvas to use for rendering.player
The player who triggered the rendering.
Last updated on