Skip to content

Commit a61264f

Browse files
micvbangmarkus-wa
authored andcommitted
parser: expose copy of demo's header.
1 parent 3dcc047 commit a61264f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

parser.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,10 @@ func (p *Parser) Map() string {
5858
return p.header.MapName
5959
}
6060

61+
func (p *Parser) Header() common.DemoHeader {
62+
return *p.header
63+
}
64+
6165
// Participants returns all connected players.
6266
// This includes spectators.
6367
func (p *Parser) Participants() []*common.Player {

0 commit comments

Comments
 (0)