component.auralsystem
Plays sound effects of entities.
- class AuralSystem: component.system.System;
Plays sound effects of entities.
- this(EntitySystem entitySystem, GameTime gameTime, SoundSystem soundSystem, ref const(Rect!(float)) soundArea);
Construct an AuralSystem.
Parameters:EntitySystem entitySystem Entity system whose data we're processing. GameTime gameTime Game time subsystem. SoundSystem soundSystem Sound system used to play sounds. const(Rect!(float)) soundArea Area in which we can hear sounds. - void update();
Check entities' sound playback conditions and play sounds.