X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=events.h;h=df5fcb6a9b8c8b08871f2d76ef7804a5501652f7;hb=1f701edba5013eedf60558b568b3c72ab81a2c08;hp=8922496dc854284fcf4298aec6fabdd3f1d6950d;hpb=812ca0c734b4b297a5d6be8c171863491568e787;p=pkanalytics diff --git a/events.h b/events.h index 8922496..df5fcb6 100644 --- a/events.h +++ b/events.h @@ -27,7 +27,9 @@ public: unsigned insert_event(uint64_t t, std::optional player_id, std::optional formation_id, const std::string &type = "unknown"); // Returns the row. void delete_event(unsigned row); + std::string get_event_type(unsigned row) { return events[row].type; } void set_event_type(unsigned row, const std::string &type); + void set_event_formation(unsigned row, int formation_id); uint64_t get_time(unsigned row) { return events[row].t; } unsigned get_last_event_pos(uint64_t t) const; // Last event that happened at or before t. QModelIndex get_last_event_qt(uint64_t t) const {