Made it easier to check for golden and rap notes
This commit is contained in:
1 parent
8d7116706d
commit
821a85ab17
4 files changed
+35
-5
No files matched your search
@@ -82,6 +82,20 @@ namespace VocaluxeLib.Songs
|
||||
}
|
||||
|
||||
public abstract int PointsForBeat { get; }
|
||||
|
||||
public bool IsRapNote
|
||||
{
|
||||
get { return IsNoteType(ENoteType.Rap, ENoteType.RapGolden); }
|
||||
}
|
||||
|
||||
public bool IsGoldenNote
|
||||
{
|
||||
get { return IsNoteType(ENoteType.Golden, ENoteType.RapGolden); }
|
||||
}
|
||||
#endregion Properties
|
||||
|
||||
#region Methods
|
||||
public abstract bool IsNoteType(params ENoteType[] noteTypes);
|
||||
#endregion Methods
|
||||
}
|
||||
}
|
||||
@@ -15,6 +15,8 @@
|
||||
// along with Vocaluxe. If not, see <http://www.gnu.org/licenses/>.
|
||||
#endregion
|
||||
|
||||
using System.Linq;
|
||||
|
||||
namespace VocaluxeLib.Songs
|
||||
{
|
||||
/// <summary>
|
||||
@@ -37,6 +39,13 @@ namespace VocaluxeLib.Songs
|
||||
}
|
||||
#endregion Constructors
|
||||
|
||||
#region Methods
|
||||
public override bool IsNoteType(params ENoteType[] noteTypes)
|
||||
{
|
||||
return noteTypes.Contains(Type);
|
||||
}
|
||||
#endregion Method
|
||||
|
||||
#region Properties
|
||||
public ENoteType Type { get; set; }
|
||||
|
||||
|
||||
@@ -15,6 +15,8 @@
|
||||
// along with Vocaluxe. If not, see <http://www.gnu.org/licenses/>.
|
||||
#endregion
|
||||
|
||||
using System.Linq;
|
||||
|
||||
namespace VocaluxeLib.Songs
|
||||
{
|
||||
/// <summary>
|
||||
@@ -74,6 +76,10 @@ namespace VocaluxeLib.Songs
|
||||
|
||||
Perfect = result;
|
||||
}
|
||||
public override bool IsNoteType(params ENoteType[] noteTypes)
|
||||
{
|
||||
return HitNote != null && noteTypes.Contains(HitNote.Type);
|
||||
}
|
||||
#endregion Methods
|
||||
|
||||
public override int PointsForBeat
|
||||
|
||||
Reference in new issue
Block a user