Skip to content

Commit

Permalink
v4 -> v5
Browse files Browse the repository at this point in the history
  • Loading branch information
markus-wa committed Sep 4, 2024
1 parent b4f2dd8 commit bfd852d
Show file tree
Hide file tree
Showing 74 changed files with 217 additions and 217 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
- name: Install Go
uses: actions/setup-go@v5
with:
go-version: 1.20.x
go-version: 1.23.x

- name: Install Reviewdog
uses: reviewdog/action-setup@v1
Expand Down Expand Up @@ -87,7 +87,7 @@ jobs:
- name: Update CSDA mod
run: |
cd cs-demo-analyzer
go mod edit -replace github.com/markus-wa/demoinfocs-golang/v4=../demoinfocs-golang
go mod edit -replace github.com/markus-wa/demoinfocs-golang/v5=../demoinfocs-golang
go mod tidy
- name: Download demos cache file
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/protobuf.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ jobs:
- name: Install Go
if: env.PROTOBUFS_CHANGED == 'true'
uses: actions/setup-go@v2
uses: actions/setup-go@v5
with:
go-version: 1.21.x
go-version: 1.23.x

- name: Install Protobuf tools
if: env.PROTOBUFS_CHANGED == 'true'
Expand Down
2 changes: 1 addition & 1 deletion .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,4 +60,4 @@ linters-settings:
disabled-checks:
- ifElseChain
gci:
local-prefixes: github.com/markus-wa/demoinfocs-golang/v3
local-prefixes: github.com/markus-wa/demoinfocs-golang/v5
32 changes: 16 additions & 16 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

A blazing fast, feature complete and production ready Go library for parsing and analysing of Counter-Strike 2 and Counter-Strike: Global Offensive (CS:GO) demos (aka replays).

