29 lines
608 B
C#
29 lines
608 B
C#
using System;
|
|
|
|
namespace Code.Game.Minigames.MusicGame
|
|
{
|
|
|
|
public enum BeatType
|
|
{
|
|
Attack,
|
|
Defense
|
|
}
|
|
|
|
[Serializable]
|
|
public struct BeatNode : IEquatable<BeatNode>
|
|
{
|
|
public int sampleIndex;
|
|
public BeatType type;
|
|
public int laneIndex;
|
|
|
|
public bool Equals(BeatNode other)
|
|
{
|
|
return sampleIndex == other.sampleIndex && type == other.type && laneIndex == other.laneIndex;
|
|
}
|
|
|
|
public override int GetHashCode()
|
|
{
|
|
return HashCode.Combine(sampleIndex, (int)type, laneIndex);
|
|
}
|
|
}
|
|
} |