mvdparser

package
v0.0.0-...-d79959a Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Data

type Data struct {
	Filepath   string   `json:"filepath"`
	Date       string   `json:"date"`
	Duration   string   `json:"duration"`
	ServerInfo string   `json:"serverinfo"`
	Players    []Player `json:"players"`
}

func NewFromFile

func NewFromFile(filepath string) (*Data, error)

type Player

type Player struct {
	Name        string `json:"name"`
	Team        string `json:"team"`
	TopColor    uint8  `json:"top_color"`
	BottomColor uint8  `json:"bottom_color"`
	Frags       int    `json:"frags"`
	Teamkills   uint   `json:"teamkills"`
	Deaths      uint   `json:"deaths"`
	Suicides    uint   `json:"suicides"`
	AvgPing     string `json:"avg_ping"`
}

Jump to

Keyboard shortcuts

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