From 06f0726dc4f5550bb708ac2df6932bda21b0a066 Mon Sep 17 00:00:00 2001 From: PhatPhuckDave Date: Sat, 17 May 2025 20:14:29 +0200 Subject: [PATCH] Add C_NewItems module with functions for managing new item flags in inventory --- C_NewItems.lua | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 C_NewItems.lua diff --git a/C_NewItems.lua b/C_NewItems.lua new file mode 100644 index 0000000..3434309 --- /dev/null +++ b/C_NewItems.lua @@ -0,0 +1,22 @@ +---@diagnostic disable: missing-return, lowercase-global +---@meta +--- +--- C_NewItems is a namespace for functions related to new item flags in the player's inventory. +--- +--- @class C_NewItems +C_NewItems = { + --- Clears the new item flag on all items in the player's inventory. + --- @return nil + ClearAll = function() end, + + --- Returns true if the item in the inventory slot is flagged as new. + --- @param containerIndex number: The index of the container. + --- @param slotIndex number: The index of the slot. + --- @return boolean: isNew + IsNewItem = function(containerIndex, slotIndex) end, + + --- Clears the "new item" flag. + --- @param containerIndex number: The index of the container. + --- @param slotIndex number: The index of the slot. + RemoveNewItem = function(containerIndex, slotIndex) end, +}