public static IsValidStatic ( int index ) : bool | ||
index | int | |
Résultat | bool |
public void ReportInvalidMapIDs(string reportfile) { reportfile = Path.Combine(reportfile, String.Format("ReportInvalidMapIDs-{0}.csv", m_MapID)); using ( var Tex = new StreamWriter( new FileStream(reportfile, FileMode.Create, FileAccess.ReadWrite), Encoding.GetEncoding(1252))) { Tex.WriteLine("x;y;z;Static;LandTile"); for (int x = 0; x < m_Width; ++x) { for (int y = 0; y < m_Height; ++y) { Tile currtile = Tiles.GetLandTile(x, y); if (!Art.IsValidLand(currtile.ID)) { Tex.WriteLine(String.Format("{0};{1};{2};0;0x{3:X}", x, y, currtile.Z, currtile.ID)); } foreach (HuedTile currstatic in Tiles.GetStaticTiles(x, y)) { if (!Art.IsValidStatic(currstatic.ID)) { Tex.WriteLine(String.Format("{0};{1};{2};0x{3:X};0", x, y, currstatic.Z, currstatic.ID)); } } } } } }
public void ReportInvalidMapIDs(string reportfile) { reportfile = Path.Combine(reportfile, $"ReportInvalidMapIDs-{m_MapID}.csv"); using (StreamWriter Tex = new StreamWriter(new FileStream(reportfile, FileMode.Create, FileAccess.ReadWrite), System.Text.Encoding.GetEncoding(1252))) { Tex.WriteLine("x;y;z;Static;LandTile"); for (int x = 0; x < m_Width; ++x) { for (int y = 0; y < m_Height; ++y) { Tile currtile = Tiles.GetLandTile(x, y); if (!Art.IsValidLand(currtile.ID)) { Tex.WriteLine($"{x};{y};{currtile.Z};0;0x{currtile.ID:X}"); } foreach (HuedTile currstatic in Tiles.GetStaticTiles(x, y)) { if (!Art.IsValidStatic(currstatic.ID)) { Tex.WriteLine($"{x};{y};{currstatic.Z};0x{currstatic.ID:X};0"); } } } } } }