Skip to content

Commit

Permalink
Replace update_transition method
Browse files Browse the repository at this point in the history
  • Loading branch information
fedegratti committed Jul 6, 2021
1 parent 19289c4 commit b1220c5
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v5.9.7
v5.10.0
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ohzi-core",
"version": "5.9.7",
"version": "5.10.0",
"description": "OHZI Core Library",
"module": "build/index.module.js",
"source": "src/index.js",
Expand Down
13 changes: 12 additions & 1 deletion src/view_components/ViewState.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,18 @@ export default class ViewState
{
}

update_transition(global_view_data, transition_progress)
update_enter_transition(global_view_data, transition_progress, action_sequencer)
{
// Backward compatibility. It will be removed in future releases.
this.update_transition(global_view_data, transition_progress, action_sequencer);
}

update_exit_transition(global_view_data, transition_progress, action_sequencer)
{
}

// Deprecated
update_transition(global_view_data, transition_progress, action_sequencer)
{
}

Expand Down
3 changes: 2 additions & 1 deletion src/view_components/transition/ViewStateTransitionHandler.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,8 @@ export default class ViewStateTransitionHandler
if (this.transitioning)
{
this.action_sequencer.update(Time.delta_time);
this.current_state.update_transition(this.current_state_data, this.action_sequencer.get_progress(), this.action_sequencer);
this.last_state.update_exit_transition(this.current_state_data, this.action_sequencer.get_progress(), this.action_sequencer);
this.current_state.update_enter_transition(this.current_state_data, this.action_sequencer.get_progress(), this.action_sequencer);

if (this.action_sequencer.is_finished())
{
Expand Down

0 comments on commit b1220c5

Please sign in to comment.