private void AppendCursorsToHeader(StringBuilder sb, IList<MouseCursor> cursors)
{
sb.AppendLine("enum CursorMode {");
bool firstCursor = true;
foreach (MouseCursor cursor in cursors)
{
string cursorName = cursor.ScriptID;
if (cursorName.Length > 0)
{
if (!firstCursor)
{
sb.AppendLine(",");
}
sb.Append(" " + cursorName + " = " + cursor.ID);
firstCursor = false;
}
}
if (firstCursor)
{
// no cursors, make sure the enum has something in it
sb.Append("eDummyCursor__ = 99 // $AUTOCOMPLETEIGNORE$ ");
}
sb.AppendLine();
sb.AppendLine("};");
}