Exemple #1
0
        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);
        }
Exemple #2
0
 public static void Notify_SoundEvent(SoundDef def, SoundInfo info)
 {
     if (DebugViewSettings.writeSoundEventsRecord)
     {
         string str  = (def == null) ? "null: " : ((!def.isUndefined) ? (def.sustain ? "SustainerSpawn: " : "OneShot: ") : "Undefined: ");
         string str2 = (def != null) ? def.defName : "null";
         CreateRecord(str + str2 + " - " + info.ToString());
     }
 }
Exemple #3
0
        public static void Notify_SustainerEnded(Sustainer sustainer, SoundInfo info)
        {
            string str = "SustainerEnd: " + sustainer.def.defName + " - " + info.ToString();

            DebugSoundEventsLog.CreateRecord(str);
        }
Exemple #4
0
 public static void Notify_SustainerEnded(Sustainer sustainer, SoundInfo info)
 {
     CreateRecord("SustainerEnd: " + sustainer.def.defName + " - " + info.ToString());
 }