Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

将地图池地图移动至其他目录,以及移除Ramdon2P #142

Open
RushFTK opened this issue Aug 6, 2017 · 0 comments
Open

将地图池地图移动至其他目录,以及移除Ramdon2P #142

RushFTK opened this issue Aug 6, 2017 · 0 comments
Assignees

Comments

@RushFTK
Copy link
Collaborator

RushFTK commented Aug 6, 2017

现象

随着babywars地图池逐渐增大,诸如Ramdon2P.lua等包含若干地图的特殊地图渐渐的变得更加难找到。而且这类地图的属性组成与普通的地图也有区别,并且需要频繁维护
此外,个人认为Ramdon2P.lua中的数据相对冗余。

建议

  1. 为了加快效率,建议将其移动到原本目录的子目录下,或者单开上级目录去存放。
  2. 娱乐图,测试图是不是应有固有的特别属性来进行识别,因为Ramdon2P显然是全部playersCount = 2的非娱乐测试图,对WarFieldList.lua中的全部地图遍历即可,在WarFieldList.lua故意有序维护的情况下,更可以在条件不符时直接终止遍历,其时间复杂度为线性级,不会造成影响。
    然后可以移除Ramdon2P.lua减小维护量。
    后缀_HighQuality 类似
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant