mirror of
https://github.com/ProjectSWGCore/NGECore2.git
synced 2026-10-13 03:13:26 -04:00
Removed unused mutator methods from SetWaypointColor
This commit is contained in:
@@ -21,36 +21,30 @@
|
||||
******************************************************************************/
|
||||
package protocol.swg;
|
||||
|
||||
import java.io.UnsupportedEncodingException;
|
||||
import java.nio.ByteBuffer;
|
||||
import java.nio.charset.StandardCharsets;
|
||||
|
||||
import org.apache.mina.core.buffer.IoBuffer;
|
||||
|
||||
public class SetWaypointColor extends SWGMessage {
|
||||
|
||||
|
||||
private long objectId;
|
||||
private String color;
|
||||
|
||||
|
||||
public SetWaypointColor() {
|
||||
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public void deserialize(IoBuffer data) {
|
||||
//data.getShort();
|
||||
//data.getInt();
|
||||
objectId = data.getLong();
|
||||
short size = data.getShort();
|
||||
try {
|
||||
color = new String(ByteBuffer.allocate(size).put(data.array(), data.position(), size).array(), "US-ASCII");
|
||||
} catch (UnsupportedEncodingException e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
|
||||
color = new String(ByteBuffer.allocate(size).put(data.array(), data.position(), size).array(), StandardCharsets.US_ASCII);
|
||||
}
|
||||
|
||||
@Override
|
||||
public IoBuffer serialize() {
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
@@ -58,16 +52,8 @@ public class SetWaypointColor extends SWGMessage {
|
||||
return objectId;
|
||||
}
|
||||
|
||||
public void setObjectId(long objectId) {
|
||||
this.objectId = objectId;
|
||||
}
|
||||
|
||||
public String getColor() {
|
||||
return color;
|
||||
}
|
||||
|
||||
public void setColor(String color) {
|
||||
this.color = color;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user