ymir-js
Version:
This toolkit is created to make it easier for you to develop games like chess, checkers, go, match 3 puzzle and more. It is still under development.
17 lines (16 loc) • 513 B
JavaScript
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var Item = /** @class */ (function () {
function Item(item) {
this.lock = false;
this.selected = false;
this.movement = {};
this.data = item.data;
this.name = item.name || this.name;
this.lock = item.lock || this.lock;
this.selected = item.selected || this.selected;
this.movement = item.movement || this.movement;
}
return Item;
}());
exports.default = Item;