v2.0.0-beta.4
Pre-release
Pre-release
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-golangtogithub.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)
- These interfaces already existed before but used to be prefixed with
- Replaced many struct fields in package
commonwith getter funcs - Replaced
Player.AdditionalPlayerInfo.XXXwith getter funcs on thePlayerstruct - Removed or replaced all previously deprecated methods, fields and events
- Renamed field
EquipmentElement.WeapontoEquipmentElement.Type - Renamed field
Player.RawWeaponstoPlayer.Inventory - Renamed func
Entity.PropertiesI()toEntity.Properties() - Renamed func
Entity.FindPropertyI()toEntity.Property() - Changed type of
Equipment.ZoomLevelfrominttoZoomLevel
New Features / Changes
- Added constants
common.Zoom{None,Half,Full} - Updated protobuf code (re-generated with new
protocversion)