JustAnotherDnDGame 0.1.0
Jeu de rôle tactique au d20, vue de dessus, en C++/Qt
Loading...
Searching...
No Matches
PlaneFileNaming.cpp File Reference
#include "HMI/Editor/PlaneFileNaming.h"
#include <algorithm>
#include <cctype>
#include "Core/Levels/Plane.h"

Namespaces

namespace  hmi

Functions

PlanePixelSize hmi::planePixelSize (int widthUnits, int heightUnits, int pixelsPerUnit) noexcept
 Dimensions, en pixels, du PNG d'un plan.
std::string hmi::sanitizePlaneBaseName (const std::string &name)
 Réduit un nom libre à ce qu'un nom de fichier de plan accepte.
std::string hmi::uniquePlaneFileName (const std::string &levelName, const std::vector< std::string > &existing)
 Compose un nom de fichier de plan unique pour un niveau donné.