mirror of
https://github.com/ProjectSWGCore/NGECore2.git
synced 2026-08-03 04:16:19 -04:00
Update SWGList, add gild deltas, play title delta
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user