]> git.sesse.net Git - pkanalytics/blobdiff - events.h
Make it possible to seek to an event by clicking on it.
[pkanalytics] / events.h
index db11ed0776fa850b5ec8265e065c6fd785b904c5..56fcbaff53a07ec93278b9af3a9d4bcc94794229 100644 (file)
--- a/events.h
+++ b/events.h
@@ -28,6 +28,7 @@ public:
        unsigned insert_event(uint64_t t, int player_id);  // Returns the row.
        void delete_event(unsigned row);
        void set_event_type(unsigned row, const std::string &type);
+       uint64_t get_time(unsigned row) { return events[row].t; }
 
        struct Status {
                unsigned our_score, their_score;