mirror of
https://github.com/space-wizards/RobustToolbox.git
synced 2026-09-01 09:37:03 +02:00
44 lines
1.2 KiB
C#
44 lines
1.2 KiB
C#
using System.Numerics;
|
|
using Robust.Client.Graphics;
|
|
using Robust.Shared.Graphics.RSI;
|
|
using Robust.Shared.Maths;
|
|
|
|
namespace Robust.Client.GameObjects
|
|
{
|
|
[NotContentImplementable]
|
|
public interface ISpriteLayer
|
|
{
|
|
SpriteComponent.DirectionOffset DirOffset { get; set; }
|
|
|
|
RSI? Rsi { get; set; }
|
|
RSI.StateId RsiState { get; set; }
|
|
RSI? ActualRsi { get; }
|
|
|
|
Texture? Texture { get; set; }
|
|
|
|
Angle Rotation { get; set; }
|
|
Vector2 Scale { get; set; }
|
|
|
|
bool Visible { get; set; }
|
|
Color Color { get; set; }
|
|
|
|
float AnimationTime { get; set; }
|
|
int AnimationFrame { get; }
|
|
bool AutoAnimated { get; set; }
|
|
|
|
RsiDirection EffectiveDirection(Angle worldRotation);
|
|
|
|
/// <summary>
|
|
/// Layer size in pixels.
|
|
/// Don't account layer scale or sprite world transform.
|
|
/// </summary>
|
|
Vector2i PixelSize { get; }
|
|
|
|
/// <summary>
|
|
/// Calculate layer bounding box in sprite local-space coordinates.
|
|
/// </summary>
|
|
/// <returns>Bounding box in sprite local-space coordinates.</returns>
|
|
Box2 CalculateBoundingBox();
|
|
}
|
|
}
|