Fix naming
This commit is contained in:
@@ -72,7 +72,7 @@ namespace OpenRA.FileFormats
|
||||
string tilename = string.Format(pattern, i + 1);
|
||||
|
||||
if (!walk.ContainsKey((ushort)(start + i)))
|
||||
walk.Add((ushort)(start + i), Walkability.GetTerrainType(tilename));
|
||||
walk.Add((ushort)(start + i), Walkability.GetTileTemplate(tilename));
|
||||
|
||||
using( Stream s = FileSystem.Open( tilename + "." + suffix ) )
|
||||
{
|
||||
|
||||
@@ -50,7 +50,7 @@ namespace OpenRA.FileFormats
|
||||
|
||||
public class Walkability
|
||||
{
|
||||
Dictionary<string, TileTemplate> walkability
|
||||
Dictionary<string, TileTemplate> templates
|
||||
= new Dictionary<string,TileTemplate>();
|
||||
|
||||
public Walkability(string templatesFile)
|
||||
@@ -77,13 +77,13 @@ namespace OpenRA.FileFormats
|
||||
tile.Index = -1;
|
||||
int.TryParse(section.Name.Substring(3), out tile.Index);
|
||||
|
||||
walkability[tile.Name] = tile;
|
||||
templates[tile.Name] = tile;
|
||||
}
|
||||
}
|
||||
|
||||
public TileTemplate GetTerrainType(string terrainName)
|
||||
public TileTemplate GetTileTemplate(string terrainName)
|
||||
{
|
||||
return walkability[terrainName];
|
||||
return templates[terrainName];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -97,7 +97,7 @@ namespace OpenRA.Traits
|
||||
var numStates = self.Info.Traits.Get<BridgeInfo>().Long ? 6 : 3;
|
||||
for (var n = 0; n < numStates; n++)
|
||||
{
|
||||
var stateTemplate = world.TileSet.Walkability.GetTerrainType(NameFromState(template, n));
|
||||
var stateTemplate = world.TileSet.Walkability.GetTileTemplate(NameFromState(template, n));
|
||||
Templates.Add( stateTemplate );
|
||||
|
||||
TileSprites.Add(replacedTiles.ToDictionary(
|
||||
|
||||
Reference in New Issue
Block a user