/// <summary> /// Gets the child objects read from a child block. /// </summary> /// <param name="source">The block that the children belong to.</param> /// <returns>The child objects of the block.</returns> public ScriptObject[] GetChildren(ScriptObjectTagBlock source) { return(_children[source]); }
/// <summary> /// Registers a child block with this block. /// </summary> /// <param name="child">The child block to register.</param> public void RegisterChild(ScriptObjectTagBlock child) { _children.Add(child); }
/// <summary> /// Registers an array of child objects with the object. /// </summary> /// <param name="source">The block that the children belong to.</param> /// <param name="children">The child objects.</param> public void RegisterChildren(ScriptObjectTagBlock source, ScriptObject[] children) { _children[source] = children; }