race

package
v0.14.2 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RaceProcessor

type RaceProcessor struct {
	// carNum
	RaceOrder  []string
	CarLaps    map[string]model.AnalysisCarLaps     // key carNum
	RaceGraph  map[string][]model.AnalysisRaceGraph // key: "overall", carClass names
	ReplayInfo model.ReplayInfo
	// contains filtered or unexported fields
}

func NewRaceProcessor

func NewRaceProcessor(opts ...RaceProcessorOption) *RaceProcessor

func (*RaceProcessor) ProcessAnalysisData

func (p *RaceProcessor) ProcessAnalysisData(analysisData *model.AnalysisData)

func (*RaceProcessor) ProcessStatePayload

func (p *RaceProcessor) ProcessStatePayload(stateMsg *model.StateData)

processes the given state message. This message must be already processed by the CarProcessor

type RaceProcessorOption

type RaceProcessorOption func(rp *RaceProcessor)

func WithCarProcessor

func WithCarProcessor(cp *car.CarProcessor) RaceProcessorOption

func WithPayloadExtractor

func WithPayloadExtractor(pe *util.PayloadExtractor) RaceProcessorOption

func WithRaceSession

func WithRaceSession(raceSession int) RaceProcessorOption

Jump to

Keyboard shortcuts

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