Renderer/src/main/java/electrosphere/engine/signal/SignalService.java
austin b892bea3d3
Some checks failed
studiorailgun/Renderer/pipeline/head There was a failure building this commit
Fix backing out to main menu
2024-11-20 19:12:18 -05:00

26 lines
600 B
Java

package electrosphere.engine.signal;
import java.util.Collection;
import electrosphere.engine.service.Service;
import electrosphere.engine.signal.Signal.SignalType;
/**
* A service that can receive a signal
*/
public interface SignalService extends Service {
/**
* Posts a signal to the service
* @param signal The signal
*/
public void post(Signal signal);
/**
* Gets the collection of signal types that this service wants to subscribe to
* @return The collection of signal types
*/
public Collection<SignalType> getSubscriptionTargets();
}