mirror of
https://github.com/tobspr/shapez.io.git
synced 2025-12-13 10:11:50 +00:00
some cleanup
This commit is contained in:
parent
d01341bb4f
commit
4dbbff9477
@ -103,8 +103,6 @@ export class ItemAcceptorComponent extends Component {
|
||||
tryAcceptItem(slotIndex, direction, item, startProgress = 0.0) {
|
||||
const slot = this.slots[slotIndex];
|
||||
|
||||
//@SENSETODO see if this works for buildings like hub
|
||||
|
||||
if (this.completedInputs.has(slotIndex) || (slot.filter && slot.filter != item.getItemType())) {
|
||||
return false;
|
||||
}
|
||||
|
||||
@ -85,37 +85,4 @@ export class ItemAcceptorSystem extends GameSystemWithFilter {
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @param {InputCompletedArgs} args
|
||||
*/
|
||||
input_ITEMPROCESSOR(args) {}
|
||||
//@SENSETODO this isn't set up like it should be yet
|
||||
|
||||
/**
|
||||
* @param {InputCompletedArgs} args
|
||||
*/
|
||||
input_HUB(args) {
|
||||
const item = /** @type {ShapeItem} */ (args.item);
|
||||
assert(item instanceof ShapeItem, "Input for hub is not a shape");
|
||||
|
||||
this.root.hubGoals.handleDefinitionDelivered(item.definition);
|
||||
|
||||
const acceptorComp = args.entity.components.ItemAcceptor;
|
||||
acceptorComp.inputs.delete(args.slotIndex);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param {InputCompletedArgs} args
|
||||
*/
|
||||
input_TRASH(args) {
|
||||
// just remove the item
|
||||
const acceptorComp = args.entity.components.ItemAcceptor;
|
||||
acceptorComp.inputs.delete(args.slotIndex);
|
||||
args.entity.root.signals.achievementCheck.dispatch(ACHIEVEMENTS.trash1000, 1);
|
||||
}
|
||||
|
||||
//storage
|
||||
|
||||
//underground belt
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user