Rhytm minigame base

This commit is contained in:
ThomasCharester committed 2026-11-16 11:02:25 +03:00
1 parent 258900d1d6
commit 329cc98ade
7696 files changed
+238891 -619017

No files matched your search

+29
View File
@@ -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);
}
}
}