mirror of
https://github.com/ProjectSWGCore/Holocore.git
synced 2026-10-05 20:13:20 -04:00
Added galaxy concept to the managers/services
This commit is contained in:
@@ -3,6 +3,7 @@ package services.galaxy;
|
||||
import intents.GalacticIntent;
|
||||
import intents.GalacticPacketIntent;
|
||||
import intents.InboundPacketIntent;
|
||||
import resources.Galaxy;
|
||||
import resources.control.Intent;
|
||||
import resources.control.Manager;
|
||||
import services.objects.ObjectManager;
|
||||
@@ -16,8 +17,10 @@ public class GalacticManager extends Manager {
|
||||
private PlayerManager playerManager;
|
||||
private GameManager gameManager;
|
||||
private Intent prevPacketIntent;
|
||||
private Galaxy galaxy;
|
||||
|
||||
public GalacticManager() {
|
||||
public GalacticManager(Galaxy g) {
|
||||
this.galaxy = g;
|
||||
objectManager = new ObjectManager();
|
||||
playerManager = new PlayerManager();
|
||||
gameManager = new GameManager();
|
||||
@@ -69,6 +72,7 @@ public class GalacticManager extends Manager {
|
||||
private void prepareGalacticIntent(GalacticIntent i) {
|
||||
i.setObjectManager(objectManager);
|
||||
i.setPlayerManager(playerManager);
|
||||
i.setGalaxy(galaxy);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user