Use in parameter for Target
This commit is contained in:
@@ -54,7 +54,7 @@ namespace OpenRA.Mods.Common.Warheads
|
||||
}
|
||||
|
||||
/// <summary>Applies the warhead's effect against the target.</summary>
|
||||
public abstract void DoImpact(Target target, WarheadArgs args);
|
||||
public abstract void DoImpact(in Target target, WarheadArgs args);
|
||||
|
||||
/// <summary>Checks if the warhead is valid against (can do something to) the actor.</summary>
|
||||
public virtual bool IsValidAgainst(Actor victim, Actor firedBy)
|
||||
|
||||
Reference in New Issue
Block a user