Files
InfantrySkillCalculator/models/tracker_json.go
MaxJa4 93908f7da5
Some checks failed
Build and Push Docker Image / build-and-push (push) Failing after 7s
Adjusted full-calc statistics. Use new infantry skill algorithm.
2024-01-25 18:04:45 +01:00

38 lines
896 B
Go

package models
type TrackerDataJSON struct {
Weapons []Weapon `json:"weapons"`
DivKills DividedKills `json:"dividedKills"`
Deaths int `json:"deaths"`
SecondsPlayed int `json:"secondsPlayed"`
XP []XP `json:"XP"`
}
type DividedKills struct {
ADS int `json:"ads"`
Hip int `json:"hip"`
AI int `json:"ai"`
}
type XP struct {
Ribbons Ribbons `json:"ribbons"`
}
type Ribbons struct {
Objective int `json:"objective"`
Squad int `json:"squad"`
Support int `json:"support"`
Total int `json:"total"`
}
type Weapon struct {
Type string `json:"type"`
Name string `json:"weaponName"`
ID string `json:"id"`
Kills int `json:"kills"`
KPM float64 `json:"killsPerMinute"`
ShotsFired int `json:"shotsFired"`
ShotsHit int `json:"shotsHit"`
Accuracy float64 `json:"-"`
}