This commit is contained in:
Moulberry committed 2024-08-29 10:34:49 +08:00
1 parent d2a217509f
commit 4d8f896cdf
90 files changed
+2345 -720

No files matched your search

@@ -3,8 +3,10 @@ package com.moulberry.flashback.keyframe.impl;
import com.google.gson.*;
import com.moulberry.flashback.Interpolation;
import com.moulberry.flashback.keyframe.Keyframe;
import com.moulberry.flashback.keyframe.KeyframeType;
import com.moulberry.flashback.keyframe.handler.KeyframeHandler;
import com.moulberry.flashback.keyframe.interpolation.InterpolationType;
import com.moulberry.flashback.keyframe.types.SpeedKeyframeType;
import com.moulberry.flashback.spline.CatmullRom;
import imgui.ImGui;
@@ -24,6 +26,11 @@ public class TickrateKeyframe extends Keyframe {
this.interpolationType(interpolationType);
}
@Override
public KeyframeType<?> keyframeType() {
return SpeedKeyframeType.INSTANCE;
}
@Override
public Keyframe copy() {
return new TickrateKeyframe(this.tickrate, this.interpolationType());