private void AppendAudioClipTypesToHeader(StringBuilder sb, IList<AGS.Types.AudioClipType> clipTypes)
{
sb.AppendLine("enum AudioType {");
bool firstType = true;
foreach (AGS.Types.AudioClipType clipType in clipTypes)
{
string scriptName = clipType.ScriptID;
if (scriptName.Length > 0)
{
if (!firstType)
{
sb.AppendLine(",");
}
sb.Append(" " + scriptName + " = " + clipType.TypeID);
firstType = false;
}
}
if (firstType)
{
// no clip types, make sure the enum has something in it
sb.Append("eDummyAudioType__ = 99 // $AUTOCOMPLETEIGNORE$ ");
}
sb.AppendLine();
sb.AppendLine("};");
}