Tidy TileSet formatting (no code changes).
This commit is contained in:
@@ -60,7 +60,9 @@ namespace OpenRA.FileFormats
|
||||
foreach (var field in Fields)
|
||||
{
|
||||
FieldInfo f = this.GetType().GetField(field);
|
||||
if (f.GetValue(this) == null) continue;
|
||||
if (f.GetValue(this) == null)
|
||||
continue;
|
||||
|
||||
root.Add(new MiniYamlNode(field, FieldSaver.FormatValue(this, f)));
|
||||
}
|
||||
|
||||
@@ -122,7 +124,9 @@ namespace OpenRA.FileFormats
|
||||
foreach (var field in fields)
|
||||
{
|
||||
FieldInfo f = this.GetType().GetField(field);
|
||||
if (f.GetValue(this) == null) continue;
|
||||
if (f.GetValue(this) == null)
|
||||
continue;
|
||||
|
||||
gen.Add(new MiniYamlNode(field, FieldSaver.FormatValue(this, f)));
|
||||
}
|
||||
|
||||
@@ -147,7 +151,7 @@ namespace OpenRA.FileFormats
|
||||
return tile.Data.TileBitmapBytes[r.index];
|
||||
|
||||
byte[] missingTile = new byte[TileSize*TileSize];
|
||||
for( int i = 0 ; i < missingTile.Length ; i++ )
|
||||
for (var i = 0; i < missingTile.Length; i++)
|
||||
missingTile[i] = 0x36;
|
||||
|
||||
return missingTile;
|
||||
@@ -159,6 +163,7 @@ namespace OpenRA.FileFormats
|
||||
string ret;
|
||||
if (!tt.TryGetValue(r.index, out ret))
|
||||
return "Clear"; // Default walkable
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user