git-svn-id: svn://svn.ijw.co.nz/svn/OpenRa@1305 993157c7-ee19-0410-b2c4-bb4e9862e678
This commit is contained in:
23
OpenRa.FileFormats/TreeReference.cs
Normal file
23
OpenRa.FileFormats/TreeReference.cs
Normal 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); } }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user