Rhytm minigame base
This commit is contained in:
1 parent
258900d1d6
commit
329cc98ade
7696 files changed
+238891
-619017
No files matched your search
@@ -0,0 +1,29 @@
|
||||
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);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user