Use in parameter for Target
This commit is contained in:
@@ -29,7 +29,7 @@ namespace OpenRA.Mods.Cnc.Effects
|
||||
int weaponDelay;
|
||||
bool impacted = false;
|
||||
|
||||
public DropPodImpact(Player firedBy, WeaponInfo weapon, World world, WPos launchPos, Target target,
|
||||
public DropPodImpact(Player firedBy, WeaponInfo weapon, World world, WPos launchPos, in Target target,
|
||||
int delay, string entryEffect, string entrySequence, string entryPalette)
|
||||
{
|
||||
this.target = target;
|
||||
|
||||
@@ -28,7 +28,7 @@ namespace OpenRA.Mods.Cnc.Effects
|
||||
int weaponDelay;
|
||||
bool impacted = false;
|
||||
|
||||
public IonCannon(Player firedBy, WeaponInfo weapon, World world, WPos launchPos, Target target, string effect, string sequence, string palette, int delay)
|
||||
public IonCannon(Player firedBy, WeaponInfo weapon, World world, WPos launchPos, in Target target, string effect, string sequence, string palette, int delay)
|
||||
{
|
||||
this.target = target;
|
||||
this.firedBy = firedBy;
|
||||
|
||||
Reference in New Issue
Block a user