Fix RCS1041
This commit is contained in:
@@ -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); }
|
||||
}
|
||||
|
||||
@@ -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";
|
||||
|
||||
@@ -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";
|
||||
|
||||
@@ -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" };
|
||||
|
||||
@@ -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";
|
||||
|
||||
@@ -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);
|
||||
|
||||
|
||||
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user