Made all traitInfo fields readonly
This came up while working on the new documentation generation and comparing the results to ORAIDE's own code parser.
This commit is contained in:
@@ -176,14 +176,14 @@ namespace OpenRA.Mods.Common.Traits
|
||||
public class UpdatesPlayerStatisticsInfo : TraitInfo
|
||||
{
|
||||
[Desc("Add to army value in statistics")]
|
||||
public bool AddToArmyValue = false;
|
||||
public readonly bool AddToArmyValue = false;
|
||||
|
||||
[Desc("Add to assets value in statistics")]
|
||||
public bool AddToAssetsValue = true;
|
||||
public readonly bool AddToAssetsValue = true;
|
||||
|
||||
[ActorReference]
|
||||
[Desc("Count this actor as a different type in the spectator army display.")]
|
||||
public string OverrideActor = null;
|
||||
public readonly string OverrideActor = null;
|
||||
|
||||
public override object Create(ActorInitializer init) { return new UpdatesPlayerStatistics(this, init.Self); }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user