public void StopStationEventMusic(EntityUid source, StationEventMusicType type) { var msg = new StopStationEventMusic(type); var filter = GetStationAndPvs(source); RaiseNetworkEvent(msg, filter); }
public void DispatchStationEventMusic(EntityUid source, SoundSpecifier sound, StationEventMusicType type) { var audio = AudioParams.Default.WithVolume(-8); var soundFile = sound.GetSound(); var msg = new StationEventMusicEvent(soundFile, type, audio); var filter = GetStationAndPvs(source); RaiseNetworkEvent(msg, filter); }
public StopStationEventMusic(StationEventMusicType type) { Type = type; }
public StationEventMusicEvent(string filename, StationEventMusicType type, AudioParams?audioParams = null) : base( filename, audioParams) { Type = type; }