Click or drag to resize
DecoratorInsertChild Method
Inserts a child to this group task at the passed index.

Namespace: Slash.AI.BehaviorTrees.Implementations.Decorators
Assembly: Slash.AI.BehaviorTrees (in Slash.AI.BehaviorTrees.dll) Version: 1.0.6018.40184
Syntax
public void InsertChild(
	int index,
	ITask child
)

Parameters

index
Type: SystemInt32
Position to add child to.
child
Type: Slash.AI.BehaviorTrees.InterfacesITask
Child to insert.

Implements

ICompositeInsertChild(Int32, ITask)
Exceptions
ExceptionCondition
ArgumentOutOfRangeExceptionThrown if passed index isn't between 0 and Children.Count (inclusive).
ArgumentOutOfRangeExceptionThrown if passed index isn't between 0 and Capacity (exclusive).
ExceptionThrown if child couldn't be inserted because capacity was reached.
See Also