private Element AddProcedure(XmlReader reader) { Dictionary <string, string> data = GameLoader.GetRequiredAttributes(reader, RequiredAttributes); Element proc = WorldModel.AddProcedure(data["name"]); SetupProcedure(proc, data["type"], GameLoader.GetTemplateContents(reader), data["name"], data["parameters"]); return(proc); }