Class Instrument
- Namespace
- ChartTools
- Assembly
- ChartTools.dll
Base class for instruments
public abstract record Instrument : IEmptyVerifiable, IEquatable<Instrument>
- Inheritance
-
Instrument
- Implements
- Derived
- Inherited Members
- Extension Methods
Properties
Easy
Easy track
public Track? Easy { get; }
Property Value
Expert
Expert track
public Track? Expert { get; }
Property Value
Hard
Hard track
public Track? Hard { get; }
Property Value
InstrumentIdentity
Identity of the instrument the object belongs to
public InstrumentIdentity InstrumentIdentity { get; }
Property Value
InstrumentType
Type of instrument
public InstrumentType InstrumentType { get; }
Property Value
IsEmpty
true if containing no data
public bool IsEmpty { get; }
Property Value
Medium
Medium track
public Track? Medium { get; }
Property Value
SharedSpecialPhrases
Set of special phrases applied to all difficulties
public List<InstrumentSpecialPhrase> SharedSpecialPhrases { get; set; }
Property Value
Methods
CreateTrack(Difficulty)
Creates a track
public abstract Track CreateTrack(Difficulty difficulty)
Parameters
difficulty
DifficultyDifficulty of the track
Returns
GetDifficulty(InstrumentDifficultySet)
Gets the difficulty for an InstrumentIdentity.
public sbyte? GetDifficulty(InstrumentDifficultySet difficulties)
Parameters
difficulties
InstrumentDifficultySet
Returns
GetEasy()
protected abstract Track? GetEasy()
Returns
GetExistingTracks()
Creates an array containing all tracks with data.
public virtual IEnumerable<Track> GetExistingTracks()
Returns
GetExpert()
protected abstract Track? GetExpert()
Returns
GetHard()
protected abstract Track? GetHard()
Returns
GetIdentity()
protected abstract InstrumentIdentity GetIdentity()
Returns
GetMedium()
protected abstract Track? GetMedium()
Returns
GetTrack(Difficulty)
Gets the track matching a difficulty.
public abstract Track? GetTrack(Difficulty difficulty)
Parameters
difficulty
Difficulty
Returns
GetTracks()
Creates an array containing all tracks.
public virtual Track?[] GetTracks()
Returns
- Track[]
RemoveTrack(Difficulty)
Removes a track.
public abstract bool RemoveTrack(Difficulty difficulty)
Parameters
difficulty
DifficultyDifficulty of the target track
Returns
SetDifficulty(InstrumentDifficultySet, sbyte?)
Gets the difficulty for an InstrumentIdentity.
public void SetDifficulty(InstrumentDifficultySet difficulties, sbyte? difficulty)
Parameters
difficulties
InstrumentDifficultySetdifficulty
sbyte?
ShareLocalEvents(TrackObjectSource)
Gives all tracks the same local events.
public LocalEvent[] ShareLocalEvents(TrackObjectSource source)
Parameters
source
TrackObjectSource
Returns
ShareSpecial(TrackObjectSource)
Gives all tracks the same special phrases
public SpecialPhrase[] ShareSpecial(TrackObjectSource source)
Parameters
source
TrackObjectSource