Import fixup of old code into new Unity project
This commit is contained in:
Executable
+36
@@ -0,0 +1,36 @@
|
||||
using System;
|
||||
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace WacK.Data.Chart
|
||||
{
|
||||
public enum NoteEventType
|
||||
{
|
||||
Tempo,
|
||||
TimeSignature,
|
||||
ScrollSpeedMultiplier,
|
||||
BGAdd,
|
||||
BGRem,
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Represents an unplayable event with some associated data value.
|
||||
/// </summary>
|
||||
/// <typeparam name="T">The value's type.</typeparam>
|
||||
public class NoteEvent<T> : Note
|
||||
{
|
||||
public NoteEventType type;
|
||||
|
||||
/// <summary>
|
||||
/// A value whose function will vary depending on the type of note.
|
||||
/// </summary>
|
||||
public T value;
|
||||
|
||||
public NoteEvent(double time, MeasureBeat measureBeat, NoteEventType type, int? position = null, int? size = null, T value = default(T)) :
|
||||
base(time, measureBeat, position, size)
|
||||
{
|
||||
this.value = value;
|
||||
this.type = type;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user