Started work on buffs, made swglist persistent, fixed waypoint position in cells

This commit is contained in:
Light2
2013-08-05 17:12:06 +02:00
parent 7ed18ce86c
commit 6c88d0e82a
10 changed files with 401 additions and 81 deletions
@@ -28,15 +28,21 @@ import java.nio.ByteOrder;
import org.apache.mina.core.buffer.IoBuffer;
import org.apache.mina.core.buffer.SimpleBufferAllocator;
import com.sleepycat.persist.model.NotPersistent;
import com.sleepycat.persist.model.Persistent;
import resources.common.Opcodes;
import engine.resources.objects.SWGObject;
@Persistent
public abstract class ObjectMessageBuilder {
public SWGObject object;
public SimpleBufferAllocator bufferPool = new SimpleBufferAllocator();
public SWGObject object;
@NotPersistent
public SimpleBufferAllocator bufferPool = new SimpleBufferAllocator();
public IoBuffer createBaseline(String objectType, byte viewType, IoBuffer data, int size) {
IoBuffer buffer = bufferPool.allocate(23 + size, false).order(ByteOrder.LITTLE_ENDIAN);