mirror of
https://github.com/ProjectSWGCore/Holocore.git
synced 2026-10-20 10:03:02 -04:00
Major refactor to the way locations are updated and buildouts are loaded
This commit is contained in:
@@ -27,7 +27,6 @@
|
||||
***********************************************************************************/
|
||||
package resources.objects.waypoint;
|
||||
|
||||
import com.projectswg.common.data.location.Location;
|
||||
import com.projectswg.common.data.location.Terrain;
|
||||
import com.projectswg.common.network.NetBuffer;
|
||||
import com.projectswg.common.network.NetBufferStream;
|
||||
@@ -110,14 +109,13 @@ public class WaypointObject extends IntangibleObject implements OutOfBandData {
|
||||
@Override
|
||||
public void decode(NetBuffer data) {
|
||||
data.getInt();
|
||||
Location loc = new Location(data.getFloat(), data.getFloat(), data.getFloat(), null);
|
||||
setPosition(data.getFloat(), data.getFloat(), data.getFloat());
|
||||
cellId = data.getLong();
|
||||
loc.setTerrain(Terrain.getTerrainFromCrc(data.getInt()));
|
||||
setTerrain(Terrain.getTerrainFromCrc(data.getInt()));
|
||||
name = data.getUnicode();
|
||||
data.getLong(); // objectId
|
||||
color = WaypointColor.valueOf(data.getByte());
|
||||
active = data.getBoolean();
|
||||
setLocation(loc);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user