17 lines
431 B
C++
17 lines
431 B
C++
#include "SelectionNames.h"
|
|
|
|
#include <QObject>
|
|
|
|
#include "DisplayName.h"
|
|
|
|
QString getBuildingTypeName(BuildingType type)
|
|
{
|
|
// "Hq" would read as a word rather than an acronym through the generic conversion,
|
|
// and the player's own base deserves naming as such.
|
|
if (type == BuildingType::Hq)
|
|
{
|
|
return QObject::tr("Player HQ");
|
|
}
|
|
return QString::fromStdString(toDisplayName(buildingTypeId(type)));
|
|
}
|