XVs32 / kcauto_custom

kcauto_custom, the successor to kcauto, a Kantai Collection (Kancolle) bot / automation tool
https://xvs32.github.io/kcauto_custom/
GNU General Public License v3.0
9 stars 2 forks source link

Startup so slow due to huge enum #104

Open XVs32 opened 1 month ago

XVs32 commented 1 month ago

What

How

Result

Reference

XVs32 commented 1 month ago

OK, let's break this thing into two stages

  1. Gen a maps.py with all possible normal maps enum, but E-1~E-10 without map variant. This will be what we have before the next event
  2. maps.py will be gen with dynamic local()[], it reads all the event map jsons to see what nodes(map variants) are valid, then declare the enums with local(). This will be the final version