Extract strings from support power name and description.

This commit is contained in:
Matthias Mailänder
2024-04-02 11:58:57 +02:00
committed by Gustas
parent 0c43801a2c
commit 188f0e2451
25 changed files with 174 additions and 68 deletions

View File

@@ -30,8 +30,11 @@ namespace OpenRA.Mods.Common.Traits
[Desc("Palette used for the icon.")]
public readonly string IconPalette = "chrome";
public readonly string Name = "";
public readonly string Description = "";
[TranslationReference(optional: true)]
public readonly string Name = null;
[TranslationReference(optional: true)]
public readonly string Description = null;
[Desc("Allow multiple instances of the same support power.")]
public readonly bool AllowMultiple = false;
@@ -46,6 +49,7 @@ namespace OpenRA.Mods.Common.Traits
[Desc("If set to true, the support power will be fully charged when it becomes available. " +
"Normal rules apply for subsequent charges.")]
public readonly bool StartFullyCharged = false;
public readonly string[] Prerequisites = Array.Empty<string>();
public readonly string DetectedSound = null;