Skip to content

v2.0.0-beta.4

Pre-release
Pre-release
Compare
Choose a tag to compare
@markus-wa markus-wa released this 10 Apr 21:54
· 187 commits to v2 since this release
423ddb7

Doc Links

The new docs are hosted on the fabulous new go.dev page.

Package docs: https://pkg.go.dev/mod/github.com/markus-wa/demoinfocs-golang/[email protected]
API docs: https://pkg.go.dev/github.com/markus-wa/demoinfocs-golang/[email protected]/pkg/demoinfocs?tab=doc

Go Get

Watch out, there's a new module path for go get and import!

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

Major Breaking Changes

  • Import path base has changed from github.com/markus-wa/demoinfocs-golang to github.com/markus-wa/demoinfocs-golang/v2/pkg/demoinfocs
  • Replaced main public structs with interfaces (Parser, GameState, Participants, Entity, Property)
    • These interfaces already existed before but used to be prefixed with I (e.g. IParser)
  • Replaced many struct fields in package common with getter funcs
  • Replaced Player.AdditionalPlayerInfo.XXX with getter funcs on the Player struct
  • Removed or replaced all previously deprecated methods, fields and events
  • Renamed field EquipmentElement.Weapon to EquipmentElement.Type
  • Renamed field Player.RawWeapons to Player.Inventory
  • Renamed func Entity.PropertiesI() to Entity.Properties()
  • Renamed func Entity.FindPropertyI() to Entity.Property()
  • Changed type of Equipment.ZoomLevel from int to ZoomLevel

New Features / Changes

  • Added constants common.Zoom{None,Half,Full}
  • Updated protobuf code (re-generated with new protoc version)