public static void Notify_SoundEvent(SoundDef def, SoundInfo info) { if (!DebugViewSettings.writeSoundEventsRecord) { return; } string str; if (def == null) { str = "null: "; } else if (def.isUndefined) { str = "Undefined: "; } else { str = ((!def.sustain) ? "OneShot: " : "SustainerSpawn: "); } string str2 = (def == null) ? "null" : def.defName; string str3 = str + str2 + " - " + info.ToString(); DebugSoundEventsLog.CreateRecord(str3); }
public static void Notify_SustainerEnded(Sustainer sustainer, SoundInfo info) { string str = "SustainerEnd: " + sustainer.def.defName + " - " + info.ToString(); DebugSoundEventsLog.CreateRecord(str); }