mirror of
https://github.com/Alee14/OpenHacknet.git
synced 2025-01-22 09:12:44 -05:00
49 lines
No EOL
1.3 KiB
C#
49 lines
No EOL
1.3 KiB
C#
using Microsoft.Xna.Framework;
|
|
|
|
namespace Hacknet
|
|
{
|
|
public struct SpritePlacementData
|
|
{
|
|
public Vector2 pos;
|
|
public float depth;
|
|
public Vector2 scale;
|
|
public int spriteIndex;
|
|
|
|
public BackgroundObject BackgroundObjectVersion
|
|
{
|
|
get
|
|
{
|
|
return new BackgroundObject
|
|
{
|
|
Alpha = 1f,
|
|
Colour = Color.White,
|
|
pos = pos,
|
|
Rotation = 0.0f,
|
|
SpritePath = "",
|
|
Texture = null,
|
|
VX = 0.0f,
|
|
VY = 0.0f,
|
|
XScale = scale.X,
|
|
YScale = scale.Y,
|
|
Z = depth
|
|
};
|
|
}
|
|
}
|
|
|
|
public SpritePlacementData(Vector2 position, Vector2 scales, float layerDepth)
|
|
{
|
|
pos = position;
|
|
scale = scales;
|
|
depth = layerDepth;
|
|
spriteIndex = 0;
|
|
}
|
|
|
|
public SpritePlacementData(Vector2 position, Vector2 scales, float layerDepth, int SpriteIndex)
|
|
{
|
|
pos = position;
|
|
scale = scales;
|
|
depth = layerDepth;
|
|
spriteIndex = SpriteIndex;
|
|
}
|
|
}
|
|
} |