@flashist/appframework 0.0.57 → 0.0.58

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.
@@ -117,7 +117,7 @@ var ECSManager = /** @class */ (function (_super) {
117
117
  this.eventListenerHelper.addEventListener(this.globalDispatcher, appStateChangeEvent()("timeModule.lastDeltaTime"), this.onTimeDeltaChange);
118
118
  };
119
119
  ECSManager.prototype.onTimeDeltaChange = function () {
120
- this.update(this.appState.timeModule.lastDeltaTime);
120
+ this.update(this.appState.timeModule.lastTimeDelta);
121
121
  };
122
122
  ECSManager.prototype.addEntityToQueries = function (entity) {
123
123
  for (var _i = 0, _a = this.queriesList; _i < _a.length; _i++) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flashist/appframework",
3
- "version": "0.0.57",
3
+ "version": "0.0.58",
4
4
  "scripts": {
5
5
  "build": "gulp",
6
6
  "publish:patch": "npm version patch && npm run build && cd ./dist && npm publish",
@@ -2,7 +2,9 @@ export declare const TimeModuleInitialAppState: {
2
2
  timeModule: {
3
3
  startTime: number;
4
4
  curTime: number;
5
- lastDeltaTime: number;
5
+ lastTimeDelta: number;
6
+ minTimeDelta: number;
7
+ maxTimeDelta: number;
6
8
  };
7
9
  };
8
10
  export declare type TimeModuleAppStateType = typeof TimeModuleInitialAppState;
@@ -2,7 +2,9 @@ export var TimeModuleInitialAppState = {
2
2
  timeModule: {
3
3
  startTime: 0,
4
4
  curTime: 0,
5
- lastDeltaTime: 0
5
+ lastTimeDelta: 0,
6
+ minTimeDelta: 1000 / 16,
7
+ maxTimeDelta: 1000 / 16
6
8
  }
7
9
  };
8
10
  //# sourceMappingURL=TimeModuleAppStateType.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"TimeModuleAppStateType.js","sourceRoot":"","sources":["../../../../src/time/data/state/TimeModuleAppStateType.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,IAAM,yBAAyB,GAAG;IACrC,UAAU,EAAE;QACR,SAAS,EAAE,CAAC;QACZ,OAAO,EAAE,CAAC;QACV,aAAa,EAAE,CAAC;KACnB;CACJ,CAAC"}
1
+ {"version":3,"file":"TimeModuleAppStateType.js","sourceRoot":"","sources":["../../../../src/time/data/state/TimeModuleAppStateType.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,IAAM,yBAAyB,GAAG;IACrC,UAAU,EAAE;QACR,SAAS,EAAE,CAAC;QACZ,OAAO,EAAE,CAAC;QACV,aAAa,EAAE,CAAC;QAChB,YAAY,EAAE,IAAI,GAAG,EAAE;QACvB,YAAY,EAAE,IAAI,GAAG,EAAE;KAC1B;CACJ,CAAC"}
@@ -37,7 +37,7 @@ var TimeManager = /** @class */ (function (_super) {
37
37
  var newTime = Date.now();
38
38
  var timeDelta = newTime - this.appState.timeModule.curTime;
39
39
  this.appStateStorage.change()("timeModule.curTime", newTime);
40
- this.appStateStorage.change()("timeModule.lastDeltaTime", timeDelta);
40
+ this.appStateStorage.change()("timeModule.lastTimeDelta", timeDelta);
41
41
  };
42
42
  return TimeManager;
43
43
  }(BaseAppManager));