Ink.Parsed.Gather.GenerateRuntimeObject C# (CSharp) Method

GenerateRuntimeObject() public method

public GenerateRuntimeObject ( ) : Runtime.Object
return Runtime.Object
        public override Runtime.Object GenerateRuntimeObject ()
        {
            var container = new Runtime.Container ();
            container.name = name;

            if (this.story.countAllVisits) {
                container.visitsShouldBeCounted = true;
                container.turnIndexShouldBeCounted = true;
            }

            container.countingAtStartOnly = true;

            // A gather can have null content, e.g. it's just purely a line with "-"
            if (content != null) {
                foreach (var c in content) {
                    container.AddContent (c.runtimeObject);
                }
            }

            return container;

        }