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;
 }
Exemplo n.º 2
0
        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));
        }
Exemplo n.º 3
0
 public ClientSoundAutoStopSystem(SoundContext soundContext, ISoundPlayer soundPlayer, SoundParentController soundParentController)
 {
     _playingSoundGroup     = soundContext.GetGroup(SoundMatcher.Playing);
     _soundPlayer           = soundPlayer;
     _soundParentController = soundParentController;
 }