Class Context
- Namespace
- VoxelPlayground.AI
- Assembly
- GamePlay.dll
[Serializable]
public class Context
- Inheritance
-
object
Context
Fields
defensiveCoverPoint
public Vector3 defensiveCoverPoint
Field Value
- Vector3
estimatedTargetVelocity
public Vector3 estimatedTargetVelocity
Field Value
- Vector3
infinitePathfindingDistance
public static int infinitePathfindingDistance
Field Value
- int
internalCounter_resetOnEnter
public float internalCounter_resetOnEnter
Field Value
- float
internalParam_noResetOnEnter
public float internalParam_noResetOnEnter
Field Value
- float
internalParams
public Dictionary<string, int> internalParams
Field Value
- Dictionary<string, int>
invalidPathfindingDistance
public static int invalidPathfindingDistance
Field Value
- int
moveToTargetObjectSurNormal
public Vector3 moveToTargetObjectSurNormal
Field Value
- Vector3
moveToTargetPosition
public Vector3 moveToTargetPosition
Field Value
- Vector3
obstaclesNearby
public List<EntityAttachmentItem> obstaclesNearby
Field Value
- List<EntityAttachmentItem>
ownerEntity
public EntityCharacter ownerEntity
Field Value
- EntityCharacter
pathNodesToTargetEntity
public List<Vector3> pathNodesToTargetEntity
Field Value
- List<Vector3>
RecreatePathFlag
public bool RecreatePathFlag
Field Value
- bool
sharedTimers
public Dictionary<string, float> sharedTimers
Field Value
- Dictionary<string, float>
subState
public AISubState subState
Field Value
- AISubState
targetObstacle
public Entity targetObstacle
Field Value
- Entity
targetWeapon
public EntityAttachmentItem targetWeapon
Field Value
- EntityAttachmentItem
Properties
coverObject
public EntityAttachmentItem coverObject { get; }
Property Value
- EntityAttachmentItem
IsTargetInDirectLineOfSight
public bool IsTargetInDirectLineOfSight { get; }
Property Value
- bool
PathfindingDistanceToTarget
public float PathfindingDistanceToTarget { get; }
Property Value
- float
TargetEntity
public EntityCharacter TargetEntity { get; set; }
Property Value
- EntityCharacter
Methods
CheckDirectLineOfSight()
public void CheckDirectLineOfSight()
ClearTimer(string)
public void ClearTimer(string key)
Parameters
key string
GetTimerRemainingTime(string)
public float GetTimerRemainingTime(string key)
Parameters
key string
Returns
- float
HasTimer(string)
public bool HasTimer(string key)
Parameters
key string
Returns
- bool
IsTargetObjectValid(EntityAttachmentItem)
public bool IsTargetObjectValid(EntityAttachmentItem coverObject)
Parameters
coverObject EntityAttachmentItem
Returns
- bool
IsTimerOver(string)
public bool IsTimerOver(string key)
Parameters
key string
Returns
- bool
RegisterCoverObject(EntityAttachmentItem)
public void RegisterCoverObject(EntityAttachmentItem coverObject)
Parameters
coverObject EntityAttachmentItem
RegisterInvalidObject(EntityAttachmentItem)
public void RegisterInvalidObject(EntityAttachmentItem coverObject)
Parameters
coverObject EntityAttachmentItem
SearchForTargetEntity()
public EntityCharacter SearchForTargetEntity()
Returns
- EntityCharacter
StartTimer(string, float)
public void StartTimer(string key, float duration)
Parameters
key string
duration float
UnregisterCoverObject()
public void UnregisterCoverObject()
Update(float)
public void Update(float deltaTime)
Parameters
deltaTime float
UpdatePathfindingDistanceToTarget()
public UniTask UpdatePathfindingDistanceToTarget()
Returns
- UniTask
UpdateTimers(float)
public void UpdateTimers(float deltaTime)
Parameters
deltaTime float