mirror of
https://github.com/darksaid98/Flashback.git
synced 2026-12-01 14:38:50 +00:00
Public Release
This commit is contained in:
1 parent
666398e480
commit
61bb497a22
126 files changed
+8435
-1240
No files matched your search
+45
@@ -0,0 +1,45 @@
|
||||
package com.moulberry.flashback.keyframe.handler;
|
||||
|
||||
import com.moulberry.flashback.keyframe.KeyframeType;
|
||||
import com.moulberry.flashback.playback.ReplayServer;
|
||||
|
||||
import java.util.EnumSet;
|
||||
|
||||
public class ReplayServerKeyframeHandler implements KeyframeHandler {
|
||||
|
||||
private final ReplayServer replayServer;
|
||||
|
||||
public ReplayServerKeyframeHandler(ReplayServer replayServer) {
|
||||
this.replayServer = replayServer;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean alwaysApplyLastKeyframe() {
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public EnumSet<KeyframeType> supportedKeyframes() {
|
||||
return EnumSet.of(KeyframeType.SPEED, KeyframeType.TIMELAPSE);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void applyFov(float fov) {
|
||||
throw new UnsupportedOperationException();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void applyTickrate(float tickrate) {
|
||||
this.replayServer.setDesiredTickRate(tickrate, false);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void applyTimeOfDay(int timeOfDay) {
|
||||
throw new UnsupportedOperationException();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void applyCameraShake(float frequencyX, float amplitudeX, float frequencyY, float amplitudeY) {
|
||||
throw new UnsupportedOperationException();
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user