Add ISpriteSequence.Bounds and Animation(WithOffset).ScreenBounds.

The bounds define the smallest Rectangle that covers all frames within a sequence.
This commit is contained in:
Paul Chote
2017-12-05 16:26:44 +00:00
committed by reaperrr
parent 85c5259361
commit 041431d966
4 changed files with 53 additions and 1 deletions

View File

@@ -11,7 +11,7 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Drawing;
using OpenRA.FileSystem;
namespace OpenRA.Graphics
@@ -31,6 +31,7 @@ namespace OpenRA.Graphics
int ShadowStart { get; }
int ShadowZOffset { get; }
int[] Frames { get; }
Rectangle Bounds { get; }
Sprite GetSprite(int frame);
Sprite GetSprite(int frame, int facing);