Interface ICustomTerminationPrecondition<TStateData>
Custom implementation of a precondition for an termination
Namespace: Unity.AI.Planner.Traits
Syntax
public interface ICustomTerminationPrecondition<TStateData>
where TStateData : struct, IStateData
Type Parameters
Name | Description |
---|---|
TStateData | State data Type |
Methods
CheckCustomPrecondition(TStateData)
Check the validity of a termination for a given state
Declaration
bool CheckCustomPrecondition(TStateData state)
Parameters
Type | Name | Description |
---|---|---|
TStateData | state | Current state |
Returns
Type | Description |
---|---|
Boolean | True if the action is valid |