Ink.Parsed.Weave.Weave C# (CSharp) Method

Weave() public method

public Weave ( List cont, int indentIndex = -1 ) : System.Collections.Generic
cont List
indentIndex int
return System.Collections.Generic
        public Weave(List<Parsed.Object> cont, int indentIndex=-1) 
        {
            if (indentIndex == -1) {
                baseIndentIndex = DetermineBaseIndentationFromContent (cont);
            } else {
                baseIndentIndex = indentIndex;
            }

            AddContent (cont);

            ConstructWeaveHierarchyFromIndentation ();

            // Only base level weaves keep track of named weave points
            if (indentIndex == 0) {

                var namedWeavePoints = FindAll<IWeavePoint> (w => w.name != null && w.name.Length > 0);

                _namedWeavePoints = new Dictionary<string, IWeavePoint> ();

                foreach (var weavePoint in namedWeavePoints) {
                    _namedWeavePoints [weavePoint.name] = weavePoint;
                }
            }
        }