add HitSample

This commit is contained in:
jacekpoz 2024-04-27 14:15:09 +02:00
parent 6ff75669a0
commit 46299a089b
Signed by: poz
SSH key fingerprint: SHA256:JyLeVWE4bF3tDnFeUpUaJsPsNlJyBldDGV/dIKSLyN8

View file

@ -106,12 +106,23 @@ STRUCT(HitSound,
) )
STRUCT_STREAM_OPS(HitSound, normal, whistle, finish, clap) STRUCT_STREAM_OPS(HitSound, normal, whistle, finish, clap)
STRUCT(HitSample,
VAR_ENUM(, normalSet, SampleSet)
VAR_ENUM(, additionSet, SampleSet)
VAR_UINT(, index)
VAR_UINT(, volume)
VAR_STRING(, filename)
)
STRUCT_STREAM_OPS(HitSample, normalSet, additionSet, index, volume, filename)
STRUCT(HitObject, STRUCT(HitObject,
VAR_INT(, x) VAR_INT(, x)
VAR_INT(, y) VAR_INT(, y)
VAR_INT(, time) VAR_INT(, time)
VAR_STRUCT(, type, HitObjectType) VAR_STRUCT(, type, HitObjectType)
VAR_STRUCT(, hitSound ,HitSound) VAR_STRUCT(, hitSound ,HitSound)
// TODO objectParams - possibly a union
VAR_STRUCT(, hitSample, HitSample)
) )
STRUCT_STREAM_OPS(HitObject, x, y, time, type, hitSound) STRUCT_STREAM_OPS(HitObject, x, y, time, type, hitSound)