private IBook DispatchParse(IParser parser, string type) { IBook book = type switch { "Compendium" => Publisher.Compendium_FromYaml(parser), "TomeOfChaos" => Publisher.Tome_FromYaml(parser), "Herbal" => Publisher.Herbal_FromYaml(parser), "SocialRegister" => Publisher.Register_FromYaml(parser, Creator), "Dramaticon" => Publisher.Dramaticon_FromYaml(parser), "Atlas" => Publisher.Atlas_FromYaml(parser), //0.1.SAVE: Read remainder of Compendium _ => throw new NotImplementedException($"NI: Dispatch parse of book type [{type}]."), }; return(book); }