seclerp / rider-monogame

MonoGame plugin for JetBrains Rider
https://plugins.jetbrains.com/plugin/18415-monogame
MIT License
30 stars 0 forks source link

MGCB Previewer: Analyze `.mgcb` file #1

Closed seclerp closed 2 years ago

seclerp commented 2 years ago

Need to parse all entries in .mgcb file and create entries with properties attached.

Example:

From:

/importer:TextureImporter
/processor:TextureProcessor
/processorParam:ColorKeyEnabled=false
/build:Textures\wood.png
/build:Textures\metal.png
/build:Textures\plastic.png

To:

BuildEntryProperties "Textures/wood.png" {
  importer = TextureImporter
  processor = TextureProcessor
  ProcessorParameters {
    ColorKeyEnabled = false
  }
}

BuildEntryProperties "Textures/metal.png" {
  importer = TextureImporter
  processor = TextureProcessor
  ProcessorParameters {
    ColorKeyEnabled = false
  }
}

BuildEntryProperties "Textures/plastic.png" {
  importer = TextureImporter
  processor = TextureProcessor
  ProcessorParameters {
    ColorKeyEnabled = false
  }
}