fix externally-generated item IDs in item tracking code

This commit is contained in:
Martin Michelsen
2023-10-25 16:55:27 -07:00
parent 5f0a6f3d8e
commit 6466eec106
4 changed files with 61 additions and 49 deletions
+1
View File
@@ -161,6 +161,7 @@ struct Lobby : public std::enable_shared_from_this<Lobby> {
ItemData remove_item(uint32_t item_id);
size_t find_item(uint32_t item_id);
uint32_t generate_item_id(uint8_t client_id);
void on_item_id_generated_externally(uint8_t client_id, uint32_t item_id);
static uint8_t game_event_for_lobby_event(uint8_t lobby_event);