Ejemplo n.º 1
0
 /// <summary>
 /// more "flow aware" version of calling RequestExecution(this) on owning behavior tree component
 /// <para>should be used in external events that may change result of CalculateRawConditionValue </para>
 /// </summary>
 protected void ConditionalFlowAbort(UBehaviorTreeComponent ownerComp, EBTDecoratorAbortRequest requestMode)
 => E_UBTDecorator_ConditionalFlowAbort(this, ownerComp, (byte)requestMode);
Ejemplo n.º 2
0
 /// <summary>
 /// check if child node can execute new subtree
 /// </summary>
 public virtual bool CanPushSubtree(UBehaviorTreeComponent ownerComp, byte nodeMemory, int childIdx)
 => E_UBTCompositeNode_CanPushSubtree(this, ownerComp, nodeMemory, childIdx);
Ejemplo n.º 3
0
 /// <summary>
 /// wrapper for node instancing: CalculateRawConditionValue
 /// </summary>
 public bool WrappedCanExecute(UBehaviorTreeComponent ownerComp, byte nodeMemory)
 => E_UBTDecorator_WrappedCanExecute(this, ownerComp, nodeMemory);
Ejemplo n.º 4
0
 /// <summary>
 /// calculates raw, core value of decorator's condition. Should not include calling IsInversed
 /// </summary>
 protected virtual bool CalculateRawConditionValue(UBehaviorTreeComponent ownerComp, byte nodeMemory)
 => E_UBTDecorator_CalculateRawConditionValue(this, ownerComp, nodeMemory);
Ejemplo n.º 5
0
 protected bool CalculateRawConditionValueImpl(UBehaviorTreeComponent ownerComp)
 => E_UBTDecorator_BlueprintBase_CalculateRawConditionValueImpl(this, ownerComp);
Ejemplo n.º 6
0
 /// <summary>
 /// return if this decorator should abort in current circumstances
 /// </summary>
 public bool GetShouldAbort(UBehaviorTreeComponent ownerComp)
 => E_UBTDecorator_BlueprintBase_GetShouldAbort(this, ownerComp);
Ejemplo n.º 7
0
 /// <summary>
 /// wrapper for node instancing: OnCeaseRelevant
 /// </summary>
 public void WrappedOnCeaseRelevant(UBehaviorTreeComponent ownerComp, byte nodeMemory)
 => E_UBTAuxiliaryNode_WrappedOnCeaseRelevant(this, ownerComp, nodeMemory);
Ejemplo n.º 8
0
 protected void WaitForMessage(UBehaviorTreeComponent ownerComp, string messageType, int requestID)
 => E_UBTTaskNode_WaitForMessage_o1(this, ownerComp, messageType, requestID);
Ejemplo n.º 9
0
 /// <summary>
 /// called when auxiliary node becomes inactive
 /// <para>this function should be considered as const (don't modify state of object) if node is not instanced! </para>
 /// </summary>
 protected virtual void OnCeaseRelevant(UBehaviorTreeComponent ownerComp, byte nodeMemory)
 => E_UBTAuxiliaryNode_OnCeaseRelevant(this, ownerComp, nodeMemory);
Ejemplo n.º 10
0
 /// <summary>
 /// tick function
 /// <para>this function should be considered as const (don't modify state of object) if node is not instanced! </para>
 /// </summary>
 protected virtual void TickNode(UBehaviorTreeComponent ownerComp, byte nodeMemory, float deltaSeconds)
 => E_UBTAuxiliaryNode_TickNode(this, ownerComp, nodeMemory, deltaSeconds);
Ejemplo n.º 11
0
 /// <summary>
 /// unregister message observers
 /// </summary>
 protected void StopWaitingForMessages(UBehaviorTreeComponent ownerComp)
 => E_UBTTaskNode_StopWaitingForMessages(this, ownerComp);
Ejemplo n.º 12
0
 /// <summary>
 /// message handler, default implementation will finish latent execution/abortion
 /// <para>this function should be considered as const (don't modify state of object) if node is not instanced! </para>
 /// </summary>
 protected virtual void OnMessage(UBehaviorTreeComponent ownerComp, byte nodeMemory, string message, int requestID, bool bSuccess)
 => E_UBTTaskNode_OnMessage(this, ownerComp, nodeMemory, message, requestID, bSuccess);
Ejemplo n.º 13
0
 /// <summary>
 /// helper function: finishes latent aborting
 /// </summary>
 public void FinishLatentAbort(UBehaviorTreeComponent ownerComp)
 => E_UBTTaskNode_FinishLatentAbort(this, ownerComp);
Ejemplo n.º 14
0
 /// <summary>
 /// is child execution allowed by decorators?
 /// </summary>
 public bool DoDecoratorsAllowExecution(UBehaviorTreeComponent ownerComp, int instanceIdx, int childIdx)
 => E_UBTCompositeNode_DoDecoratorsAllowExecution(this, ownerComp, instanceIdx, childIdx);
Ejemplo n.º 15
0
 /// <summary>
 /// wrapper for node instancing: TickNode
 /// </summary>
 public void WrappedTickNode(UBehaviorTreeComponent ownerComp, byte nodeMemory, float deltaSeconds)
 => E_UBTAuxiliaryNode_WrappedTickNode(this, ownerComp, nodeMemory, deltaSeconds);
Ejemplo n.º 16
0
 public FBehaviorTreeSearchData(UBehaviorTreeComponent inOwnerComp) :
     base(E_CreateStruct_FBehaviorTreeSearchData_UBehaviorTreeComponent(inOwnerComp), false)
 {
 }
Ejemplo n.º 17
0
 /// <summary>
 /// register message observer
 /// </summary>
 protected void WaitForMessage(UBehaviorTreeComponent ownerComp, string messageType)
 => E_UBTTaskNode_WaitForMessage(this, ownerComp, messageType);