[FEATURE] Detailed stats about player weapon usage and hitgroups (#1)
Reviewed-on: https://git.harting.dev/CSGOWTF/csgowtfd/pulls/1 Co-authored-by: Giovanni Harting <539@idlegandalf.com> Co-committed-by: Giovanni Harting <539@idlegandalf.com>
This commit is contained in:
@@ -18,6 +18,8 @@ type Tx struct {
|
||||
Player *PlayerClient
|
||||
// Stats is the client for interacting with the Stats builders.
|
||||
Stats *StatsClient
|
||||
// WeaponStats is the client for interacting with the WeaponStats builders.
|
||||
WeaponStats *WeaponStatsClient
|
||||
|
||||
// lazily loaded.
|
||||
client *Client
|
||||
@@ -156,6 +158,7 @@ func (tx *Tx) init() {
|
||||
tx.Match = NewMatchClient(tx.config)
|
||||
tx.Player = NewPlayerClient(tx.config)
|
||||
tx.Stats = NewStatsClient(tx.config)
|
||||
tx.WeaponStats = NewWeaponStatsClient(tx.config)
|
||||
}
|
||||
|
||||
// txDriver wraps the given dialect.Tx with a nop dialect.Driver implementation.
|
||||
|
Reference in New Issue
Block a user