mirror of
https://github.com/ProjectSWGCore/Holocore.git
synced 2026-10-05 20:13:20 -04:00
Implemented GalacticPacketIntents for incoming packets
This commit is contained in:
@@ -5,7 +5,7 @@ import java.util.concurrent.ConcurrentHashMap;
|
||||
|
||||
import network.packets.Packet;
|
||||
import network.packets.swg.login.ClientIdMsg;
|
||||
import intents.InboundPacketIntent;
|
||||
import intents.GalacticPacketIntent;
|
||||
import resources.control.Intent;
|
||||
import resources.control.Manager;
|
||||
import resources.network.ServerType;
|
||||
@@ -30,14 +30,14 @@ public class PlayerManager extends Manager {
|
||||
|
||||
@Override
|
||||
public boolean initialize() {
|
||||
registerForIntent(InboundPacketIntent.TYPE);
|
||||
registerForIntent(GalacticPacketIntent.TYPE);
|
||||
return super.initialize();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onIntentReceived(Intent i) {
|
||||
if (i instanceof InboundPacketIntent) {
|
||||
InboundPacketIntent ipi = (InboundPacketIntent) i;
|
||||
if (i instanceof GalacticPacketIntent) {
|
||||
GalacticPacketIntent ipi = (GalacticPacketIntent) i;
|
||||
Packet packet = ipi.getPacket();
|
||||
ServerType type = ipi.getServerType();
|
||||
long networkId = ipi.getNetworkId();
|
||||
|
||||
Reference in New Issue
Block a user