react-simple-game-engine 0.2.132 → 0.2.134
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -75,7 +75,7 @@ export declare abstract class Entity<P extends Record<string, any> = Record<stri
|
|
75
75
|
* @param {number} width width of sensor, apply when in "rect" shape
|
76
76
|
* @param {number} height height of sensor, apply when in "rect" shape
|
77
77
|
* @param {number} radius radius of sensor, apply when in "circle" shape
|
78
|
-
* @param {boolean} debug allow to show sensor for debug purpose
|
78
|
+
* @param {boolean} debug allow to show sensor for debug purpose, have to enable entity.debugSensor = true first
|
79
79
|
* @param {boolean} debugColor allow to change sensor color
|
80
80
|
* @void
|
81
81
|
*/
|
@@ -169,7 +169,7 @@ var Entity = /** @class */ (function (_super) {
|
|
169
169
|
* @param {number} width width of sensor, apply when in "rect" shape
|
170
170
|
* @param {number} height height of sensor, apply when in "rect" shape
|
171
171
|
* @param {number} radius radius of sensor, apply when in "circle" shape
|
172
|
-
* @param {boolean} debug allow to show sensor for debug purpose
|
172
|
+
* @param {boolean} debug allow to show sensor for debug purpose, have to enable entity.debugSensor = true first
|
173
173
|
* @param {boolean} debugColor allow to change sensor color
|
174
174
|
* @void
|
175
175
|
*/
|
@@ -85,7 +85,7 @@ var WorldManagement = /** @class */ (function () {
|
|
85
85
|
WorldManagement.prototype.iterateEntities = function (action) {
|
86
86
|
var _a = this, entitiesPool = _a.entitiesPool, entitiesHash = _a.entitiesHash;
|
87
87
|
var indexes = Object.keys(this.entitiesPool).map(function (idx) { return +idx; });
|
88
|
-
indexes.sort();
|
88
|
+
indexes.sort(function (a, b) { return a - b; });
|
89
89
|
for (var _i = 0, indexes_1 = indexes; _i < indexes_1.length; _i++) {
|
90
90
|
var index = indexes_1[_i];
|
91
91
|
var entitiesId = entitiesPool[index];
|
package/lib/index.d.ts
CHANGED
@@ -1,8 +1,13 @@
|
|
1
1
|
export { Saver } from "./classes/saver";
|
2
2
|
export { Sound } from "./classes/sound";
|
3
3
|
export { P5 } from "./classes/p5";
|
4
|
+
export { Prefab } from "./classes/prefab";
|
5
|
+
export { LogicComponent } from "./classes/logic-component";
|
6
|
+
export { Scene } from "./classes/scene";
|
7
|
+
export { SimpleCamera } from "./classes/simple-camera";
|
4
8
|
export { ParticleSystem } from "./classes/particle-system";
|
5
9
|
export { Particle } from "./classes/particle";
|
10
|
+
export { Sensor } from "./classes/sensor";
|
6
11
|
export { Animator } from "./classes/animations/animator";
|
7
12
|
export { AnimationSprite } from "./classes/animations/animation";
|
8
13
|
export { AvatarAnimationSprite } from "./classes/animations/avatar.animation";
|
@@ -10,10 +15,6 @@ export { ColorAnimationSprite } from "./classes/animations/color.animation";
|
|
10
15
|
export { Entity } from "./classes/entities/entity";
|
11
16
|
export { CircleEntity } from "./classes/entities/circle.entity";
|
12
17
|
export { RectEntity } from "./classes/entities/rect.entity";
|
13
|
-
export { Prefab } from "./classes/prefab";
|
14
|
-
export { LogicComponent } from "./classes/logic-component";
|
15
|
-
export { Scene } from "./classes/scene";
|
16
|
-
export { SimpleCamera } from "./classes/simple-camera";
|
17
18
|
export { Sprite } from "./classes/sprites/sprite";
|
18
19
|
export { AvatarSprite } from "./classes/sprites/avatar.sprite";
|
19
20
|
export { ColorSprite } from "./classes/sprites/color.sprite";
|
package/lib/index.d.ts.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,iBAAiB,CAAC;AACxC,OAAO,EAAE,KAAK,EAAE,MAAM,iBAAiB,CAAC;AACxC,OAAO,EAAE,EAAE,EAAE,MAAM,cAAc,CAAC;
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,iBAAiB,CAAC;AACxC,OAAO,EAAE,KAAK,EAAE,MAAM,iBAAiB,CAAC;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,WAAW,CAAC"}
|
package/lib/index.js
CHANGED
@@ -1,8 +1,13 @@
|
|
1
1
|
export { Saver } from "./classes/saver";
|
2
2
|
export { Sound } from "./classes/sound";
|
3
3
|
export { P5 } from "./classes/p5";
|
4
|
+
export { Prefab } from "./classes/prefab";
|
5
|
+
export { LogicComponent } from "./classes/logic-component";
|
6
|
+
export { Scene } from "./classes/scene";
|
7
|
+
export { SimpleCamera } from "./classes/simple-camera";
|
4
8
|
export { ParticleSystem } from "./classes/particle-system";
|
5
9
|
export { Particle } from "./classes/particle";
|
10
|
+
export { Sensor } from "./classes/sensor";
|
6
11
|
export { Animator } from "./classes/animations/animator";
|
7
12
|
export { AnimationSprite } from "./classes/animations/animation";
|
8
13
|
export { AvatarAnimationSprite } from "./classes/animations/avatar.animation";
|
@@ -10,10 +15,6 @@ export { ColorAnimationSprite } from "./classes/animations/color.animation";
|
|
10
15
|
export { Entity } from "./classes/entities/entity";
|
11
16
|
export { CircleEntity } from "./classes/entities/circle.entity";
|
12
17
|
export { RectEntity } from "./classes/entities/rect.entity";
|
13
|
-
export { Prefab } from "./classes/prefab";
|
14
|
-
export { LogicComponent } from "./classes/logic-component";
|
15
|
-
export { Scene } from "./classes/scene";
|
16
|
-
export { SimpleCamera } from "./classes/simple-camera";
|
17
18
|
export { Sprite } from "./classes/sprites/sprite";
|
18
19
|
export { AvatarSprite } from "./classes/sprites/avatar.sprite";
|
19
20
|
export { ColorSprite } from "./classes/sprites/color.sprite";
|