Better conveyor physics / Performance test maps / Unit inventory begin

This commit is contained in:
Anuken
2018-04-09 20:25:08 -04:00
parent 6967093689
commit 5b11875a5a
17 changed files with 59 additions and 26 deletions
@@ -0,0 +1,11 @@
package io.anuke.mindustry.resource;
public class AmmoEntry{
public AmmoType type;
public int amount;
public AmmoEntry(AmmoType type, int amount) {
this.type = type;
this.amount = amount;
}
}
@@ -53,7 +53,7 @@ public class AmmoType {
return allTypes;
}
public static AmmoType getByID(byte id){
public static AmmoType getByID(int id){
return allTypes.get(id);
}
}
@@ -3,7 +3,6 @@ package io.anuke.mindustry.resource;
public class ItemStack{
public Item item;
public int amount;
public float pos;
public ItemStack(Item item, int amount){
this.item = item;
@@ -0,0 +1,15 @@
package io.anuke.mindustry.resource;
public class LiquidStack {
public Liquid liquid;
public float amount;
public LiquidStack(Liquid liquid, float amount){
this.liquid = liquid;
this.amount = amount;
}
public boolean equals(LiquidStack other){
return other != null && other.liquid == liquid && other.amount == amount;
}
}