@irysius/grid-math
Version:
Tools to assist with grid math and algorithms
18 lines (17 loc) • 610 B
JavaScript
(function (factory) {
if (typeof module === "object" && typeof module.exports === "object") {
var v = factory(require, exports);
if (v !== undefined) module.exports = v;
}
else if (typeof define === "function" && define.amd) {
define(["require", "exports"], factory);
}
})(function (require, exports) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.TYPE = 'world';
function create(x, y, width, height) {
return { x, y, width, height, type: 'world' };
}
exports.create = create;
});