git-svn-id: svn://svn.ijw.co.nz/svn/OpenRa@1304 993157c7-ee19-0410-b2c4-bb4e9862e678
This commit is contained in:
@@ -9,7 +9,8 @@ namespace OpenRa.FileFormats
|
||||
public class TileSet
|
||||
{
|
||||
public readonly Dictionary<ushort, Terrain> tiles = new Dictionary<ushort, Terrain>();
|
||||
public readonly Dictionary<ushort, Dictionary<int, int>> walk =
|
||||
|
||||
readonly Dictionary<ushort, Dictionary<int, int>> walk =
|
||||
new Dictionary<ushort, Dictionary<int, int>>(); // cjf will fix
|
||||
|
||||
public readonly Package MixFile;
|
||||
@@ -78,5 +79,13 @@ namespace OpenRa.FileFormats
|
||||
|
||||
return missingTile;
|
||||
}
|
||||
|
||||
public int GetWalkability(TileReference r)
|
||||
{
|
||||
if (r.tile == 0xff || r.tile == 0xffff)
|
||||
r.image = 0;
|
||||
|
||||
return walk[r.tile][r.image];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user