package
Version:
v1.0.1
Opens a new window with list of versions in this module.
Published: Sep 15, 2022
License: MIT
Opens a new window with license information.
Imports: 7
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type Item struct {
Name string `xml:"name,attr" json:"name" bson:"name"`
Pickups uint `xml:"pickups,attr" json:"pickups" bson:"pickups"`
Time uint `xml:"time,attr,omitempty" json:"time,omitempty" bson:"time,omitempty"`
}
type Match struct {
Map string `json:"map" bson:"map"`
Type string `json:"type" bson:"type"`
Duration uint `json:"duration" bson:"duration"`
Datetime string `json:"datetime" bson:"datetime"`
Players []Player `json:"players" bson:"players"`
}
type Player struct {
Name string `json:"name" bson:"name"`
Score int `json:"score" bson:"score"`
Kills uint `json:"kills" bson:"kills"`
Deaths uint `json:"deaths" bson:"deaths"`
Suicides uint `json:"suicides" bson:"suicides"`
DamageGiven uint `json:"damage_given" bson:"damage_given"`
DamageTaken uint `json:"damage_taken" bson:"damage_taken"`
HealthTotal uint `json:"health_total" bson:"health_total"`
ArmorTotal uint `json:"armor_total" bson:"armor_total"`
Weapons []Weapon `json:"weapons" bson:"weapons"`
Items []Item `json:"items" bson:"items"`
Powerups []Item `json:"powerups,omitempty" bson:"powerups,omitempty"`
}
type Stat struct {
Name string `xml:"name,attr"`
Value int `xml:"value,attr"`
}
type Weapon struct {
Name string `xml:"name,attr" json:"name" bson:"name"`
Hits uint `xml:"hits,attr" json:"hits" bson:"hits"`
Shots uint `xml:"shots,attr" json:"shots" bson:"shots"`
Kills uint `xml:"kills,attr" json:"kills" bson:"kills"`
}
type XMLMatch struct {
Map string `xml:"map,attr"`
Type string `xml:"type,attr"`
Duration uint `xml:"duration,attr"`
Datetime string `xml:"datetime,attr"`
Players []XMLPlayer `xml:"player"`
}
type XMLPlayer struct {
Name string `xml:"name,attr"`
Stats []Stat `xml:"stat"`
Weapons []Weapon `xml:"weapons>weapon"`
Items []Item `xml:"items>item"`
Powerups []Item `xml:"powerups>item"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.