 | AgentDataGetTaskDataT Method |
Tries to cast the current task data to the specified type and returns it. Throws an exception if there is no current task data or if it couldn't be casted.
Namespace: Slash.AI.BehaviorTrees.ImplementationsAssembly: Slash.AI.BehaviorTrees (in Slash.AI.BehaviorTrees.dll) Version: 1.0.6018.40184
Syntaxpublic T GetTaskData<T>()
where T : ITaskData
Public Function GetTaskData(Of T As ITaskData) As T
public:
generic<typename T>
where T : ITaskData
virtual T GetTaskData() sealed
abstract GetTaskData : unit -> 'T when 'T : ITaskData
override GetTaskData : unit -> 'T when 'T : ITaskData
Type Parameters
- T
- Expected type of task data.
Return Value
Type:
T Current task data, casted to specified type.
Implements
IAgentDataGetTaskDataT
Exceptions
See Also