Fix RCS1041

This commit is contained in:
RoosterDragon
2023-03-18 12:02:32 +00:00
committed by Gustas
parent 917b0512bf
commit 9f1ea57d3c
15 changed files with 17 additions and 14 deletions

View File

@@ -17,7 +17,7 @@ namespace OpenRA.Mods.Common.Traits
public class ActorSpawnerInfo : ConditionalTraitInfo
{
[Desc("Type of ActorSpawner with which it connects.")]
public readonly HashSet<string> Types = new() { };
public readonly HashSet<string> Types = new();
public override object Create(ActorInitializer init) { return new ActorSpawner(this); }
}

View File

@@ -26,7 +26,7 @@ namespace OpenRA.Mods.Common.Traits
[ActorReference]
[FieldLoader.Require]
public readonly HashSet<string> DockActors = new() { };
public readonly HashSet<string> DockActors = new();
[VoiceReference]
public readonly string Voice = "Action";

View File

@@ -23,7 +23,7 @@ namespace OpenRA.Mods.Common.Traits
{
[ActorReference]
[FieldLoader.Require]
public readonly HashSet<string> RepairActors = new() { };
public readonly HashSet<string> RepairActors = new();
[VoiceReference]
public readonly string Voice = "Action";

View File

@@ -20,7 +20,7 @@ namespace OpenRA.Mods.Common.Traits
[ActorReference]
[FieldLoader.Require]
[Desc("Actors that this actor can dock to and get rearmed by.")]
public readonly HashSet<string> RearmActors = new() { };
public readonly HashSet<string> RearmActors = new();
[Desc("Name(s) of AmmoPool(s) that use this trait to rearm.")]
public readonly HashSet<string> AmmoPools = new() { "primary" };

View File

@@ -23,7 +23,7 @@ namespace OpenRA.Mods.Common.Traits
{
[ActorReference]
[FieldLoader.Require]
public readonly HashSet<string> RepairActors = new() { };
public readonly HashSet<string> RepairActors = new();
[VoiceReference]
public readonly string Voice = "Action";

View File

@@ -22,7 +22,7 @@ namespace OpenRA.Mods.Common.Traits
{
[ActorReference]
[FieldLoader.Require]
public readonly HashSet<string> RepairActors = new() { };
public readonly HashSet<string> RepairActors = new();
public readonly WDist CloseEnough = WDist.FromCells(4);

View File

@@ -39,7 +39,7 @@ namespace OpenRA.Mods.Common.Traits
public readonly string Owner = "Creeps";
[Desc("Type of ActorSpawner with which it connects.")]
public readonly HashSet<string> Types = new() { };
public readonly HashSet<string> Types = new();
public override void RulesetLoaded(Ruleset rules, ActorInfo ai)
{