Re-did the baseline system to keep track of object type

This commit is contained in:
Obique PSWG
2015-06-01 00:22:53 -05:00
parent af1ebf23fc
commit 0c8d101797
18 changed files with 492 additions and 248 deletions
@@ -30,6 +30,7 @@ package resources.objects.waypoint;
import java.nio.ByteBuffer;
import java.nio.ByteOrder;
import network.packets.swg.zone.baselines.Baseline.BaselineType;
import resources.common.CRC;
import resources.network.BaselineBuilder.Encodable;
import resources.objects.intangible.IntangibleObject;
@@ -46,7 +47,7 @@ public class WaypointObject extends IntangibleObject implements Encodable {
private boolean active = true;
public WaypointObject(long objectId) {
super(objectId);
super(objectId, BaselineType.WAYP);
}
@@ -87,7 +88,7 @@ public class WaypointObject extends IntangibleObject implements Encodable {
this.active = active;
}
protected void createObject(Player target) {
public void createObject(Player target) {
// NOTE: Client is never sent a WAYP baseline in NGE, WaypointObject's just go inside the Waypoint List in PLAY.
}