typed-screeps:游戏的强大TypeScript声明

时间:2024-05-22 09:45:05
【文件属性】:

文件名称:typed-screeps:游戏的强大TypeScript声明

文件大小:157KB

文件格式:ZIP

更新时间:2024-05-22 09:45:05

TypeScript

打字爬行 游戏Screeps的强健TypeScript声明。 安装 类型定义发布在。 要安装它们,请运行以下命令。 # npm npm install @types/screeps # yarn yarn add @types/screeps 与 此仓库具有更多活动,并且是最新的。 重大更改: 默认情况下键入Memory 。 添加的类型为: CreepMemory FlagMemory SpawnMemory RoomMemory 如果您喜欢类型化内存的想法,但还不准备完全投入使用,则只需要确保为上述四种类型定义一个接口即可。 然后,您可以在以后扩展它们。 例子: interface CreepMemory { [ name : string ] : any } ; interface FlagMemory { [ name : string ] : any } ; in


【文件预览】:
typed-screeps-master
----.gitignore(149B)
----package.json(2KB)
----tslint.json(418B)
----package-lock.json(139KB)
----src()
--------room-position.ts(10KB)
--------store.ts(3KB)
--------mineral.ts(1KB)
--------structure.ts(27KB)
--------market.ts(6KB)
--------room-visual.ts(6KB)
--------nuke.ts(674B)
--------tombstone.ts(1KB)
--------raw-memory.ts(3KB)
--------power-creep.ts(11KB)
--------flag.ts(2KB)
--------source.ts(1KB)
--------creep.ts(15KB)
--------game.ts(4KB)
--------room-object.ts(2KB)
--------resource.ts(733B)
--------deposit.ts(1KB)
--------construction-site.ts(1KB)
--------ruin.ts(821B)
--------memory.ts(402B)
--------literals.ts(18KB)
--------inter-shard-memory.ts(1KB)
--------map.ts(10KB)
--------room-terrain.ts(789B)
--------helpers.ts(13KB)
--------room.ts(13KB)
--------spawn.ts(8KB)
--------path-finder.ts(6KB)
--------constants.ts(29KB)
----.travis.yml(139B)
----build()
--------prependDescription.js(515B)
--------header.txt(712B)
--------concat.js(410B)
--------prependHeader.js(414B)
----CONTRIBUTING.md(3KB)
----dist()
--------tslint.json(349B)
--------screeps-tests.ts(29KB)
--------tsconfig.json(488B)
--------index.d.ts(197KB)
----CODE_OF_CONDUCT.md(3KB)
----LICENSE(1KB)
----CHANGELOG.md(15KB)
----tsconfig.json(328B)
----.github()
--------PULL_REQUEST_TEMPLATE.md(412B)
--------ISSUE_TEMPLATE()
----README.md(6KB)
----.vscode()
--------settings.json(348B)
--------extensions.json(128B)
----.npmignore(130B)
----.gitattributes(38B)
----.editorconfig(228B)
----.prettierrc(552B)

网友评论