ProjectZombie/src/projectzombie/util/gl/texture/AnimationEventHandler.java

30 lines
591 B
Java
Executable File

package projectzombie.util.gl.texture;
import mainloop.task.IMainloopTask;
import projectzombie.init.Textures;
public class AnimationEventHandler implements IMainloopTask
{
public static final AnimationEventHandler ANIMATION_EVENT_HANDLER = new AnimationEventHandler();
@Override
public boolean MainLoopDelay(long millis) {
return millis > 10;
}
@Override
public boolean MainLoopRepeat() {
return true;
}
@Override
public void MainLoopUpdate()
{
// Loop over the animations and update them all
for(AnimationReference r : Textures.animations) {
r.tick();
}
}
}