multiple intricate implementations

This commit is contained in:
Geoffray Levasseur committed 2026-11-04 11:41:01 +01:00
1 parent 7aa4ea4425
commit 77690cbd96
109 files changed
+2045 -56

No files matched your search

+16
View File
@@ -297,6 +297,14 @@ struct ModelNameInfo {
// Wire layout of Tribes::ModelPictureInfo (4 int32 + ShortString).
QByteArray packModelPictureInfo(const Tribes::ModelPictureInfo &info);
Tribes::ModelPictureInfo unpackModelPictureInfo(const void *data);
// Inverses of TribeInfo/CityNameInfo/ModelNameInfo::pack().
TribeInfo unpackTribeInfo(const void *data);
CityNameInfo unpackCityNameInfo(const void *data);
ModelNameInfo unpackModelNameInfo(const void *data);
// Term.pas's `ClientMode`: the command (cTurn, cResume, scContact, ...) the
// client is currently serving, -1 when idle.
extern int clientMode;
// Term.pas's `TribeOriginal`: whether tribe p comes from the original
// (non-network-relayed) game rather than being created for a movie/viewer.
@@ -325,6 +333,14 @@ struct UnusedTribe {
};
extern std::vector<UnusedTribe> unusedTribeFiles;
// Term.pas's `TribeNames` (display name + colour of the tribes a player can
// pick from, filled right before the tribe selection list is shown).
struct TribeNameEntry {
QString name;
QColor color;
};
extern std::vector<TribeNameEntry> tribeNames;
// Term.pas's `TaxSum`/`ScienceSum: Integer;` (aggregate tax/science totals
// across all owned cities, refreshed by MainScreen::updateViews()).
extern int taxSum;