Browse Source

More itembase refactor work

combat-2
MagicBot 8 months ago
parent
commit
ebaf68bca4
  1. 18
      src/engine/net/client/msg/TransferItemFromInventoryToEquipMsg.java

18
src/engine/net/client/msg/TransferItemFromInventoryToEquipMsg.java

@ -23,7 +23,7 @@ public class TransferItemFromInventoryToEquipMsg extends ClientNetMsg {
private int sourceType; private int sourceType;
private int sourceID; private int sourceID;
private int pad1; private int pad1;
private int itemBase; private int templateID;
private int type; private int type;
private int objectUUID; private int objectUUID;
@ -43,7 +43,7 @@ public class TransferItemFromInventoryToEquipMsg extends ClientNetMsg {
this.sourceType = source.getObjectType().ordinal(); this.sourceType = source.getObjectType().ordinal();
this.sourceID = source.getObjectUUID(); this.sourceID = source.getObjectUUID();
this.slot = slot; this.slot = slot;
this.itemBase = itemBaseID; this.templateID = itemBaseID;
} }
/** /**
@ -64,7 +64,7 @@ public class TransferItemFromInventoryToEquipMsg extends ClientNetMsg {
this.sourceType = reader.getInt(); this.sourceType = reader.getInt();
this.sourceID = reader.getInt(); this.sourceID = reader.getInt();
pad1 = reader.getInt(); pad1 = reader.getInt();
itemBase = reader.getInt(); templateID = reader.getInt();
type = reader.getInt(); type = reader.getInt();
objectUUID = reader.getInt(); objectUUID = reader.getInt();
slot = Enum.EquipSlotType.values()[reader.getInt()]; slot = Enum.EquipSlotType.values()[reader.getInt()];
@ -81,7 +81,7 @@ public class TransferItemFromInventoryToEquipMsg extends ClientNetMsg {
writer.putInt(this.sourceType); writer.putInt(this.sourceType);
writer.putInt(this.sourceID); writer.putInt(this.sourceID);
writer.putInt(pad1); writer.putInt(pad1);
writer.putInt(itemBase); writer.putInt(templateID);
writer.putInt(type); writer.putInt(type);
writer.putInt(objectUUID); writer.putInt(objectUUID);
writer.putInt(slot.ordinal()); writer.putInt(slot.ordinal());
@ -93,15 +93,15 @@ public class TransferItemFromInventoryToEquipMsg extends ClientNetMsg {
/** /**
* @return the itemBase * @return the itemBase
*/ */
public int getItemBase() { public int getTemplateID() {
return itemBase; return templateID;
} }
/** /**
* @param itemBase the itemBase to set * @param templateID the itemBase to set
*/ */
public void setItemBase(int itemBase) { public void setTemplateID(int templateID) {
this.itemBase = itemBase; this.templateID = templateID;
} }
/** /**

Loading…
Cancel
Save