Change IRenderable.WithPos -> OffsetBy.

This is more appropriate for the actual use cases.
Fixes #3621.
This commit is contained in:
Paul Chote
2013-08-03 11:16:52 +12:00
parent 3788d4f185
commit 805b4b6258
11 changed files with 18 additions and 15 deletions

View File

@@ -76,9 +76,9 @@ namespace OpenRA.Graphics
palette, normalsPalette, shadowPalette);
}
public IRenderable WithPos(WPos newPos)
public IRenderable OffsetBy(WVec vec)
{
return new VoxelRenderable(voxels, newPos, zOffset, camera, scale,
return new VoxelRenderable(voxels, pos + vec, zOffset, camera, scale,
lightSource, lightAmbientColor, lightDiffuseColor,
palette, normalsPalette, shadowPalette);
}