Update SWGList, add gild deltas, play title delta

This commit is contained in:
Treeku
2013-07-24 01:50:51 +01:00
parent 04dabef565
commit a0afc196f4
18 changed files with 1092 additions and 340 deletions
+25 -2
View File
@@ -1,7 +1,30 @@
package resources.objects;
public interface ListObject {
import java.nio.ByteBuffer;
import org.apache.mina.core.buffer.SimpleBufferAllocator;
import resources.common.StringUtilities;
public abstract class ListObject implements IListObject {
public byte[] getBytes();
protected final Object objectMutex = new Object();
public SimpleBufferAllocator bufferPool = new SimpleBufferAllocator();
protected String getAsciiString(ByteBuffer buffer) {
return StringUtilities.getAsciiString(buffer);
}
protected String getUnicodeString(ByteBuffer buffer) {
return StringUtilities.getUnicodeString(buffer);
}
protected byte[] getAsciiString(String string) {
return StringUtilities.getAsciiString(string);
}
protected byte[] getUnicodeString(String string) {
return StringUtilities.getUnicodeString(string);
}
}