feat:下载、删除图片资源

This commit is contained in:
bietiaop 2024-07-14 23:36:17 +08:00
parent 65652f87ef
commit b450b7f08b
8 changed files with 180 additions and 7 deletions

View file

@ -83,3 +83,11 @@ export const atlasToID = name => {
const id = charNameToID(_name);
return id;
};
/**
* 获取所有角色ID
* @returns string[]
*/
export const getAllCharactersID = () => {
return Object.keys(PartnerId2SpriteId);
};