Handler created for ViewResourcesMsg

This commit is contained in:
2024-03-29 06:14:19 -04:00
parent fbec206389
commit 80c11db80b
8 changed files with 83 additions and 48 deletions
@@ -18,7 +18,7 @@ import engine.net.client.Protocol;
import engine.objects.*;
public class ViewResourcesMessage extends ClientNetMsg {
public class ViewResourcesMsg extends ClientNetMsg {
//resource hashes
//0001240F
@@ -55,7 +55,7 @@ public class ViewResourcesMessage extends ClientNetMsg {
* This is the general purpose constructor.
*/
public ViewResourcesMessage(PlayerCharacter player) {
public ViewResourcesMsg(PlayerCharacter player) {
super(Protocol.VIEWRESOURCES);
this.guild = null;
this.player = player;
@@ -64,7 +64,7 @@ public class ViewResourcesMessage extends ClientNetMsg {
/**
* This constructor is used by NetMsgFactory. It attempts to deserialize the ByteBuffer into a message. If a BufferUnderflow occurs (based on reading past the limit) then this constructor Throws that Exception to the caller.
*/
public ViewResourcesMessage(AbstractConnection origin, ByteBufferReader reader) {
public ViewResourcesMsg(AbstractConnection origin, ByteBufferReader reader) {
super(Protocol.VIEWRESOURCES, origin, reader);
}