 | IAgentDataGetTaskDataT 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.InterfacesAssembly: Slash.AI.BehaviorTrees (in Slash.AI.BehaviorTrees.dll) Version: 1.0.6018.40184
SyntaxT GetTaskData<T>()
where T : ITaskData
Function GetTaskData(Of T As ITaskData) As T
generic<typename T>
where T : ITaskData
T GetTaskData()
abstract 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.
Exceptions
See Also