public SoundResourcesLoadSystem(Contexts contexts, SoundParentController soundParentController) : base(contexts.sound) { _soundPlayer = contexts.session.clientSessionObjects.SoundPlayer; _timeManager = contexts.session.clientSessionObjects.TimeManager; _playerContext = contexts.player; _bulletContext = contexts.bullet; _soundParentController = soundParentController; }
public ClientSoundModule(Contexts contexts) { var soundParentController = new SoundParentController(contexts); AddSystem(new SoundResourcesLoadSystem(contexts, soundParentController)); AddSystem(new SoundCleanUpSystem(contexts)); AddSystem(new SoundPlaySystem(contexts)); AddSystem(new ClientSoundAutoStopSystem(contexts.sound, contexts.session.clientSessionObjects.SoundPlayer, soundParentController)); AddSystem(new SoundLimitSystem(contexts.sound)); }
public ClientSoundAutoStopSystem(SoundContext soundContext, ISoundPlayer soundPlayer, SoundParentController soundParentController) { _playingSoundGroup = soundContext.GetGroup(SoundMatcher.Playing); _soundPlayer = soundPlayer; _soundParentController = soundParentController; }