Also prints out the baseline type in outbound packets

This commit is contained in:
Obique
2014-12-06 00:55:38 -06:00
committed by Obique
parent a7ba4c9d71
commit f27803b96f
+5 -1
View File
@@ -2,6 +2,7 @@ package services;
import network.packets.soe.DataChannelA;
import network.packets.swg.SWGPacket;
import network.packets.swg.zone.baselines.Baseline;
import intents.InboundPacketIntent;
import intents.OutboundPacketIntent;
import resources.control.Intent;
@@ -53,7 +54,10 @@ public class CoreManager extends Manager {
System.out.println("OUT " + out.getNetworkId() + " \t" + out.getPacket().getClass().getSimpleName());
if (out.getPacket() instanceof DataChannelA) {
for (SWGPacket p : ((DataChannelA) out.getPacket()).getPackets()) {
System.out.println(" " + p.getClass().getSimpleName());
if (p instanceof Baseline)
System.out.println(" Baseline " + ((Baseline)p).getType() + " " + ((Baseline)p).getNum());
else
System.out.println(" " + p.getClass().getSimpleName());
}
}
}