Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
themeRDark
languagejavascript
linenumberstrue
backport._$.eventPickup = DROID_CONSTRUCT; // filter droid iteration to construction droids

...

:
backport._$.eventPickupFilter = DROID_CONSTRUCT;

Notes

This backport takes advantage of a little-known scenario inĀ eventDestroyed(), namely that the event will be triggered when any feature is removed from the map (eg. a tree is destroyed or an oil barrel is picked up, etc).

...