|
|
@ -61,7 +61,7 @@ public class ArcViewAssetTransactionsMsg extends ClientNetMsg { |
|
|
|
|
|
|
|
|
|
|
|
public void configure() { |
|
|
|
public void configure() { |
|
|
|
|
|
|
|
|
|
|
|
warehouseBuilding = BuildingManager.getBuilding(this.warehouse.buildingUID); |
|
|
|
warehouseBuilding = BuildingManager.getBuilding(this.warehouse.building.getObjectUUID()); |
|
|
|
transactions = new ArrayList<>(50); |
|
|
|
transactions = new ArrayList<>(50); |
|
|
|
|
|
|
|
|
|
|
|
if (this.warehouse.transactions.size() > 150) { |
|
|
|
if (this.warehouse.transactions.size() > 150) { |
|
|
@ -78,7 +78,7 @@ public class ArcViewAssetTransactionsMsg extends ClientNetMsg { |
|
|
|
protected void _serialize(ByteBufferWriter writer) throws SerializationException { |
|
|
|
protected void _serialize(ByteBufferWriter writer) throws SerializationException { |
|
|
|
|
|
|
|
|
|
|
|
writer.putInt(this.transactionID); |
|
|
|
writer.putInt(this.transactionID); |
|
|
|
writer.putInt(this.warehouse.buildingUID); |
|
|
|
writer.putInt(this.warehouse.building.getObjectUUID()); |
|
|
|
writer.putInt(transactions.size()); //list Size
|
|
|
|
writer.putInt(transactions.size()); //list Size
|
|
|
|
|
|
|
|
|
|
|
|
for (Transaction transaction : transactions) { |
|
|
|
for (Transaction transaction : transactions) { |
|
|
@ -124,7 +124,7 @@ public class ArcViewAssetTransactionsMsg extends ClientNetMsg { |
|
|
|
writer.putInt(transaction.getTargetUUID()); //ID
|
|
|
|
writer.putInt(transaction.getTargetUUID()); //ID
|
|
|
|
writer.putString(name); //Name of depositer/withdrawler or mine name
|
|
|
|
writer.putString(name); //Name of depositer/withdrawler or mine name
|
|
|
|
writer.putInt(GameObjectType.Building.ordinal()); //Type
|
|
|
|
writer.putInt(GameObjectType.Building.ordinal()); //Type
|
|
|
|
writer.putInt(warehouse.buildingUID); //ID
|
|
|
|
writer.putInt(warehouse.building.getObjectUUID()); //ID
|
|
|
|
writer.putString(warehouseBuilding.getName()); //warehouse
|
|
|
|
writer.putString(warehouseBuilding.getName()); //warehouse
|
|
|
|
writer.putInt(transaction.getTransactionType().getID()); //79,80 withdrew, 81 mine produced, 82 deposit
|
|
|
|
writer.putInt(transaction.getTransactionType().getID()); //79,80 withdrew, 81 mine produced, 82 deposit
|
|
|
|
writer.putInt(transaction.getAmount()); //amount
|
|
|
|
writer.putInt(transaction.getAmount()); //amount
|
|
|
|