UNPKG

mm_os

Version:

MM_OS服务端架构,用于快速构建应用程序,支持网站建设、小程序后台、AI应用、物联网(IOT/AIOT)、游戏服务端等多种场景。

28 lines (26 loc) 401 B
const { Drive } = require('mm_machine'); /** * 地图类 */ class Map extends Drive { static config = { id: 0, name: '', description: '', width: 0, height: 0, tiles: [], }; /** * 构造函数 * @param {object} config 配置参数 */ constructor(config) { super({ ...Map.config, ...config || {}}); } } exports = { Map };