NodeMatcher
ReferencesA class used for finding matching child-chunks. Use this if you do not wish to merely compare all chunks in an archive using their Locations.
Methods
Find
#public virtual bool Find(Node baseNode, IReadOnlyList<Node> potentialMatches, out int matchingIndex)
Override this method to provide customised chunk matching. The default behaviour matches chunks based on their Location.
Parameters:
| baseNode (Node) | Base chunk to match. |
| potentialMatches (IReadOnlyList<Node>) | List of possible matches. |
| matchingIndex (out int) | The index within the list of potential matches which matches the base chunk, or -1 if there is no match. |
Returns: True if the matchingIndex represents a meaningful value.