Hacknet-Pathfinder icon indicating copy to clipboard operation
Hacknet-Pathfinder copied to clipboard

Rewrite ActionsLoader to use the executor system

Open ghost opened this issue 3 years ago • 0 comments

Currently, ActionsLoader is inconsistent with the rest of the loader replacements. It uses a switch statement to check an element's type instead of the much more extensible IExecutor, which is used by all of the other loaders.

What should be done:

  • Add executor interfaces to ActionsLoader.
  • Rewrite LoadActionSets and ReadAction to use said executors.
  • Optionally rename ReadAction to LoadAction for consistency with other method names.

ghost avatar Aug 01 '21 01:08 ghost