1
#ifndef LG_COMMENTARY_H
2
#define LG_COMMENTARY_H
5
#include "fixture_struct.h"
6
#include "live_game_struct.h"
8
/** Tokens that get replaced in the commentary text. */
11
LG_TOKEN_TEAM_HOME = 0,
13
LG_TOKEN_TEAM_IN_POSS,
14
LG_TOKEN_TEAM_NOT_IN_POSS,
16
LG_TOKEN_TEAM_WINNING,
28
lg_commentary_get_player_name(const LiveGameUnit *unit, const Fixture *fix, gint player);
31
lg_commentary_set_strings(gchar *strings[][2], const LiveGameUnit *unit, const Fixture *fix);
34
lg_commentary_generate(LiveGameUnit *unit, const Fixture *fix);
37
lg_commentary_get_commentaries(gint event_type);
40
lg_commentary_get_extra_data(const LiveGameUnit *unit, const Fixture *fix);
43
lg_commentary_replace_tokens(const gchar *string, gchar *strings[][2], gchar *dest);