git-svn-id: svn://svn.ijw.co.nz/svn/OpenRa@1305 993157c7-ee19-0410-b2c4-bb4e9862e678

This commit is contained in:
(no author)
2007-07-18 15:12:42 +00:00
parent 59acb09439
commit 32c1461193
4 changed files with 60 additions and 42 deletions

View File

@@ -0,0 +1,23 @@
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); } }
}
}