Zinc dual index pattern

From Crainax/War3Lib · View interactive version

Zinc dual index pattern is an AI agent skill from the GitHub repository Crainax/War3Lib. War3Lib/Xlimon 的 Zinc/JASS 紧凑数组、尾部交换删除(swap-remove)与双索引/分组索引模式。 用于实现或 review 高频 create/destroy 的 Buff、Effect、Queue、中央计时器、按玩家分组列表、物品或召唤物紧凑表; 当需要 removeAt、O(1) 删除、遍历删除回退、并行数组同步 swap、或全局视图+分组视图索引一致性时使用。

How to use this skill

Skill file

Zinc 双重索引 + 紧凑数组模式(War3Lib/Xlimon)

按需加载参考文档;先根据当前仓库选择对应示例,再实现:

仓库分流

References(按需打开)

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.