RobustToolbox
RobustToolbox copied to clipboard
Make AudioSystem accept nullable SoundSpecifier
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