mirror of
https://github.com/tobspr/shapez.io.git
synced 2024-10-27 20:34:29 +00:00
Make belt readers store their last read item
This commit is contained in:
parent
9b8745535b
commit
3e0f42e47c
@ -1,5 +1,6 @@
|
|||||||
import { Component } from "../component";
|
import { Component } from "../component";
|
||||||
import { BaseItem } from "../base_item";
|
import { BaseItem } from "../base_item";
|
||||||
|
import { typeItemSingleton } from "../item_resolver";
|
||||||
|
|
||||||
export class BeltReaderComponent extends Component {
|
export class BeltReaderComponent extends Component {
|
||||||
static getId() {
|
static getId() {
|
||||||
@ -10,6 +11,12 @@ export class BeltReaderComponent extends Component {
|
|||||||
return new BeltReaderComponent();
|
return new BeltReaderComponent();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static getSchema() {
|
||||||
|
return {
|
||||||
|
lastItem: typeItemSingleton,
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
constructor() {
|
constructor() {
|
||||||
super();
|
super();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user