Files
OpenRA/OpenRa.FileFormats/TreeReference.cs

24 lines
430 B
C#

using System;
using System.Collections.Generic;
using System.Text;
using System.Drawing;
namespace OpenRa.FileFormats
{
public struct TreeReference
{
public readonly int X;
public readonly int Y;
public readonly string Image;
public TreeReference(int xy, string image)
{
X = xy % 128;
Y = xy / 128;
Image = image;
}
public Point Location { get { return new Point(X, Y); } }
}
}