ohzi-core 12.9.0 → 12.10.0

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ohzi-core",
3
- "version": "12.9.0",
3
+ "version": "12.10.0",
4
4
  "description": "OHZI Interactive Core Library",
5
5
  "source": "src/index.js",
6
6
  "module": "build/index.mjs",
@@ -24,7 +24,8 @@
24
24
  "upload": "yarn build && npm publish && yarn create-tag",
25
25
  "create-view": "node ./tasks/create_view/create_view.mjs",
26
26
  "create-scene": "node ./tasks/create_scene/create_scene.mjs",
27
- "create-component": "node ./tasks/create_component/create_component.mjs"
27
+ "create-component": "node ./tasks/create_component/create_component.mjs",
28
+ "create-transition": "node ./tasks/create_transition/create_transition.mjs"
28
29
  },
29
30
  "repository": {
30
31
  "type": "git",
@@ -27,12 +27,11 @@ class ViewStateTransitionHandler
27
27
  this.current_state = state;
28
28
 
29
29
  this.last_state.before_exit();
30
+ this.current_state.before_enter();
30
31
 
31
32
  this.action_sequencer = this.transition_table.get(this.last_state.name, this.current_state.name, this.current_state_data);
32
33
  this.action_sequencer.play();
33
34
 
34
- this.current_state.before_enter(this.action_sequencer);
35
-
36
35
  this.transitioning = true;
37
36
 
38
37
  if (skip)
@@ -56,7 +55,7 @@ class ViewStateTransitionHandler
56
55
 
57
56
  this.__exit_last_state();
58
57
 
59
- this.current_state.on_enter(this.action_sequencer);
58
+ this.current_state.on_enter();
60
59
  }
61
60
  }
62
61
  else
@@ -67,7 +66,7 @@ class ViewStateTransitionHandler
67
66
 
68
67
  before_update()
69
68
  {
70
- this.current_state.before_update(this.action_sequencer);
69
+ this.current_state.before_update();
71
70
  }
72
71
 
73
72
  fixed_update()