mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-03-21 17:55:21 -05:00
Some checks are pending
Build Desktop / Configure (push) Waiting to run
Build Desktop / ${{matrix.distro}} ${{matrix.version}} (Debian, DEB, 11) (push) Blocked by required conditions
Build Desktop / ${{matrix.distro}} ${{matrix.version}} (Debian, DEB, 13) (push) Blocked by required conditions
Build Desktop / ${{matrix.distro}} ${{matrix.version}} (Debian, DEB, skip, 12) (push) Blocked by required conditions
Build Desktop / ${{matrix.distro}} ${{matrix.version}} (Fedora, RPM, 43) (push) Blocked by required conditions
Build Desktop / ${{matrix.distro}} ${{matrix.version}} (Fedora, RPM, skip, 42) (push) Blocked by required conditions
Build Desktop / ${{matrix.distro}} ${{matrix.version}} (Servatrice_Debian, DEB, yes, skip, 11) (push) Blocked by required conditions
Build Desktop / ${{matrix.distro}} ${{matrix.version}} (Ubuntu, DEB, 24.04) (push) Blocked by required conditions
Build Desktop / ${{matrix.distro}} ${{matrix.version}} (Ubuntu, DEB, skip, 22.04) (push) Blocked by required conditions
Build Desktop / ${{matrix.distro}} ${{matrix.version}} (yes, Arch, skip) (push) Blocked by required conditions
Build Desktop / ${{matrix.os}} ${{matrix.target}}${{ matrix.soc == 'Intel' && ' Intel' || '' }}${{ matrix.type == 'Debug' && ' Debug' || '' }} (Windows10-installer, true, Visual Studio 17 2022, x64, 1, Windows, -Win10, win64_msvc2019_64, qtimageformats qtmultimedia qt… (push) Blocked by required conditions
Build Desktop / ${{matrix.os}} ${{matrix.target}}${{ matrix.soc == 'Intel' && ' Intel' || '' }}${{ matrix.type == 'Debug' && ' Debug' || '' }} (Windows7-installer, true, Visual Studio 17 2022, x64, 1, Windows, -Win7, win64_msvc2019_64, 5.15.*, windows-2022, 7, Release) (push) Blocked by required conditions
Build Desktop / ${{matrix.os}} ${{matrix.target}}${{ matrix.soc == 'Intel' && ' Intel' || '' }}${{ matrix.type == 'Debug' && ' Debug' || '' }} (false, Ninja, macOS, clang_64, qtimageformats qtmultimedia qtwebsockets, 6.6.*, macos-15, Apple, 15, Debug, 1, 16.4) (push) Blocked by required conditions
Build Desktop / ${{matrix.os}} ${{matrix.target}}${{ matrix.soc == 'Intel' && ' Intel' || '' }}${{ matrix.type == 'Debug' && ' Debug' || '' }} (macOS13_Intel-package, false, Ninja, 1, macOS, 13, -macOS13_Intel, clang_64, qtimageformats qtmultimedia qtwebsockets, 6.6.*… (push) Blocked by required conditions
Build Desktop / ${{matrix.os}} ${{matrix.target}}${{ matrix.soc == 'Intel' && ' Intel' || '' }}${{ matrix.type == 'Debug' && ' Debug' || '' }} (macOS14-package, false, Ninja, 1, macOS, -macOS14, clang_64, qtimageformats qtmultimedia qtwebsockets, 6.6.*, macos-14, Appl… (push) Blocked by required conditions
Build Desktop / ${{matrix.os}} ${{matrix.target}}${{ matrix.soc == 'Intel' && ' Intel' || '' }}${{ matrix.type == 'Debug' && ' Debug' || '' }} (macOS15-package, false, Ninja, 1, macOS, -macOS15, clang_64, qtimageformats qtmultimedia qtwebsockets, 6.6.*, macos-15, Appl… (push) Blocked by required conditions
Build Docker Image / amd64 & arm64 (push) Waiting to run
59 lines
1.7 KiB
C++
59 lines
1.7 KiB
C++
/**
|
|
* @file game_specific_terms.h
|
|
* @ingroup Cards
|
|
* @brief TODO: Document this.
|
|
*/
|
|
|
|
#ifndef GAME_SPECIFIC_TERMS_H
|
|
#define GAME_SPECIFIC_TERMS_H
|
|
|
|
#include <QCoreApplication>
|
|
#include <QString>
|
|
|
|
/*
|
|
* Collection of traslatable property names used in games,
|
|
* so we can use Game::Property instead of hardcoding strings.
|
|
* Note: Mtg = "Maybe that game"
|
|
*/
|
|
|
|
namespace Mtg
|
|
{
|
|
QString const CardType("type");
|
|
QString const ConvertedManaCost("cmc");
|
|
QString const Colors("colors");
|
|
QString const Loyalty("loyalty");
|
|
QString const MainCardType("maintype");
|
|
QString const ManaCost("manacost");
|
|
QString const PowTough("pt");
|
|
QString const Side("side");
|
|
QString const Layout("layout");
|
|
QString const ColorIdentity("coloridentity");
|
|
|
|
inline static const QString getNicePropertyName(QString key)
|
|
{
|
|
if (key == CardType)
|
|
return QCoreApplication::translate("Mtg", "Card Type");
|
|
if (key == ConvertedManaCost)
|
|
return QCoreApplication::translate("Mtg", "Mana Value");
|
|
if (key == Colors)
|
|
return QCoreApplication::translate("Mtg", "Color(s)");
|
|
if (key == Loyalty)
|
|
return QCoreApplication::translate("Mtg", "Loyalty");
|
|
if (key == MainCardType)
|
|
return QCoreApplication::translate("Mtg", "Main Card Type");
|
|
if (key == ManaCost)
|
|
return QCoreApplication::translate("Mtg", "Mana Cost");
|
|
if (key == PowTough)
|
|
return QCoreApplication::translate("Mtg", "P/T");
|
|
if (key == Side)
|
|
return QCoreApplication::translate("Mtg", "Side");
|
|
if (key == Layout)
|
|
return QCoreApplication::translate("Mtg", "Layout");
|
|
if (key == ColorIdentity)
|
|
return QCoreApplication::translate("Mtg", "Color Identity");
|
|
return key;
|
|
}
|
|
} // namespace Mtg
|
|
|
|
#endif
|