Comparing version 0.3.21-5 to 0.3.21-6
@@ -82,3 +82,3 @@ declare module 'bitecs' { | ||
export interface IComponent { | ||
[key: string]: TypedArray | IComponentProp | ||
[key: string]: IComponentProp | ||
} | ||
@@ -98,3 +98,3 @@ | ||
export function setDefaultSize(size: number): void | ||
export function createWorld(obj?: T={}): T & IWorld | ||
export function createWorld<T extends IWorld>(obj?: T): T | ||
export function resetWorld(world: IWorld): IWorld | ||
@@ -101,0 +101,0 @@ export function deleteWorld(world: IWorld): void |
@@ -82,3 +82,3 @@ declare module 'bitecs' { | ||
export interface IComponent { | ||
[key: string]: TypedArray | IComponentProp | ||
[key: string]: IComponentProp | ||
} | ||
@@ -98,3 +98,3 @@ | ||
export function setDefaultSize(size: number): void | ||
export function createWorld(obj?: T={}): T & IWorld | ||
export function createWorld<T extends IWorld>(obj?: T): T | ||
export function resetWorld(world: IWorld): IWorld | ||
@@ -101,0 +101,0 @@ export function deleteWorld(world: IWorld): void |
{ | ||
"name": "bitecs", | ||
"version": "0.3.21-5", | ||
"version": "0.3.21-6", | ||
"description": "Functional, minimal, data-driven, ultra-high performance ECS library written in Javascript", | ||
@@ -5,0 +5,0 @@ "license": "MPL-2.0", |
@@ -86,2 +86,4 @@ # 👾 bitECS 👾 [![npm](https://img.shields.io/npm/v/bitecs.svg)](https://www.npmjs.com/package/bitecs) [![Minzipped](https://badgen.net/bundlephobia/minzip/bitecs)](https://www.npmjs.com/package/bitecs) [![npm](https://img.shields.io/npm/dt/bitecs.svg)](https://www.npmjs.com/package/bitecs) [![License](https://badgen.net/npm/license/bitecs)](https://www.npmjs.com/package/bitecs) | ||
addComponent(world, Velocity, eid) | ||
Velocity.x[eid] = 1.23 | ||
Velocity.y[eid] = 1.23 | ||
@@ -97,2 +99,2 @@ setInterval(() => { | ||
<a href="https://github.com/XRFoundation/XREngine"><img src="https://github.com/XRFoundation/XREngine/raw/master/xrengine%20black.png" width="420"/></a> | ||
<a href="https://github.com/XRFoundation/XREngine"><img src="https://github.com/XRFoundation/XREngine/raw/master/xrengine%20black.png" width="420"/></a> |
@@ -13,3 +13,6 @@ { | ||
"sourceMap": true, | ||
"outDir": "./dist" | ||
"outDir": "./dist", | ||
"allowJs": true, | ||
"checkJs": false, | ||
"types": ["node"] | ||
}, | ||
@@ -16,0 +19,0 @@ "include": [ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
259771
2790
99