Rework internal shroud plumbing.

This commit is contained in:
Paul Chote
2016-10-24 21:45:14 +01:00
parent 8cda0dd360
commit fdac5a6d8a
3 changed files with 81 additions and 55 deletions

View File

@@ -33,9 +33,9 @@ namespace OpenRA.Mods.Common.Traits
if (!info.ValidStances.HasStance(p.Stances[self.Owner]))
return;
p.Shroud.AddProjectedVisibility(this, uv);
p.Shroud.AddSource(this, Shroud.SourceType.Visibility, uv);
}
protected override void RemoveCellsFromPlayerShroud(Actor self, Player p) { p.Shroud.RemoveVisibility(this); }
protected override void RemoveCellsFromPlayerShroud(Actor self, Player p) { p.Shroud.RemoveSource(this); }
}
}