mirror of
https://github.com/2OOP/pism.git
synced 2026-02-04 10:54:51 +00:00
Fixed unknown names, Assetmanager now has initializeloader
This commit is contained in:
@@ -1,7 +1,8 @@
|
||||
package org.toop;
|
||||
|
||||
import org.toop.app.gui.LocalServerSelector;
|
||||
import org.toop.framework.assets.AssetManager;
|
||||
import org.toop.framework.asset.AssetLoader;
|
||||
import org.toop.framework.asset.AssetManager;
|
||||
import org.toop.framework.audio.SoundManager;
|
||||
import org.toop.framework.audio.events.AudioEvents;
|
||||
import org.toop.framework.eventbus.EventFlow;
|
||||
@@ -15,9 +16,10 @@ import java.nio.file.NotDirectoryException;
|
||||
|
||||
public class Main {
|
||||
static void main(String[] args) throws IOException, UnsupportedAudioFileException, LineUnavailableException, InterruptedException {
|
||||
var a = new AssetManager(new File("app/src/main/resources/assets"));
|
||||
|
||||
AssetManager.initializeLoader(new File("app/src/main/resources/assets"));
|
||||
var b = new NetworkingClientManager();
|
||||
var c = new SoundManager(a);
|
||||
var c = new SoundManager();
|
||||
|
||||
new EventFlow().addPostEvent(new AudioEvents.PlayAudio("mainmenu.wav", true)).asyncPostEvent();
|
||||
new EventFlow().addPostEvent(new AudioEvents.PlayAudio("sadtrombone.wav", true)).asyncPostEvent();
|
||||
@@ -31,5 +33,6 @@ public class Main {
|
||||
javax.swing.SwingUtilities.invokeLater(LocalServerSelector::new);
|
||||
}
|
||||
|
||||
private static void initSystems() throws NetworkingInitializationException, NotDirectoryException {}
|
||||
private static void initSystems() throws NetworkingInitializationException, NotDirectoryException {
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user