private void VisitChild(DecoratorBehaviour <TContext> obj) { _depth++; obj.Child.Accept(this); _depth--; }
private void RenderBehaviourTree(Graphics graphics, int depth, DecoratorBehaviour <BtContext> obj) { RenderInternal(graphics, depth, obj); RenderBehaviourTree(graphics, ++depth, obj.Child); }
private static string GetExpression(DecoratorBehaviour <TContext> obj, int depth) { return (InternalGetExpression(obj, depth) + GetExpression(obj.Child, ++depth)); }
public void Visit(DecoratorBehaviour <TContext> obj) { PrintNode(obj); VisitChild(obj); }