Pull up clip from judge definition. Add clip to event container.

This commit is contained in:
2023-01-31 14:55:41 +08:00
parent 8932d1b8d0
commit 5514b6cf37
6 changed files with 46 additions and 18 deletions

View File

@@ -53,8 +53,8 @@ namespace Cryville.Crtr {
var ev = new JudgeEvent {
StartTime = st,
EndTime = et,
StartClip = st + def.clip[0],
EndClip = et + def.clip[1],
StartClip = st + def.clip.Behind,
EndClip = et + def.clip.Ahead,
BaseEvent = tev,
Definition = def,
Handler = handler,
@@ -284,7 +284,7 @@ namespace Cryville.Crtr {
public Dictionary<Identifier, PdtExpression> pass;
}
public class JudgeDefinition {
public float[] clip;
public Clip clip;
public PdtExpression input;
public PdtExpression hit;
public Identifier[] pass;