@javelin/ecs
Advanced tools
Comparing version 0.4.0 to 0.4.1
@@ -6,2 +6,10 @@ # Change Log | ||
## 0.4.1 (2020-06-16) | ||
**Note:** Version bump only for package @javelin/ecs | ||
# 0.4.0 (2020-06-14) | ||
@@ -8,0 +16,0 @@ |
@@ -23,2 +23,3 @@ import { Component } from "./component"; | ||
registerComponentFactory(factory: ComponentFactoryLike): void; | ||
registeredComponentFactories: ComponentFactoryLike[]; | ||
}; | ||
@@ -25,0 +26,0 @@ export declare type System<T> = (data: T, world: World<T>) => void; |
@@ -17,2 +17,3 @@ "use strict"; | ||
const destroyed = new Set(); | ||
const registeredComponentFactories = []; | ||
let nextEntity = 0; | ||
@@ -95,3 +96,7 @@ function tick(data) { | ||
} | ||
const { addTag, removeTag, hasTag, registerComponentFactory } = storage; | ||
function registerComponentFactory(factory) { | ||
storage.registerComponentFactory(factory); | ||
registeredComponentFactories.push(factory); | ||
} | ||
const { addTag, removeTag, hasTag } = storage; | ||
const world = { | ||
@@ -113,2 +118,3 @@ create, | ||
registerComponentFactory, | ||
registeredComponentFactories, | ||
}; | ||
@@ -115,0 +121,0 @@ return world; |
{ | ||
"name": "@javelin/ecs", | ||
"version": "0.4.0", | ||
"version": "0.4.1", | ||
"main": "dist/index.js", | ||
@@ -20,4 +20,3 @@ "license": "MIT", | ||
"networking" | ||
], | ||
"gitHead": "3c726284a729eacb771e7a09c672d0b2f44c6ab7" | ||
] | ||
} |
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
99795
127
1281