mirror of
https://github.com/2OOP/pism.git
synced 2026-02-04 19:04:49 +00:00
Made all of the updated classes more generic for better flexibility in unittesting
This commit is contained in:
@@ -10,6 +10,8 @@ import org.toop.framework.networking.NetworkingClientManager;
|
||||
import org.toop.framework.networking.NetworkingInitializationException;
|
||||
import org.toop.framework.resource.ResourceLoader;
|
||||
import org.toop.framework.resource.ResourceManager;
|
||||
import org.toop.framework.resource.resources.MusicAsset;
|
||||
import org.toop.framework.resource.resources.SoundEffectAsset;
|
||||
|
||||
public final class Main {
|
||||
static void main(String[] args) {
|
||||
@@ -23,7 +25,7 @@ public final class Main {
|
||||
new Thread(() -> {
|
||||
AudioEventListener<?, ?> a =
|
||||
new AudioEventListener<>(
|
||||
new MusicManager(),
|
||||
new MusicManager<>(MusicAsset.class),
|
||||
new SoundEffectManager(),
|
||||
new AudioVolumeManager()
|
||||
); a.initListeners();
|
||||
|
||||
@@ -126,6 +126,7 @@ public final class App extends Application {
|
||||
}
|
||||
|
||||
public static void quit() {
|
||||
new EventFlow().addPostEvent(new AudioEvents.StopAudioManager()).postEvent();
|
||||
stage.close();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user