MSoundConfig.fromConfig constructor

MSoundConfig.fromConfig({
  1. required MConfig config,
})

Implementation

MSoundConfig.fromConfig({required MConfig config}) {
  debug = config.config['debug'];
  soundPath = config.config["sound-path"] ?? "asset/sound";
}