22
33import com .github .elebras1 .flecs .*;
44import com .github .elebras1 .flecs .examples .components .*;
5+ import com .github .elebras1 .flecs .util .FlecsConstants ;
56
67import java .lang .System ;
78
@@ -45,7 +46,7 @@ public static void main(String[] args) {
4546 FlecsSystem everyOtherFrame = world .system ("EveryOtherFrame" )
4647 .with (posId )
4748 .rate (2 )
48- .kind (FlecsConstants .EcsOnUpdate )
49+ .kind (com . github . elebras1 . flecs . util . FlecsConstants .EcsOnUpdate )
4950 .iter (it -> {
5051 System .out .println (" [Rate Filter] Running every 2nd frame (matched: " + it .count () + " entities)" );
5152 });
@@ -60,7 +61,7 @@ public static void main(String[] args) {
6061 FlecsSystem mtMoveSystem = world .system ("MultiThreadedMove" )
6162 .with (posId )
6263 .with (velId )
63- .kind (FlecsConstants .EcsOnUpdate )
64+ .kind (com . github . elebras1 . flecs . util . FlecsConstants .EcsOnUpdate )
6465 .multiThreaded (true )
6566 .iter (it -> {
6667 Field <Position > positions = it .field (Position .class , 0 );
@@ -80,7 +81,7 @@ public static void main(String[] args) {
8081
8182 // Create an immediate system that can see operations immediately
8283 FlecsSystem immediateSystem = world .system ("ImmediateSystem" )
83- .kind (FlecsConstants .EcsPreUpdate )
84+ .kind (com . github . elebras1 . flecs . util . FlecsConstants .EcsPreUpdate )
8485 .immediate (true )
8586 .run (it -> {
8687 System .out .println (" [Immediate] Running in non-readonly mode" );
@@ -112,7 +113,7 @@ public static void main(String[] args) {
112113
113114 // Pause the timer
114115 System .out .println ("Stopping one-second timer..." );
115- timerOneSecond .add (FlecsConstants .EcsDisabled );
116+ timerOneSecond .add (com . github . elebras1 . flecs . util . FlecsConstants .EcsDisabled );
116117
117118 System .out .println ("Running 3 more frames with timer stopped:" );
118119 for (int frame = 0 ; frame < 3 ; frame ++) {
@@ -122,7 +123,7 @@ public static void main(String[] args) {
122123
123124 // Resume the timer
124125 System .out .println ("\n Restarting one-second timer..." );
125- timerOneSecond .remove (FlecsConstants .EcsDisabled );
126+ timerOneSecond .remove (com . github . elebras1 . flecs . util . FlecsConstants .EcsDisabled );
126127
127128 System .out .println ("Running 3 more frames with timer restarted:" );
128129 for (int frame = 0 ; frame < 3 ; frame ++) {
@@ -134,11 +135,11 @@ public static void main(String[] args) {
134135
135136 // Create systems in different phases
136137 FlecsSystem preUpdateSys = world .system ("PreUpdatePhase" )
137- .kind (FlecsConstants .EcsPreUpdate )
138+ .kind (com . github . elebras1 . flecs . util . FlecsConstants .EcsPreUpdate )
138139 .run (it -> System .out .println (" [PreUpdate] Running" ));
139140
140141 FlecsSystem onUpdateSys = world .system ("OnUpdatePhase" )
141- .kind (FlecsConstants .EcsOnUpdate )
142+ .kind (com . github . elebras1 . flecs . util . FlecsConstants .EcsOnUpdate )
142143 .run (it -> System .out .println (" [OnUpdate] Running" ));
143144
144145 FlecsSystem postUpdateSys = world .system ("PostUpdatePhase" )
0 commit comments