demo

package
v1.4.1 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2024 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetDemoSource

func GetDemoSource(demo *Demo) constants.DemoSource

Types

type Demo

type Demo struct {
	FilePath string
	FileName string
	Type     constants.DemoType
	// ! Checksums are not generated reading the whole .dem file but only information for the "header" because it would be slow.
	Checksum        string
	Filestamp       string
	Date            time.Time
	ServerName      string
	ClientName      string
	MapName         string
	NetworkProtocol int
	BuildNumber     int           // Source 2 demos only
	TickCount       int           // Not available for Source 2 demos, it's updated during parsing
	TickRate        float64       // Not available for Source 2 demos, it's updated during parsing
	FrameRate       float64       // Not available for Source 2 demos, it's updated during parsing
	Duration        time.Duration // Not available for Source 2 demos, it's updated during parsing
}

func GetDemoFromPath

func GetDemoFromPath(demoPath string) (*Demo, error)

func (*Demo) IsSource2

func (demo *Demo) IsSource2() bool

Jump to

Keyboard shortcuts

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