-
Notifications
You must be signed in to change notification settings - Fork 37
/
STile.cs
35 lines (31 loc) · 809 Bytes
/
STile.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
using xTile.Layers;
using xTile.Tiles;
namespace Entoarox.DynamicDungeons
{
internal struct STile : ITile
{
/*********
** Accessors
*********/
public int X { get; set; }
public int Y { get; set; }
public Layer Layer { get; set; }
public TileSheet Sheet;
public int Index;
/*********
** Public methods
*********/
public STile(int x, int y, Layer layer, TileSheet sheet, int index)
{
this.X = x;
this.Y = y;
this.Layer = layer;
this.Sheet = sheet;
this.Index = index;
}
public xTile.Tiles.Tile Get()
{
return new StaticTile(this.Layer, this.Sheet, BlendMode.Additive, this.Index);
}
}
}