/// <summary> /// check the given template against the content of the object return the list of position where the template matche /// </summary> /// <param name="template">The template to chek </param> /// <param name="operation">operations to perform on the template (RXY) </param> /// <returns>List of position where the template Matches</returns> public List <Position> Matches(MapTemplate template, string operations, bool strict = false) { return(CharUtils.Matches(Content, template.Content, operations, strict: strict)); }
/// <summary> /// check the current template against a given map and return the list of position where both template matche /// </summary> /// <param name="destination">The template to chekc the template against. It should be bigger than the template</param> /// <returns>List of position where the template Matches</returns> public List <Position> Matches(MapTemplate content, bool strict = false) { return(CharUtils .Matches(map: content.Content, template: Content, "", strict: strict)); }