Documentation ¶
Index ¶
- Constants
- func NewDifficultyCalculator() api.IDifficultyCalculator
- func NewPPCalculator() api.IPerformanceCalculator
- type DifficultyCalculator
- func (diffCalc *DifficultyCalculator) CalculateSingle(objects []objects.IHitObject, diff *difficulty.Difficulty) api.Attributes
- func (diffCalc *DifficultyCalculator) CalculateStep(objects []objects.IHitObject, diff *difficulty.Difficulty) []api.Attributes
- func (diffCalc *DifficultyCalculator) CalculateStrainPeaks(objects []objects.IHitObject, diff *difficulty.Difficulty) api.StrainPeaks
- func (diffCalc *DifficultyCalculator) GetVersion() int
- func (diffCalc *DifficultyCalculator) GetVersionMessage() string
- type PPv2
Constants ¶
View Source
const ( // StarScalingFactor is a global stars multiplier StarScalingFactor float64 = 0.0675 CurrentVersion int = 20211112 )
Variables ¶
This section is empty.
Functions ¶
func NewDifficultyCalculator ¶
func NewDifficultyCalculator() api.IDifficultyCalculator
func NewPPCalculator ¶
func NewPPCalculator() api.IPerformanceCalculator
Types ¶
type DifficultyCalculator ¶
type DifficultyCalculator struct{}
func (*DifficultyCalculator) CalculateSingle ¶
func (diffCalc *DifficultyCalculator) CalculateSingle(objects []objects.IHitObject, diff *difficulty.Difficulty) api.Attributes
CalculateSingle calculates the final difficulty attributes of a map
func (*DifficultyCalculator) CalculateStep ¶
func (diffCalc *DifficultyCalculator) CalculateStep(objects []objects.IHitObject, diff *difficulty.Difficulty) []api.Attributes
CalculateStep calculates successive star ratings for every part of a beatmap
func (*DifficultyCalculator) CalculateStrainPeaks ¶
func (diffCalc *DifficultyCalculator) CalculateStrainPeaks(objects []objects.IHitObject, diff *difficulty.Difficulty) api.StrainPeaks
func (*DifficultyCalculator) GetVersion ¶
func (diffCalc *DifficultyCalculator) GetVersion() int
func (*DifficultyCalculator) GetVersionMessage ¶
func (diffCalc *DifficultyCalculator) GetVersionMessage() string
type PPv2 ¶
type PPv2 struct {
// contains filtered or unexported fields
}
PPv2 : structure to store ppv2 values
func (*PPv2) Calculate ¶
func (pp *PPv2) Calculate(attribs api.Attributes, score api.PerfScore, diff *difficulty.Difficulty) api.PPv2Results
Click to show internal directories.
Click to hide internal directories.