parse_npcs

Function parse_npcs 

Source
pub fn parse_npcs(source: &str) -> Result<Vec<NpcAst>, AstError>
Expand description

Parse only npcs from a source (helper/testing). Parse only NPC definitions from the given source.

ยงErrors

Returns an error if the source cannot be parsed into NPCs.