增加List处理功能

This commit is contained in:
2025-09-04 14:30:09 +08:00
parent 80390e48a7
commit 4235742d87
13 changed files with 615 additions and 82 deletions
+7 -1
View File
@@ -39,8 +39,14 @@ public:
static LuaNPKFileList* createEmpty();
static void destroy(LuaNPKFileList* instance);
public:
bool loadListFromFile(const char* wszListFile/*utf8*/, const char* prefix, uint32_t flags, bool bEnableDuplicate);
bool dumpToLocalFile(const char* wszListFile/*utf8*/, uint32_t flags);
bool mergeOtherListInto(const LuaNPKFileList* sourceFileList, bool bEnableDuplicate);
bool applyToLocalNPKFiles(const char* wszNPKBase/*utf8*/);
int32_t getFileCounts(void) const;
LuaNPKFileItemFullInfo getFileItem(int32_t index) const;
LuaNPKFileItemFullInfo getFileItemFromIndex(int32_t index) const;
LuaNPKFileItemFullInfo getFileItemFromName(const char* szKeyName) const;
public:
NPK::IFileList* m_pFileList = nullptr;