StartPicker class
#include <Jazz2/Formats/LevelPreview.h>
Picks the start of a level the preview is made around.
The start of Jazz first, then any start, then a start of multiplayer, the first one in the grid of each.
Public functions
-
void Add(const EventRecord& event,
std::
int32_t x, std:: int32_t y) - Takes an event of the grid into account,
xandyare its tile. -
auto GetPosition(std::
int32_t width, std:: int32_t height) const -> nCine::Vector2f - Returns where the level starts in pixels, the middle of a sprite layer of a size in tiles if no event was a start.