Versions in this module Expand all Collapse all v2 v2.4.0 Oct 14, 2020 Changes in this version + type GameState struct + func (gs *GameState) Bomb() *common.Bomb + func (gs *GameState) ConVars() map[string]string + func (gs *GameState) Entities() map[int]st.Entity + func (gs *GameState) GamePhase() common.GamePhase + func (gs *GameState) GrenadeProjectiles() map[int]*common.GrenadeProjectile + func (gs *GameState) Infernos() map[int]*common.Inferno + func (gs *GameState) IngameTick() int + func (gs *GameState) IsMatchStarted() bool + func (gs *GameState) IsWarmupPeriod() bool + func (gs *GameState) Participants() demoinfocs.Participants + func (gs *GameState) Team(team common.Team) *common.TeamState + func (gs *GameState) TeamCounterTerrorists() *common.TeamState + func (gs *GameState) TeamTerrorists() *common.TeamState + func (gs *GameState) TotalRoundsPlayed() int + func (gs *GameState) Weapons() map[int]*common.Equipment + type Parser struct + Events map[int][]interface{} + NetMessages map[int][]interface{} + func NewParser() *Parser + func (p *Parser) Cancel() + func (p *Parser) Close() + func (p *Parser) CurrentFrame() int + func (p *Parser) CurrentTime() time.Duration + func (p *Parser) GameState() demoinfocs.GameState + func (p *Parser) Header() common.DemoHeader + func (p *Parser) MockEvents(events ...interface{}) + func (p *Parser) MockEventsFrame(frame int, events ...interface{}) + func (p *Parser) MockNetMessages(messages ...interface{}) + func (p *Parser) MockNetMessagesFrame(frame int, messages ...interface{}) + func (p *Parser) ParseHeader() (common.DemoHeader, error) + func (p *Parser) ParseNextFrame() (b bool, err error) + func (p *Parser) ParseToEnd() (err error) + func (p *Parser) Progress() float32 + func (p *Parser) RegisterEventHandler(handler interface{}) dp.HandlerIdentifier + func (p *Parser) RegisterNetMessageHandler(handler interface{}) dp.HandlerIdentifier + func (p *Parser) ServerClasses() st.ServerClasses + func (p *Parser) TickRate() float64 + func (p *Parser) TickTime() time.Duration + func (p *Parser) UnregisterEventHandler(identifier dp.HandlerIdentifier) + func (p *Parser) UnregisterNetMessageHandler(identifier dp.HandlerIdentifier) + type Participants struct + func (ptcp *Participants) All() []*common.Player + func (ptcp *Participants) AllByUserID() map[int]*common.Player + func (ptcp *Participants) ByEntityID() map[int]*common.Player + func (ptcp *Participants) ByUserID() map[int]*common.Player + func (ptcp *Participants) Connected() []*common.Player + func (ptcp *Participants) FindByHandle(handle int) *common.Player + func (ptcp *Participants) Playing() []*common.Player + func (ptcp *Participants) SpottedBy(spotter *common.Player) []*common.Player + func (ptcp *Participants) SpottersOf(spotted *common.Player) []*common.Player + func (ptcp *Participants) TeamMembers(team common.Team) []*common.Player