I would like to export a delimited textfile which contains landtiles and items with their respective radarcolors (best would be as r;g;b).
In the sourcecode there exists a public static function to at least save all colors:
Code: Select all
public static void ExportToCSV(string FileName)
{
using (StreamWriter Tex = new StreamWriter(new FileStream(FileName, FileMode.Create, FileAccess.ReadWrite), System.Text.Encoding.GetEncoding(1252)))
{
Tex.WriteLine("ID;Color");
for (int i = 0; i < m_Colors.Length; ++i)
{
Tex.WriteLine(String.Format("0x{0:X4};{1}", i, m_Colors[i]));
}
}
}
Thank you very much!