ohzi-core 10.6.0 → 10.6.1

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": "10.6.0",
3
+ "version": "10.6.1",
4
4
  "description": "OHZI Core Library",
5
5
  "source": "src/index.js",
6
6
  "module": "build/index.module.js",
@@ -9,6 +9,9 @@ class BaseApplication
9
9
  on_exit()
10
10
  {}
11
11
 
12
+ before_update()
13
+ {}
14
+
12
15
  update()
13
16
  {}
14
17
 
package/src/RenderLoop.js CHANGED
@@ -39,9 +39,13 @@ class RenderLoop
39
39
 
40
40
  this.time_accumulator += Time.delta_time;
41
41
 
42
+ this.target_application.before_update();
43
+ ViewManager.before_update();
44
+
42
45
  while (this.time_accumulator > Time.fixed_delta_time)
43
46
  {
44
47
  this.target_application.fixed_update();
48
+ ViewManager.fixed_update();
45
49
  this.time_accumulator -= Time.fixed_delta_time;
46
50
  }
47
51
  Time.__set_frame_interpolation(this.time_accumulator / Time.fixed_delta_time);
@@ -15,6 +15,11 @@ class ViewManager
15
15
  this.browser_title_suffix = '';
16
16
  }
17
17
 
18
+ before_update()
19
+ {
20
+ this.transition_handler.before_update();
21
+ }
22
+
18
23
  update()
19
24
  {
20
25
  this.transition_handler.update();
@@ -22,6 +27,11 @@ class ViewManager
22
27
  this.__set_views_opacities();
23
28
  }
24
29
 
30
+ fixed_update()
31
+ {
32
+ this.transition_handler.fixed_update();
33
+ }
34
+
25
35
  go_to_view(view_name, change_url = true, skip = false)
26
36
  {
27
37
  const v = this.get(view_name);
@@ -25,10 +25,18 @@ class ViewState
25
25
  {
26
26
  }
27
27
 
28
+ before_update()
29
+ {
30
+ }
31
+
28
32
  update()
29
33
  {
30
34
  }
31
35
 
36
+ fixed_update()
37
+ {
38
+ }
39
+
32
40
  update_enter_transition(global_view_data, transition_progress, action_sequencer)
33
41
  {
34
42
  // Backward compatibility. It will be removed in future releases.
@@ -66,6 +66,16 @@ class ViewStateTransitionHandler
66
66
  }
67
67
  }
68
68
 
69
+ before_update()
70
+ {
71
+ this.current_state.before_update();
72
+ }
73
+
74
+ fixed_update()
75
+ {
76
+ this.current_state.fixed_update();
77
+ }
78
+
69
79
  set_state(state)
70
80
  {
71
81
  this.current_state = state;