RobustToolbox icon indicating copy to clipboard operation
RobustToolbox copied to clipboard

Make AudioSystem accept nullable SoundSpecifier

Open ElectroJr opened this issue 3 years ago • 0 comments
trafficstars

A lot of systems have optional/nullable sound effects, so you quite often see code like

if (component.Sound != null)
    _audioSys.PlayPvs(component.Sound, uid)

So for the sake of convenience, this pr makes it so that audio system can just directly take & check nullable sound specifiers

ElectroJr avatar Aug 14 '22 18:08 ElectroJr