tecs:使用泛型的实验性TypeScript ECS框架(ab)

时间:2021-04-07 02:02:29
【文件属性】:
文件名称:tecs:使用泛型的实验性TypeScript ECS框架(ab)
文件大小:161KB
文件格式:ZIP
更新时间:2021-04-07 02:02:29
typescript entity-component-system TypeScript 特克斯 tecs ( tecks )是用编写的一种实验性的框架。 安装 (没有NPM软件包,因为这样做还为时过早。) 如果您想摆弄图书馆本身: git clone https://github.com/noahlange/tecs.git && cd tecs npm install && npm start 如果您想弄个演示,这里有一个。 由于NPM对GitHub repo软件包的处理,将tecs添加到新的/现有的项目中很容易。 npm i noahlange/tecs 请注意,如果您使用npm update更新软件包,则需要运行npm rebuild来重新生成JS输出。 实体与组件 实体是围绕任意组件集合的松散包装。 每个组件都扩展了Component类,并且必须定义一个静态type属性。 此属性必须解析为否则TypeScript对于使用此组件的任何实体/查询基本上是无用的。
【文件预览】:
tecs-master
----tsconfig.prod.json(67B)
----package.json(1KB)
----.github()
--------workflows()
----.prettierrc(99B)
----jest.config.js(234B)
----LICENSE(1KB)
----package-lock.json(502KB)
----benchmarks()
--------index.js(76B)
--------serialization()
--------queries()
--------entities()
--------helpers()
----src()
--------utils.ts(2KB)
--------ecs()
--------test()
--------global.d.ts(36B)
--------types.ts(2KB)
--------lib()
--------index.ts(238B)
--------managers()
----.eslintrc.js(2KB)
----tsconfig.json(434B)
----.gitignore(56B)
----README.md(12KB)

网友评论