This PR adds a standalone msd package for interacting with .msd files. Documentation for the different methods and usage examples don't really exist yet but will likely be added some time in the future. In a nutshell:
Parse a .msd file using MsdParse.parse(Path msdPath) to get a Stage tree of the data it contains.
Edit your stage tree data. The Collision and Layer classes have a functional-ish TileMap API to simplify editing their data.
Write your Stage back to a file using MsdSerialize.serialize(Stage stage).
The only thing that has been updated so far to use this package is RcdReader.getRcdScriptInfo() (replacing the partial parsing it was doing before) but it will be used for other things later on.
This PR adds a standalone
msd
package for interacting with .msd files. Documentation for the different methods and usage examples don't really exist yet but will likely be added some time in the future. In a nutshell:MsdParse.parse(Path msdPath)
to get aStage
tree of the data it contains.Collision
andLayer
classes have a functional-ishTileMap
API to simplify editing their data.Stage
back to a file usingMsdSerialize.serialize(Stage stage)
.The only thing that has been updated so far to use this package is
RcdReader.getRcdScriptInfo()
(replacing the partial parsing it was doing before) but it will be used for other things later on.