-
-
Notifications
You must be signed in to change notification settings - Fork 577
Open
Description
There are some annoying differences/omissions between count*() functions and enum*() functions... Would it be possible to make these more consistent?
enumDroid() / countDroid()
enumDroid()
playerparam doesn't supportALL_PLAYERS,ALLIESorENEMIESconstants.
countDriod()
playerparam doesn't supportALL_PLAYERS,ALLIESorENEMIESconstants.droidTypeparam doesn't support all types, resulting in scripts falling back to slowerenumDroid(...).length- Missing
viewerparam.
enumStruct() / countStruct()
Their parameters are reversed: countStruct(struct, player), vs. enumStruct(player, struct) - this keeps tripping me up, but I can't see any viable way to resolve that at this point without breaking lots of stuff :/
enumStruct()
playerparam doesn't supportALL_PLAYERS,ALLIESorENEMIESconstants.
countStruct()
- Can't use stattype constants as filter which is hugely limiting
- Missing
viewerparam. Adding this param would be extremely useful for AIs (eg. seeisFullBase()method in bonecrusher'sfunctions.js)
enumFeature() / countFeature()
enumFeature()
- Not able to use stattype to filter, eg.
OIL_DRUMorARTIFACT
countFeature()
- Missing function. It would be useful to count oil resources in particular.
enumRange() / countRange()
countRange()
- Missing function.
Metadata
Metadata
Assignees
Labels
No labels