/// <summary> /// Add a soundof type ICutlassSound /// </summary> /// <param name="newSound"></param> public static SoundId AddSound(ICutlassSound newSound) { SoundId soundId; lock (_SoundIdLock) { soundId = _NextSoundId++; } _Sounds.Add(soundId, newSound); if (_Initialized) newSound.LoadContent(); return soundId; }
/// <summary> /// Add a soundof type ICutlassSound /// </summary> /// <param name="newSound"></param> public static SoundId AddSound(ICutlassSound newSound) { SoundId soundId; lock (_SoundIdLock) { soundId = _NextSoundId++; } _Sounds.Add(soundId, newSound); if (_Initialized) { newSound.LoadContent(); } return(soundId); }