Simplify names, remove unused usings, remove redundant casts.
This commit is contained in:
@@ -16,7 +16,6 @@ using System.Linq;
|
||||
using System.Security.Cryptography;
|
||||
using System.Text;
|
||||
using OpenRA.FileSystem;
|
||||
using OpenRA.GameRules;
|
||||
using OpenRA.Graphics;
|
||||
using OpenRA.Network;
|
||||
using OpenRA.Support;
|
||||
@@ -277,7 +276,7 @@ namespace OpenRA
|
||||
{
|
||||
var size = new Size(width, height);
|
||||
Grid = Game.ModData.Manifest.Get<MapGrid>();
|
||||
var tileRef = new TerrainTile(tileset.Templates.First().Key, (byte)0);
|
||||
var tileRef = new TerrainTile(tileset.Templates.First().Key, 0);
|
||||
|
||||
Title = "Name your map here";
|
||||
Description = "Describe your map here";
|
||||
@@ -604,7 +603,7 @@ namespace OpenRA
|
||||
|
||||
foreach (var field in fields)
|
||||
{
|
||||
var f = this.GetType().GetField(field);
|
||||
var f = GetType().GetField(field);
|
||||
if (f.GetValue(this) == null)
|
||||
continue;
|
||||
root.Add(new MiniYamlNode(field, FieldSaver.FormatValue(this, f)));
|
||||
|
||||
Reference in New Issue
Block a user