forked from MagicBane/Server
Handlers created for vault interactions
This commit is contained in:
+11
-11
@@ -22,7 +22,7 @@ import engine.net.client.Protocol;
|
||||
* @author Eighty
|
||||
*/
|
||||
|
||||
public class TransferItemFromVaultToInventoryMsg extends ClientNetMsg {
|
||||
public class ItemFromVaultMsg extends ClientNetMsg {
|
||||
|
||||
private int unknown01;
|
||||
private int unknown02;
|
||||
@@ -35,9 +35,9 @@ public class TransferItemFromVaultToInventoryMsg extends ClientNetMsg {
|
||||
/**
|
||||
* This is the general purpose constructor
|
||||
*/
|
||||
public TransferItemFromVaultToInventoryMsg(int unknown01, int unknown02,
|
||||
long playerCompID, int type, int objectUUID, int unknown03, int unknown04) {
|
||||
super(Protocol.TRANSFERITEMFROMVAULTTOINVENTORY);
|
||||
public ItemFromVaultMsg(int unknown01, int unknown02,
|
||||
long playerCompID, int type, int objectUUID, int unknown03, int unknown04) {
|
||||
super(Protocol.ITEMFROMVAULT);
|
||||
this.unknown01 = unknown01;
|
||||
this.unknown02 = unknown02;
|
||||
this.playerCompID = playerCompID;
|
||||
@@ -47,8 +47,8 @@ public class TransferItemFromVaultToInventoryMsg extends ClientNetMsg {
|
||||
this.unknown04 = unknown04;
|
||||
}
|
||||
|
||||
public TransferItemFromVaultToInventoryMsg(TransferItemFromInventoryToVaultMsg msg) {
|
||||
super(Protocol.TRANSFERITEMFROMVAULTTOINVENTORY);
|
||||
public ItemFromVaultMsg(ItemToVaultMsg msg) {
|
||||
super(Protocol.ITEMFROMVAULT);
|
||||
this.playerCompID = msg.getPlayerCompID();
|
||||
this.unknown01 = msg.getUnknown01();
|
||||
this.unknown02 = msg.getUnknown02();
|
||||
@@ -61,8 +61,8 @@ public class TransferItemFromVaultToInventoryMsg extends ClientNetMsg {
|
||||
/**
|
||||
* This is the general purpose constructor
|
||||
*/
|
||||
public TransferItemFromVaultToInventoryMsg() {
|
||||
super(Protocol.TRANSFERITEMFROMVAULTTOINVENTORY);
|
||||
public ItemFromVaultMsg() {
|
||||
super(Protocol.ITEMFROMVAULT);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -71,9 +71,9 @@ public class TransferItemFromVaultToInventoryMsg extends ClientNetMsg {
|
||||
* past the limit) then this constructor Throws that Exception to the
|
||||
* caller.
|
||||
*/
|
||||
public TransferItemFromVaultToInventoryMsg(AbstractConnection origin,
|
||||
ByteBufferReader reader) {
|
||||
super(Protocol.TRANSFERITEMFROMVAULTTOINVENTORY, origin, reader);
|
||||
public ItemFromVaultMsg(AbstractConnection origin,
|
||||
ByteBufferReader reader) {
|
||||
super(Protocol.ITEMFROMVAULT, origin, reader);
|
||||
}
|
||||
|
||||
/**
|
||||
+8
-8
@@ -22,7 +22,7 @@ import engine.net.client.Protocol;
|
||||
* @author Eighty
|
||||
*/
|
||||
|
||||
public class TransferItemFromInventoryToVaultMsg extends ClientNetMsg {
|
||||
public class ItemToVaultMsg extends ClientNetMsg {
|
||||
|
||||
private int unknown01;
|
||||
private int unknown02;
|
||||
@@ -35,9 +35,9 @@ public class TransferItemFromInventoryToVaultMsg extends ClientNetMsg {
|
||||
/**
|
||||
* This is the general purpose constructor
|
||||
*/
|
||||
public TransferItemFromInventoryToVaultMsg(long playerCompID,
|
||||
int unknown01, int unknown02, int type, int objectUUID, int unknown03,
|
||||
int unknown04) {
|
||||
public ItemToVaultMsg(long playerCompID,
|
||||
int unknown01, int unknown02, int type, int objectUUID, int unknown03,
|
||||
int unknown04) {
|
||||
super(Protocol.ITEMTOVAULT);
|
||||
this.playerCompID = playerCompID;
|
||||
this.unknown01 = unknown01;
|
||||
@@ -48,7 +48,7 @@ public class TransferItemFromInventoryToVaultMsg extends ClientNetMsg {
|
||||
this.unknown04 = unknown04;
|
||||
}
|
||||
|
||||
public TransferItemFromInventoryToVaultMsg(TransferItemFromVaultToInventoryMsg msg) {
|
||||
public ItemToVaultMsg(ItemFromVaultMsg msg) {
|
||||
super(Protocol.ITEMTOVAULT);
|
||||
this.playerCompID = msg.getPlayerCompID();
|
||||
this.unknown01 = msg.getUnknown01();
|
||||
@@ -62,7 +62,7 @@ public class TransferItemFromInventoryToVaultMsg extends ClientNetMsg {
|
||||
/**
|
||||
* This is the general purpose constructor
|
||||
*/
|
||||
public TransferItemFromInventoryToVaultMsg() {
|
||||
public ItemToVaultMsg() {
|
||||
super(Protocol.ITEMTOVAULT);
|
||||
}
|
||||
|
||||
@@ -72,8 +72,8 @@ public class TransferItemFromInventoryToVaultMsg extends ClientNetMsg {
|
||||
* past the limit) then this constructor Throws that Exception to the
|
||||
* caller.
|
||||
*/
|
||||
public TransferItemFromInventoryToVaultMsg(AbstractConnection origin,
|
||||
ByteBufferReader reader) {
|
||||
public ItemToVaultMsg(AbstractConnection origin,
|
||||
ByteBufferReader reader) {
|
||||
super(Protocol.ITEMTOVAULT, origin, reader);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user