[![go.dev reference](https://img.shields.io/badge/go.dev-reference-007d9c?logo=go&logoColor=white&style=flat-square)](https://pkg.go.dev/github.com/markus-wa/demoinfocs-golang/v4/pkg/demoinfocs?tab=doc)
[![go.dev reference](https://img.shields.io/badge/go.dev-reference-007d9c?logo=go&logoColor=white&style=flat-square)](https://pkg.go.dev/github.com/markus-wa/demoinfocs-golang/v5/pkg/demoinfocs?tab=doc)
[![Build Status](https://img.shields.io/github/actions/workflow/status/markus-wa/demoinfocs-golang/ci.yml?branch=master&style=flat-square)](https://github.com/markus-wa/demoinfocs-golang/actions)
[![codecov](https://img.shields.io/codecov/c/github/markus-wa/demoinfocs-golang?style=flat-square)](https://codecov.io/gh/markus-wa/demoinfocs-golang)
[![Go Report](https://goreportcard.com/badge/github.com/markus-wa/demoinfocs-golang?style=flat-square)](https://goreportcard.com/report/github.com/markus-wa/demoinfocs-golang)
Expand All @@ -21,7 +21,7 @@ For business inquiries please use the contact information found on the [GitHub p

### Counter-Strike 2

go get -u github.com/markus-wa/demoinfocs-golang/v4/pkg/demoinfocs
go get -u github.com/markus-wa/demoinfocs-golang/v5/pkg/demoinfocs

### CS:GO

Expand Down Expand Up @@ -62,7 +62,7 @@ You can download the latest version of Go [here](https://golang.org/).
mkdir my-project
cd my-project
go mod init my-project
go get -u github.com/markus-wa/demoinfocs-golang/v4/pkg/demoinfocs
go get -u github.com/markus-wa/demoinfocs-golang/v5/pkg/demoinfocs
```

3. Create a `main.go` file with the example below
Expand All @@ -84,8 +84,8 @@ import (
"log"
"os"

dem "github.com/markus-wa/demoinfocs-golang/v4/pkg/demoinfocs"
events "github.com/markus-wa/demoinfocs-golang/v4/pkg/demoinfocs/events"
dem "github.com/markus-wa/demoinfocs-golang/v5/pkg/demoinfocs"
events "github.com/markus-wa/demoinfocs-golang/v5/pkg/demoinfocs/events"
)

func main() {
Expand Down Expand Up @@ -142,24 +142,24 @@ Check out the [examples](examples) folder for more examples, like [how to genera

### Documentation

The full API documentation is available here on [pkg.go.dev](https://pkg.go.dev/github.com/markus-wa/demoinfocs-golang/v4/pkg/demoinfocs).
The full API documentation is available here on [pkg.go.dev](https://pkg.go.dev/github.com/markus-wa/demoinfocs-golang/v5/pkg/demoinfocs).

## Features

* Game events (kills, shots, round starts/ends, footsteps etc.) - [docs](https://pkg.go.dev/github.com/markus-wa/demoinfocs-golang/v4/pkg/demoinfocs/events?tab=doc) / [example](https://github.com/markus-wa/demoinfocs-golang/tree/master/examples/print-events)
* Tracking of game-state (players, teams, grenades, ConVars etc.) - [docs](https://pkg.go.dev/github.com/markus-wa/demoinfocs-golang/v4/pkg/demoinfocs?tab=doc#GameState)
* Grenade projectiles / trajectories - [docs](https://pkg.go.dev/github.com/markus-wa/demoinfocs-golang/v4/pkg/demoinfocs?tab=doc#GameState.GrenadeProjectiles) / [example](https://github.com/markus-wa/demoinfocs-golang/tree/master/examples/nade-trajectories)
* Access to entities, server-classes & data-tables - [docs](https://pkg.go.dev/github.com/markus-wa/demoinfocs-golang/v4/pkg/demoinfocs/sendtables?tab=doc#ServerClasses) / [example](https://github.com/markus-wa/demoinfocs-golang/tree/master/examples/entities)
* Access to all net-messages - [docs](https://pkg.go.dev/github.com/markus-wa/demoinfocs-golang/v4/pkg/demoinfocs?tab=doc#NetMessageCreator) / [example](https://github.com/markus-wa/demoinfocs-golang/tree/master/examples/net-messages)
* Chat & console messages <sup id="achat1">1</sup> - [docs](https://pkg.go.dev/github.com/markus-wa/demoinfocs-golang/v4/pkg/demoinfocs/events?tab=doc#ChatMessage) / [example](https://github.com/markus-wa/demoinfocs-golang/tree/master/examples/print-events)
* Matchmaking ranks (official MM demos only) - [docs](https://pkg.go.dev/github.com/markus-wa/demoinfocs-golang/v4/pkg/demoinfocs/events?tab=doc#RankUpdate)
* Game events (kills, shots, round starts/ends, footsteps etc.) - [docs](https://pkg.go.dev/github.com/markus-wa/demoinfocs-golang/v5/pkg/demoinfocs/events?tab=doc) / [example](https://github.com/markus-wa/demoinfocs-golang/tree/master/examples/print-events)
* Tracking of game-state (players, teams, grenades, ConVars etc.) - [docs](https://pkg.go.dev/github.com/markus-wa/demoinfocs-golang/v5/pkg/demoinfocs?tab=doc#GameState)
* Grenade projectiles / trajectories - [docs](https://pkg.go.dev/github.com/markus-wa/demoinfocs-golang/v5/pkg/demoinfocs?tab=doc#GameState.GrenadeProjectiles) / [example](https://github.com/markus-wa/demoinfocs-golang/tree/master/examples/nade-trajectories)
* Access to entities, server-classes & data-tables - [docs](https://pkg.go.dev/github.com/markus-wa/demoinfocs-golang/v5/pkg/demoinfocs/sendtables?tab=doc#ServerClasses) / [example](https://github.com/markus-wa/demoinfocs-golang/tree/master/examples/entities)
* Access to all net-messages - [docs](https://pkg.go.dev/github.com/markus-wa/demoinfocs-golang/v5/pkg/demoinfocs?tab=doc#NetMessageCreator) / [example](https://github.com/markus-wa/demoinfocs-golang/tree/master/examples/net-messages)
* Chat & console messages <sup id="achat1">1</sup> - [docs](https://pkg.go.dev/github.com/markus-wa/demoinfocs-golang/v5/pkg/demoinfocs/events?tab=doc#ChatMessage) / [example](https://github.com/markus-wa/demoinfocs-golang/tree/master/examples/print-events)
* Matchmaking ranks (official MM demos only) - [docs](https://pkg.go.dev/github.com/markus-wa/demoinfocs-golang/v5/pkg/demoinfocs/events?tab=doc#RankUpdate)
* Full POV demo support
* Support for encrypted net-messages (if the [decryption key](https://pkg.go.dev/github.com/markus-wa/demoinfocs-golang/v4@master/pkg/demoinfocs#ParserConfig) is provided)
* Support for encrypted net-messages (if the [decryption key](https://pkg.go.dev/github.com/markus-wa/demoinfocs-golang/v5@master/pkg/demoinfocs#ParserConfig) is provided)
* JavaScript (browser / Node.js) support via WebAssembly - [example](https://github.com/markus-wa/demoinfocs-wasm)
* [Easy debugging via build-flags](#debugging)
* Built with performance & concurrency in mind

1. <small id="f1">In MM demos the chat is encrypted, so [`ParserConfig.NetMessageDecryptionKey`](https://pkg.go.dev/github.com/markus-wa/demoinfocs-golang/v4@master/pkg/demoinfocs#ParserConfig) needs to be set - see also [`MatchInfoDecryptionKey()`](https://pkg.go.dev/github.com/markus-wa/demoinfocs-golang/v4@master/pkg/demoinfocs#MatchInfoDecryptionKey).</small>
1. <small id="f1">In MM demos the chat is encrypted, so [`ParserConfig.NetMessageDecryptionKey`](https://pkg.go.dev/github.com/markus-wa/demoinfocs-golang/v5@master/pkg/demoinfocs#ParserConfig) needs to be set - see also [`MatchInfoDecryptionKey()`](https://pkg.go.dev/github.com/markus-wa/demoinfocs-golang/v5@master/pkg/demoinfocs#MatchInfoDecryptionKey).</small>

## Performance / Benchmarks

Expand Down Expand Up @@ -233,7 +233,7 @@ e.g.

Side-note: The tag isn't called `debug` to avoid naming conflicts with other libs (and underscores in tags don't work, apparently).

To change the default debugging behavior, Go's `ldflags` parameter can be used. Example for additionally printing out all server-classes with their properties: `-ldflags="-X 'github.com/markus-wa/demoinfocs-golang/v4/pkg/demoinfocs.debugServerClasses=YES'"`.
To change the default debugging behavior, Go's `ldflags` parameter can be used. Example for additionally printing out all server-classes with their properties: `-ldflags="-X 'github.com/markus-wa/demoinfocs-golang/v5/pkg/demoinfocs.debugServerClasses=YES'"`.

e.g.

Expand Down
4 changes: 2 additions & 2 deletions examples/encrypted-net-messages/enc_net_msg.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ import (
"log"
"os"

dem "github.com/markus-wa/demoinfocs-golang/v4/pkg/demoinfocs"
"github.com/markus-wa/demoinfocs-golang/v4/pkg/demoinfocs/events"
dem "github.com/markus-wa/demoinfocs-golang/v5/pkg/demoinfocs"
"github.com/markus-wa/demoinfocs-golang/v5/pkg/demoinfocs/events"
)

func checkErr(err error) {
Expand Down
2 changes: 1 addition & 1 deletion examples/entities/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ This example shows how to use unhandled data of entities by registering entity-c

You can use the build tag `debugdemoinfocs` and the set `debugServerClasses=YES` with ldflags to find interesting server-classes and their properties.

Example: `go run myprogram.go -tags debugdemoinfocs -ldflags '-X github.com/markus-wa/demoinfocs-golang/v4/pkg/demoinfocs.debugServerClasses=YES' | grep ServerClass`
Example: `go run myprogram.go -tags debugdemoinfocs -ldflags '-X github.com/markus-wa/demoinfocs-golang/v5/pkg/demoinfocs.debugServerClasses=YES' | grep ServerClass`

This gives you a list of all server-classes from any demo that was parsed in `myprogram.go`.

Expand Down
8 changes: 4 additions & 4 deletions examples/entities/entities.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ import (
_ "image/jpeg"
"os"

ex "github.com/markus-wa/demoinfocs-golang/v4/examples"
demoinfocs "github.com/markus-wa/demoinfocs-golang/v4/pkg/demoinfocs"
events "github.com/markus-wa/demoinfocs-golang/v4/pkg/demoinfocs/events"
st "github.com/markus-wa/demoinfocs-golang/v4/pkg/demoinfocs/sendtables"
ex "github.com/markus-wa/demoinfocs-golang/v5/examples"
demoinfocs "github.com/markus-wa/demoinfocs-golang/v5/pkg/demoinfocs"
events "github.com/markus-wa/demoinfocs-golang/v5/pkg/demoinfocs/events"
st "github.com/markus-wa/demoinfocs-golang/v5/pkg/demoinfocs/sendtables"
)

// Run like this: go run entities.go -demo /path/to/demo.dem
Expand Down
8 changes: 4 additions & 4 deletions examples/heatmap/heatmap.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ import (
heatmap "github.com/markus-wa/go-heatmap/v2"
schemes "github.com/markus-wa/go-heatmap/v2/schemes"

ex "github.com/markus-wa/demoinfocs-golang/v4/examples"
demoinfocs "github.com/markus-wa/demoinfocs-golang/v4/pkg/demoinfocs"
events "github.com/markus-wa/demoinfocs-golang/v4/pkg/demoinfocs/events"
"github.com/markus-wa/demoinfocs-golang/v4/pkg/demoinfocs/msg"
ex "github.com/markus-wa/demoinfocs-golang/v5/examples"
demoinfocs "github.com/markus-wa/demoinfocs-golang/v5/pkg/demoinfocs"
events "github.com/markus-wa/demoinfocs-golang/v5/pkg/demoinfocs/events"
"github.com/markus-wa/demoinfocs-golang/v5/pkg/demoinfocs/msg"
)

const (
Expand Down
2 changes: 1 addition & 1 deletion examples/heatmap/heatmap_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"os"
"testing"

"github.com/markus-wa/demoinfocs-golang/v4/examples"
"github.com/markus-wa/demoinfocs-golang/v5/examples"
)

// Just make sure the example runs
Expand Down
2 changes: 1 addition & 1 deletion examples/map_metadata_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (

"github.com/stretchr/testify/assert"

"github.com/markus-wa/demoinfocs-golang/v4/examples"
"github.com/markus-wa/demoinfocs-golang/v5/examples"
)

func TestGetMapMetadata(t *testing.T) {
Expand Down
16 changes: 8 additions & 8 deletions examples/mocking/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ First, let's have a look at the API of our code, the 'system under test':

```go
import (
dem "github.com/markus-wa/demoinfocs-golang/v4/pkg/demoinfocs"
events "github.com/markus-wa/demoinfocs-golang/v4/pkg/demoinfocs/events"
dem "github.com/markus-wa/demoinfocs-golang/v5/pkg/demoinfocs"
events "github.com/markus-wa/demoinfocs-golang/v5/pkg/demoinfocs/events"
)

func collectKills(parser dem.Parser) (kills []events.Kill, err error) {
Expand All @@ -33,9 +33,9 @@ import (

assert "github.com/stretchr/testify/assert"

common "github.com/markus-wa/demoinfocs-golang/v4/pkg/demoinfocs/common"
events "github.com/markus-wa/demoinfocs-golang/v4/pkg/demoinfocs/events"
fake "github.com/markus-wa/demoinfocs-golang/v4/pkg/demoinfocs/fake"
common "github.com/markus-wa/demoinfocs-golang/v5/pkg/demoinfocs/common"
events "github.com/markus-wa/demoinfocs-golang/v5/pkg/demoinfocs/events"
fake "github.com/markus-wa/demoinfocs-golang/v5/pkg/demoinfocs/fake"
)

func TestCollectKills(t *testing.T) {
Expand Down Expand Up @@ -83,9 +83,9 @@ import (

assert "github.com/stretchr/testify/assert"

common "github.com/markus-wa/demoinfocs-golang/v4/pkg/demoinfocs/common"
events "github.com/markus-wa/demoinfocs-golang/v4/pkg/demoinfocs/events"
fake "github.com/markus-wa/demoinfocs-golang/v4/pkg/demoinfocs/fake"
common "github.com/markus-wa/demoinfocs-golang/v5/pkg/demoinfocs/common"
events "github.com/markus-wa/demoinfocs-golang/v5/pkg/demoinfocs/events"
fake "github.com/markus-wa/demoinfocs-golang/v5/pkg/demoinfocs/fake"
)

func TestCollectKillsError(t *testing.T) {
Expand Down
4 changes: 2 additions & 2 deletions examples/mocking/collect_kills.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package mocking

import (
demoinfocs "github.com/markus-wa/demoinfocs-golang/v4/pkg/demoinfocs"
events "github.com/markus-wa/demoinfocs-golang/v4/pkg/demoinfocs/events"
demoinfocs "github.com/markus-wa/demoinfocs-golang/v5/pkg/demoinfocs"
events "github.com/markus-wa/demoinfocs-golang/v5/pkg/demoinfocs/events"
)

func collectKills(parser demoinfocs.Parser) (kills []events.Kill, err error) {
Expand Down
6 changes: 3 additions & 3 deletions examples/mocking/mocking_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ import (

assert "github.com/stretchr/testify/assert"

common "github.com/markus-wa/demoinfocs-golang/v4/pkg/demoinfocs/common"
events "github.com/markus-wa/demoinfocs-golang/v4/pkg/demoinfocs/events"
fake "github.com/markus-wa/demoinfocs-golang/v4/pkg/demoinfocs/fake"
common "github.com/markus-wa/demoinfocs-golang/v5/pkg/demoinfocs/common"
events "github.com/markus-wa/demoinfocs-golang/v5/pkg/demoinfocs/events"
fake "github.com/markus-wa/demoinfocs-golang/v5/pkg/demoinfocs/fake"
)

func TestCollectKills(t *testing.T) {
Expand Down
10 changes: 5 additions & 5 deletions examples/nade-trajectories/nade_trajectories.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@ import (
"github.com/golang/geo/r3"
"github.com/llgcode/draw2d/draw2dimg"

ex "github.com/markus-wa/demoinfocs-golang/v4/examples"
demoinfocs "github.com/markus-wa/demoinfocs-golang/v4/pkg/demoinfocs"
common "github.com/markus-wa/demoinfocs-golang/v4/pkg/demoinfocs/common"
events "github.com/markus-wa/demoinfocs-golang/v4/pkg/demoinfocs/events"
"github.com/markus-wa/demoinfocs-golang/v4/pkg/demoinfocs/msg"
ex "github.com/markus-wa/demoinfocs-golang/v5/examples"
demoinfocs "github.com/markus-wa/demoinfocs-golang/v5/pkg/demoinfocs"
common "github.com/markus-wa/demoinfocs-golang/v5/pkg/demoinfocs/common"
events "github.com/markus-wa/demoinfocs-golang/v5/pkg/demoinfocs/events"
"github.com/markus-wa/demoinfocs-golang/v5/pkg/demoinfocs/msg"
)

type nadePath struct {
Expand Down
2 changes: 1 addition & 1 deletion examples/nade-trajectories/nade_trajectories_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"os"
"testing"

ex "github.com/markus-wa/demoinfocs-golang/v4/examples"
ex "github.com/markus-wa/demoinfocs-golang/v5/examples"
)

// Just make sure the example runs
Expand Down
2 changes: 1 addition & 1 deletion examples/net-messages/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ import (
"google.golang.org/protobuf/proto"

dem "github.com/markus-wa/demoinfocs-golang"
"github.com/markus-wa/demoinfocs-golang/v4/pkg/demoinfocs/msg"
"github.com/markus-wa/demoinfocs-golang/v5/pkg/demoinfocs/msg"
)

cfg := dem.DefaultParserConfig
Expand Down
6 changes: 3 additions & 3 deletions examples/net-messages/netmessages.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ import (

"google.golang.org/protobuf/proto"

ex "github.com/markus-wa/demoinfocs-golang/v4/examples"
demoinfocs "github.com/markus-wa/demoinfocs-golang/v4/pkg/demoinfocs"
msg "github.com/markus-wa/demoinfocs-golang/v4/pkg/demoinfocs/msg"
ex "github.com/markus-wa/demoinfocs-golang/v5/examples"
demoinfocs "github.com/markus-wa/demoinfocs-golang/v5/pkg/demoinfocs"
msg "github.com/markus-wa/demoinfocs-golang/v5/pkg/demoinfocs/msg"
)

// Run like this: go run netmessages.go -demo /path/to/demo.dem > out.png
Expand Down
8 changes: 4 additions & 4 deletions examples/print-events/print_events.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ import (
"fmt"
"os"

ex "github.com/markus-wa/demoinfocs-golang/v4/examples"
demoinfocs "github.com/markus-wa/demoinfocs-golang/v4/pkg/demoinfocs"
common "github.com/markus-wa/demoinfocs-golang/v4/pkg/demoinfocs/common"
events "github.com/markus-wa/demoinfocs-golang/v4/pkg/demoinfocs/events"
ex "github.com/markus-wa/demoinfocs-golang/v5/examples"
demoinfocs "github.com/markus-wa/demoinfocs-golang/v5/pkg/demoinfocs"
common "github.com/markus-wa/demoinfocs-golang/v5/pkg/demoinfocs/common"
events "github.com/markus-wa/demoinfocs-golang/v5/pkg/demoinfocs/events"
)

// Run like this: go run print_events.go -demo /path/to/demo.dem
Expand Down
4 changes: 2 additions & 2 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github.com/markus-wa/demoinfocs-golang/v4
module github.com/markus-wa/demoinfocs-golang/v5

require (
github.com/golang/geo v0.0.0-20230421003525-6adc56603217
Expand Down Expand Up @@ -27,4 +27,4 @@ require (
gopkg.in/yaml.v3 v3.0.1 // indirect
)

go 1.21
go 1.23
2 changes: 1 addition & 1 deletion pkg/demoinfocs/common/common.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (

"github.com/golang/geo/r3"

st "github.com/markus-wa/demoinfocs-golang/v4/pkg/demoinfocs/sendtables"
st "github.com/markus-wa/demoinfocs-golang/v5/pkg/demoinfocs/sendtables"
)

// Team is the type for the various TeamXYZ constants.
Expand Down
4 changes: 2 additions & 2 deletions pkg/demoinfocs/common/common_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import (
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/mock"

st "github.com/markus-wa/demoinfocs-golang/v4/pkg/demoinfocs/sendtables"
stfake "github.com/markus-wa/demoinfocs-golang/v4/pkg/demoinfocs/sendtables/fake"
st "github.com/markus-wa/demoinfocs-golang/v5/pkg/demoinfocs/sendtables"
stfake "github.com/markus-wa/demoinfocs-golang/v5/pkg/demoinfocs/sendtables/fake"
)

var s1DemoInfoProvider = demoInfoProviderMock{
Expand Down
2 changes: 1 addition & 1 deletion pkg/demoinfocs/common/entity_util.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package common

import st "github.com/markus-wa/demoinfocs-golang/v4/pkg/demoinfocs/sendtables"
import st "github.com/markus-wa/demoinfocs-golang/v5/pkg/demoinfocs/sendtables"

func getInt(entity st.Entity, propName string) int {
if entity == nil {
Expand Down
2 changes: 1 addition & 1 deletion pkg/demoinfocs/common/equipment.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (

"github.com/oklog/ulid/v2"

st "github.com/markus-wa/demoinfocs-golang/v4/pkg/demoinfocs/sendtables"
st "github.com/markus-wa/demoinfocs-golang/v5/pkg/demoinfocs/sendtables"
)

// EquipmentClass is the type for the various EqClassXYZ constants.
Expand Down
2 changes: 1 addition & 1 deletion pkg/demoinfocs/common/equipment_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (

"github.com/stretchr/testify/assert"

st "github.com/markus-wa/demoinfocs-golang/v4/pkg/demoinfocs/sendtables"
st "github.com/markus-wa/demoinfocs-golang/v5/pkg/demoinfocs/sendtables"
)

func TestEquipmentElement_Class(t *testing.T) {
Expand Down
4 changes: 2 additions & 2 deletions pkg/demoinfocs/common/hostage.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ package common
import (
"github.com/golang/geo/r3"

"github.com/markus-wa/demoinfocs-golang/v4/pkg/demoinfocs/constants"
st "github.com/markus-wa/demoinfocs-golang/v4/pkg/demoinfocs/sendtables"
"github.com/markus-wa/demoinfocs-golang/v5/pkg/demoinfocs/constants"
st "github.com/markus-wa/demoinfocs-golang/v5/pkg/demoinfocs/sendtables"
)

// HostageState is the type for the various HostageStateXYZ constants.
Expand Down
4 changes: 2 additions & 2 deletions pkg/demoinfocs/common/hostage_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import (

"github.com/stretchr/testify/assert"

"github.com/markus-wa/demoinfocs-golang/v4/pkg/demoinfocs/constants"
st "github.com/markus-wa/demoinfocs-golang/v4/pkg/demoinfocs/sendtables"
"github.com/markus-wa/demoinfocs-golang/v5/pkg/demoinfocs/constants"
st "github.com/markus-wa/demoinfocs-golang/v5/pkg/demoinfocs/sendtables"
)

func TestHostage_Leader(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion pkg/demoinfocs/common/inferno.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
"github.com/golang/geo/r3"
"github.com/markus-wa/quickhull-go/v2"

st "github.com/markus-wa/demoinfocs-golang/v4/pkg/demoinfocs/sendtables"
st "github.com/markus-wa/demoinfocs-golang/v5/pkg/demoinfocs/sendtables"
)

// Inferno is a list of Fires with helper functions.
Expand Down
Loading

0 comments on commit bfd852d

Please sign in to comment.