Add IActorPreview.ScreenBounds.
This commit is contained in:
@@ -11,6 +11,7 @@
|
||||
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Drawing;
|
||||
using OpenRA.Graphics;
|
||||
|
||||
namespace OpenRA.Mods.Common.Graphics
|
||||
@@ -38,5 +39,10 @@ namespace OpenRA.Mods.Common.Graphics
|
||||
{
|
||||
return animation.Render(pos, offset(), zOffset(), pr, scale);
|
||||
}
|
||||
|
||||
public IEnumerable<Rectangle> ScreenBounds(WorldRenderer wr, WPos pos)
|
||||
{
|
||||
yield return animation.ScreenBounds(wr, pos, offset(), scale);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user