public void createBlankXACTTemplate() { string path = Path.Combine(TemplateMusicDirectory, "XACT"); if (!Directory.Exists(path)) { Directory.CreateDirectory(path); } if (!File.Exists(Path.Combine(path, "MusicPackInformation.json"))) { MusicPackMetaData blankMetaData = new MusicPackMetaData(); blankMetaData.writeToJson(Path.Combine(path, "MusicPackInformation.json")); } if (!File.Exists(Path.Combine(path, "readme.txt"))) { string info = "Place the Wave Bank.xwb file and Sound Bank.xsb file you created in XACT in a similar directory in Content/Music/XACT/SoundPackName with a new meta data to load it!"; File.WriteAllText(Path.Combine(path, "readme.txt"), info); } }
/// <summary> /// Used to create a blank XACT music pack example. /// </summary> public void createBlankXACTTemplate() { string path = Path.Combine(TemplateMusicDirectory, "XACT"); if (!Directory.Exists(path)) { Directory.CreateDirectory(path); } if (!File.Exists(Path.Combine(path, "MusicPackInformation.json"))) { MusicPackMetaData blankMetaData = new MusicPackMetaData("Omegas's Music Data Example", "Omegasis", "Just a simple example of how metadata is formated for music packs. Feel free to copy and edit this one!", "1.0.0 CoolExample", "Icon.png"); blankMetaData.writeToJson(Path.Combine(path, "MusicPackInformation.json")); } if (!File.Exists(Path.Combine(path, "readme.txt"))) { string info = "Place the Wave Bank.xwb file and Sound Bank.xsb file you created in XACT in a similar directory in Content/Music/XACT/SoundPackName.\nModify MusicPackInformation.json as desire!\nRun the mod!"; File.WriteAllText(Path.Combine(path, "readme.txt"), info); } }
/// <summary> /// USed to create a blank WAV music pack example. /// </summary> public void createBlankWAVTemplate() { string path = Path.Combine(TemplateMusicDirectory, "WAV"); string pathSongs = Path.Combine(path, "Songs"); if (!Directory.Exists(path)) { Directory.CreateDirectory(path); } if (!Directory.Exists(pathSongs)) { Directory.CreateDirectory(pathSongs); } if (!File.Exists(Path.Combine(path, "MusicPackInformation.json"))) { MusicPackMetaData blankMetaData = new MusicPackMetaData("Omegas's Music Data Example", "Omegasis", "Just a simple example of how metadata is formated for music packs. Feel free to copy and edit this one!", "1.0.0 CoolExample", "Icon"); blankMetaData.writeToJson(Path.Combine(path, "MusicPackInformation.json")); } if (!File.Exists(Path.Combine(path, "readme.txt"))) { string info = "Place the .wav song files in the Songs folder, modify the MusicPackInformation.json as desired, and then run!"; File.WriteAllText(Path.Combine(path, "readme.txt"), info); } }