Add InstantlyRepairsProperties

This commit is contained in:
dnqbob
2023-07-28 14:32:24 +08:00
committed by abcdefg30
parent 44e024a94e
commit 2ac85ac61d
3 changed files with 45 additions and 3 deletions

View File

@@ -10,6 +10,7 @@
#endregion
using OpenRA.Mods.Common.Traits;
using OpenRA.Primitives;
using OpenRA.Traits;
namespace OpenRA.Mods.Common.Activities
@@ -22,8 +23,8 @@ namespace OpenRA.Mods.Common.Activities
IHealth enterHealth;
InstantlyRepairable enterInstantlyRepariable;
public InstantRepair(Actor self, in Target target, InstantlyRepairsInfo info)
: base(self, target, info.TargetLineColor)
public InstantRepair(Actor self, in Target target, InstantlyRepairsInfo info, Color? targetLineColor)
: base(self, target, targetLineColor)
{
this.info = info;
}