Skip to content

Commit a4a02b4

Browse files
committed
refactor: rename RecordingPlayerDetected event to POVRecordingPlayerDetected
1 parent 58e4196 commit a4a02b4

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

pkg/demoinfocs/events/events.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@ import (
1818
// A frame can contain multiple ticks (usually 2 or 4) if the tv_snapshotrate differs from the tick-rate the game was played at.
1919
type FrameDone struct{}
2020

21-
// RecordingPlayerDetected signals that a player started recording the demo locally.
21+
// POVRecordingPlayerDetected signals that a player started recording the demo locally.
2222
// If this event is dispatched, it means it's a client-side (POV) demo.
23-
type RecordingPlayerDetected struct {
23+
type POVRecordingPlayerDetected struct {
2424
PlayerSlot int
2525
PlayerInfo common.PlayerInfo
2626
}

pkg/demoinfocs/stringtables.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ func (p *parser) processStringTable(tab *msg.CSVCMsg_CreateStringTable) {
241241

242242
if p.header.ClientName == player.Name {
243243
p.recordingPlayerSlot = entryIndex
244-
p.eventDispatcher.Dispatch(events.RecordingPlayerDetected{PlayerSlot: entryIndex, PlayerInfo: player})
244+
p.eventDispatcher.Dispatch(events.POVRecordingPlayerDetected{PlayerSlot: entryIndex, PlayerInfo: player})
245245
}
246246

247247
p.setRawPlayer(entryIndex, player)

0 commit comments

Comments
 (0)