hitjudge

package
v0.0.0-...-50c553c Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 10, 2021 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var None = rplpa.KeyPressed{
	LeftClick:  false,
	RightClick: false,
	Key1:       false,
	Key2:       false,
}
View Source
var UseCSOffset = NO_USE_CS_OFFSET

Functions

func ParseHits

func ParseHits(mapname string, pr *rplpa.Replay, errors []Error, addCSoffset float64) (objectResults []ObjectResult, totalResults []TotalResult, allRight bool, CSoffset float64)

func ParseMapWithMods

func ParseMapWithMods(filename string, isHR bool, isEZ bool) *beatmap.BeatMap

func SaveError

func SaveError(errors []Error)

Types

type Error

type Error struct {
	ReplayIndex    int
	ObjectIndex    int
	Result         HitResult
	IsBreak        bool
	MaxComboOffset int
	NowComboOffset int
}

func FilterError

func FilterError(replayindex int, errors []Error) []Error

过滤Error

func ReadError

func ReadError() []Error

type HitResult

type HitResult int
const (
	Hit300  HitResult = 0
	Hit100  HitResult = 1
	Hit50   HitResult = 2
	HitMiss HitResult = 3
)

type Key

type Key string
const (
	Key1   Key = "K1"
	Key2   Key = "K2"
	Mouse1 Key = "M1"
	Mouse2 Key = "M2"
	NoKey  Key = "NK"
)

type ObjectResult

type ObjectResult struct {
	JudgePos  bmath.Vector2d
	JudgeTime int64
	Result    HitResult
	IsBreak   bool
}

type TotalResult

type TotalResult struct {
	N300   uint16
	N100   uint16
	N50    uint16
	Misses uint16
	Combo  uint16
	Mods   uint32
	Acc    float64
	Rank   score.Rank
	PP     oppai.PPv2
	UR     float64
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL