Refactor: move ResourceLoading to swarm-util #2162
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Now that
Failure
is moved toswarm-util
(#2155), that was the last remaining dependency ofSwarm.Game.ResourceLoading
which prevented it from moving as well. TheResourceLoading
code is not specific to Swarm scenarios; this PR moves it toswarm-util
to make it more generally applicable.In fact, the
ResourceLoading
code is already being used to load.sw
files when executing theRun
command; in order to implement #495 we will need to do that loading in order to resolveimport
expressions, but that code will live inswarm-lang
, which cannot importswarm-scenario
.