Add support for TS-style random tile variants.
This commit is contained in:
@@ -65,10 +65,10 @@ namespace OpenRA
|
||||
|
||||
public class TerrainTemplateInfo
|
||||
{
|
||||
static readonly TerrainTemplateInfo Default = new TerrainTemplateInfo(0, null, int2.Zero, null);
|
||||
static readonly TerrainTemplateInfo Default = new TerrainTemplateInfo(0, new string[] { null }, int2.Zero, null);
|
||||
|
||||
public readonly ushort Id;
|
||||
public readonly string Image;
|
||||
public readonly string[] Image;
|
||||
public readonly int[] Frames;
|
||||
public readonly int2 Size;
|
||||
public readonly bool PickAny;
|
||||
@@ -76,7 +76,7 @@ namespace OpenRA
|
||||
|
||||
TerrainTileInfo[] tileInfo;
|
||||
|
||||
public TerrainTemplateInfo(ushort id, string image, int2 size, byte[] tiles)
|
||||
public TerrainTemplateInfo(ushort id, string[] image, int2 size, byte[] tiles)
|
||||
{
|
||||
this.Id = id;
|
||||
this.Image = image;
|
||||
|
||||
Reference in New Issue
Block a user