Handlers created for bank interaction

This commit is contained in:
2024-03-24 09:56:41 -04:00
parent 943d274e5f
commit e971674465
8 changed files with 252 additions and 115 deletions
@@ -22,7 +22,7 @@ import engine.net.client.Protocol;
* @author Eighty
*/
public class TransferItemFromBankToInventoryMsg extends ClientNetMsg {
public class TransferItemFromBankMsg extends ClientNetMsg {
private long playerCompID1;
private long playerCompID2;
@@ -36,9 +36,9 @@ public class TransferItemFromBankToInventoryMsg extends ClientNetMsg {
/**
* This is the general purpose constructor
*/
public TransferItemFromBankToInventoryMsg(long playerCompID1,
long playerCompID2, int type, int objectUUID, int unknown1,
int unknown2, int numItems, byte unknown4) {
public TransferItemFromBankMsg(long playerCompID1,
long playerCompID2, int type, int objectUUID, int unknown1,
int unknown2, int numItems, byte unknown4) {
super(Protocol.TRANSFERITEMFROMBANK);
this.playerCompID1 = playerCompID1;
this.playerCompID2 = playerCompID2;
@@ -50,7 +50,7 @@ public class TransferItemFromBankToInventoryMsg extends ClientNetMsg {
this.unknown4 = unknown4;
}
public TransferItemFromBankToInventoryMsg(TransferItemFromInventoryToBankMsg msg) {
public TransferItemFromBankMsg(TransferItemToBankMsg msg) {
super(Protocol.TRANSFERITEMFROMBANK);
this.playerCompID1 = msg.getPlayerCompID1();
this.playerCompID2 = msg.getPlayerCompID2();
@@ -65,7 +65,7 @@ public class TransferItemFromBankToInventoryMsg extends ClientNetMsg {
/**
* This is the general purpose constructor
*/
public TransferItemFromBankToInventoryMsg() {
public TransferItemFromBankMsg() {
super(Protocol.TRANSFERITEMFROMBANK);
}
@@ -75,8 +75,8 @@ public class TransferItemFromBankToInventoryMsg extends ClientNetMsg {
* past the limit) then this constructor Throws that Exception to the
* caller.
*/
public TransferItemFromBankToInventoryMsg(AbstractConnection origin,
ByteBufferReader reader) {
public TransferItemFromBankMsg(AbstractConnection origin,
ByteBufferReader reader) {
super(Protocol.TRANSFERITEMFROMBANK, origin, reader);
}
@@ -22,7 +22,7 @@ import engine.net.client.Protocol;
* @author Eighty
*/
public class TransferItemFromInventoryToBankMsg extends ClientNetMsg {
public class TransferItemToBankMsg extends ClientNetMsg {
private long playerCompID1;
private long playerCompID2;
@@ -36,9 +36,9 @@ public class TransferItemFromInventoryToBankMsg extends ClientNetMsg {
/**
* This is the general purpose constructor
*/
public TransferItemFromInventoryToBankMsg(long playerCompID1,
long playerCompID2, int type, int objectUUID, int unknown1,
int unknown2, int numItems, byte unknown4) {
public TransferItemToBankMsg(long playerCompID1,
long playerCompID2, int type, int objectUUID, int unknown1,
int unknown2, int numItems, byte unknown4) {
super(Protocol.TRANSFERITEMTOBANK);
this.playerCompID1 = playerCompID1;
this.playerCompID2 = playerCompID2;
@@ -50,7 +50,7 @@ public class TransferItemFromInventoryToBankMsg extends ClientNetMsg {
this.unknown4 = unknown4;
}
public TransferItemFromInventoryToBankMsg(TransferItemFromBankToInventoryMsg msg) {
public TransferItemToBankMsg(TransferItemFromBankMsg msg) {
super(Protocol.TRANSFERITEMTOBANK);
this.playerCompID1 = msg.getPlayerCompID1();
this.playerCompID2 = msg.getPlayerCompID2();
@@ -65,7 +65,7 @@ public class TransferItemFromInventoryToBankMsg extends ClientNetMsg {
/**
* This is the general purpose constructor
*/
public TransferItemFromInventoryToBankMsg() {
public TransferItemToBankMsg() {
super(Protocol.TRANSFERITEMTOBANK);
}
@@ -75,8 +75,8 @@ public class TransferItemFromInventoryToBankMsg extends ClientNetMsg {
* past the limit) then this constructor Throws that Exception to the
* caller.
*/
public TransferItemFromInventoryToBankMsg(AbstractConnection origin,
ByteBufferReader reader) {
public TransferItemToBankMsg(AbstractConnection origin,
ByteBufferReader reader) {
super(Protocol.TRANSFERITEMTOBANK, origin, reader);
}