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-golang
togithub.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
common
with getter funcs - Replaced
Player.AdditionalPlayerInfo.XXX
with getter funcs on thePlayer
struct - Removed or replaced all previously deprecated methods, fields and events
- Renamed field
EquipmentElement.Weapon
toEquipmentElement.Type
- Renamed field
Player.RawWeapons
toPlayer.Inventory
- Renamed func
Entity.PropertiesI()
toEntity.Properties()
- Renamed func
Entity.FindPropertyI()
toEntity.Property()
- Changed type of
Equipment.ZoomLevel
fromint
toZoomLevel
New Features / Changes
- Added constants
common.Zoom{None,Half,Full}
- Updated protobuf code (re-generated with new
protoc
version)