mirror of
https://github.com/ascribe/onion.git
synced 2024-07-01 06:02:12 +02:00
17 lines
298 B
JavaScript
17 lines
298 B
JavaScript
|
import alt from '../alt';
|
||
|
import PieceAction from '../actions/piece_actions';
|
||
|
|
||
|
|
||
|
class PieceStore {
|
||
|
constructor() {
|
||
|
this.piece = {};
|
||
|
this.bindActions(PieceAction);
|
||
|
}
|
||
|
|
||
|
onUpdatePiece(piece) {
|
||
|
this.piece = piece;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
export default alt.createStore(PieceStore);
|