analyzerdeathmatch

package
v0.0.0-...-bd0fe52 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2021 License: GPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrChanFull = errors.New("chan analyzer is full")

ErrChanFull chan is full

View Source
var ErrCouldNotShutdown = errors.New("could not shutdown analyzerdeathmatch analyzer deathmatch")

ErrCouldNotShutdown could not shutdown analyzer deathmatch

Functions

This section is empty.

Types

type AnalyzerDeathMatch

type AnalyzerDeathMatch struct {
	PathStorage string
	// contains filtered or unexported fields
}

AnalyzerDeathMatch stores the games it has to analyze

func Start

func Start(db *gorm.DB, logAnalyzer *custlogger.Logger, version int64, schema string,
	PathStorage string, portServer int) (*AnalyzerDeathMatch, error)

Start starts this worker

func (*AnalyzerDeathMatch) AddDataAnalyzer

func (a *AnalyzerDeathMatch) AddDataAnalyzer(demoIDs []int64) error

AddDataAnalyzer add data to be analyzed

func (*AnalyzerDeathMatch) CheckForEver

func (a *AnalyzerDeathMatch) CheckForEver()

CheckForEver this check if new demo need to be analyzed

func (*AnalyzerDeathMatch) CheckOutAnalyzed

func (a *AnalyzerDeathMatch) CheckOutAnalyzed() error

CheckOutAnalyzed at the start of the analyzer, check if their is demo to (re)analyze or not

func (*AnalyzerDeathMatch) ParseOneGame

func (a *AnalyzerDeathMatch) ParseOneGame(data DataAnalyzerDeathMatch)

ParseOneGame start to analyze one game

func (*AnalyzerDeathMatch) Shutdown

func (a *AnalyzerDeathMatch) Shutdown()

Shutdown shutdown AnalyzerDeathMatch

func (*AnalyzerDeathMatch) Transcript

func (a *AnalyzerDeathMatch) Transcript(parser ParserDeathMatch, demo *model.DeathMatchDemo)

Transcript convert a demo to be stored in the DB

type DataAnalyzerDeathMatch

type DataAnalyzerDeathMatch struct {
	// contains filtered or unexported fields
}

DataAnalyzerDeathMatch data send to be analyzed

type ParserDeathMatch

type ParserDeathMatch struct {
	DemoID           int64
	ParserDemoinfocs demoinfocs.Parser

	Game *modelanalyzerdeathmatch.Game
	// contains filtered or unexported fields
}

ParserDeathMatch type to parse the game

func (*ParserDeathMatch) Parse

func (p *ParserDeathMatch) Parse() error

Parse analyze one game

func (*ParserDeathMatch) PlayerHurt

func (p *ParserDeathMatch) PlayerHurt()

PlayerHurt event when a player has been hurt

func (*ParserDeathMatch) WeaponFire

func (p *ParserDeathMatch) WeaponFire()

WeaponFire event when a player fire

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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