public static void WriteWCellInfo() { using (var writer = new CodeFileWriter(Path.Combine(ToolConfig.WCellConstantsRoot, "WCellInfo.cs"), "WCell.Constants", "WCellInfo", "static class")) { writer.WriteSummary(@"The official codename of the current WCell build"); writer.WriteLine("public const string Codename = \"Amethyst\";"); writer.WriteLine(); writer.WriteSummary(@"The color of the current WCell codename"); writer.WriteLine(@"public const ChatColor CodenameColor = ChatColor.Purple;"); writer.WriteLine(); writer.WriteSummary("The version of the WoW Client that is currently supported."); writer.WriteLine("public static readonly ClientVersion RequiredVersion = new ClientVersion({0}, {1}, {2}, {3});", WoWFile.Version.Major, WoWFile.Version.Minor, WoWFile.Version.Revision, WoWFile.Version.Build); writer.WriteLine(); } }
public static void WriteWCellInfo() { using (var writer = new CodeFileWriter(Path.Combine(ToolConfig.WCellConstantsRoot, "WCellInfo.cs"), "WCell.Constants", "WCellInfo", "static class", "", "WCell.Constants.Misc")) { writer.WriteSummary(@"The official codename of the current WCell build"); writer.WriteLine("public const string Codename = \"Amethyst\";"); writer.WriteLine(); writer.WriteSummary(@"The color of the current WCell codename"); writer.WriteLine(@"public const ChatColor CodenameColor = ChatColor.Purple;"); writer.WriteLine(); writer.WriteSummary("The version of the WoW Client that is currently supported."); writer.WriteLine("public static readonly ClientVersion RequiredVersion = new ClientVersion({0}, {1}, {2}, {3});", WoWFile.Version.Major, WoWFile.Version.Minor, WoWFile.Version.Revision, WoWFile.Version.Build); writer.WriteLine(); } }