RoundGraph

package module
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Aug 6, 2022 License: MIT Imports: 3 Imported by: 0

README

# RoundGraph

A mini project to find the ticks that represent the played rounds within a CS:GO demo using the demoinfocs-golang parser. This repo intends to parse through a demo and return the ticks of rounds that were actually played

How to use

Refer to the example.go file within the example directory to show you how to integrate it into your project.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Round

type Round struct {
	StartTick   int
	EndTick     int
	RoundNumber int
	T           int
	CT          int
	IsHalfTime  bool
}

func (Round) Total

func (r Round) Total() int

type RoundGraph

type RoundGraph struct {
	*simple.WeightedDirectedGraph
	// contains filtered or unexported fields
}

func NewRoundGraph

func NewRoundGraph() RoundGraph

func (RoundGraph) GetMatchRounds

func (g RoundGraph) GetMatchRounds() []Round

func (RoundGraph) SetEdges

func (g RoundGraph) SetEdges()

func (RoundGraph) SetRounds

func (g RoundGraph) SetRounds(rounds []RoundStart, scores []ScoreUpdate, gameHalftimes []int, lastTick int)

type RoundStart

type RoundStart struct {
	Tick int
	T    int
	CT   int
}

type ScoreUpdate

type ScoreUpdate struct {
	Tick  int
	Team  string
	Score int
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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