1
0
mirror of https://github.com/tobspr/shapez.io.git synced 2026-03-02 03:39:21 +00:00

Implement concept of energy consumption

This commit is contained in:
tobspr
2020-07-02 17:43:47 +02:00
parent a977d4f9f4
commit a77911263d
22 changed files with 594 additions and 385 deletions

View File

@@ -65,8 +65,10 @@ export class MetaAdvancedProcessorBuilding extends MetaBuilding {
entity.addComponent(
new EnergyConsumerComponent({
bufferSize: 3,
perCharge: 1,
perCharge: 0.25,
batteryPosition: new Vector(4, 6.5),
acceptorSlotIndex: 1,
ejectorSlotIndex: 1,
})
);
@@ -90,7 +92,7 @@ export class MetaAdvancedProcessorBuilding extends MetaBuilding {
new ItemAcceptorComponent({
slots: [
{
pos: new Vector(0, 0),
pos: new Vector(0, 1),
directions: [enumDirection.left],
filter: enumItemType.shape,
},