@urso/core 0.3.1 → 0.3.2

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.
@@ -151,7 +151,7 @@ object-assign
151
151
  */
152
152
 
153
153
  /*!
154
- * GSAP 3.8.0
154
+ * GSAP 3.9.0
155
155
  * https://greensock.com
156
156
  *
157
157
  * @license Copyright 2008-2021, GreenSock. All rights reserved.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@urso/core",
3
- "version": "0.3.1",
3
+ "version": "0.3.2",
4
4
  "description": "HTML5 game engine",
5
5
  "main": "build/js/index.js",
6
6
  "author": "Megbrimef",
@@ -17,6 +17,8 @@ class ModulesObserverConfig {
17
17
  MODULES_SOUND_MANAGER_UPDATE_CFG: 'modules.soundManager.updateCfg',
18
18
  MODULES_SOUND_MANAGER_SET_GLOBAL_VOLUME: 'modules.soundManager.setGlobalVolume',
19
19
  MODULES_STATES_MANAGER_STATE_CHANGE: 'modules.statesManager.stateChange',
20
+ MODULES_STATES_MANAGER_ACTION_START: 'modules.statesManager.actionStart',
21
+ MODULES_STATES_MANAGER_ACTION_FINISH: 'modules.statesManager.actionFinish',
20
22
  MODULES_SCENES_ORIENTATION_CHANGE: 'modules.scenes.orientation.change',
21
23
  MODULES_SCENES_NEW_RESOLUTION: 'modules.scenes.newResolution',
22
24
  MODULES_SCENES_NEW_SCENE_INIT: 'modules.scenes.newSceneInit',
@@ -18,6 +18,8 @@ class ModulesStatesManagerAction {
18
18
  run(onFinishCallback) {
19
19
  log(`%c action run ---> ${this.name}`, 'color: blue');
20
20
 
21
+ this.emit(Urso.events.MODULES_STATES_MANAGER_ACTION_START, this.name);
22
+
21
23
  this.finished = false;
22
24
  this._onFinishCallback = onFinishCallback;
23
25
 
@@ -47,6 +49,9 @@ class ModulesStatesManagerAction {
47
49
 
48
50
  this._terminating = false;
49
51
  this.finished = true;
52
+
53
+ this.emit(Urso.events.MODULES_STATES_MANAGER_ACTION_FINISH, this.name);
54
+
50
55
  log(`%c action finish <--- ${this.name}`, 'color: blue');
51
56
  this._onFinishCallback();
52
57
  }