Targeting System 2.0.0
Plugin for multipurpose targeting and visual effects.
Plugins.GeometricVision.TargetingSystem.Code.Interfaces.IGeoTargeting Interface Reference

Made to handle targeting logic. Usage: For new targeting behavior implement this interface and add it to the targeting systems list on the GeometryTargetingSystemsContainer component from GeometricVision component. More...

Inheritance diagram for Plugins.GeometricVision.TargetingSystem.Code.Interfaces.IGeoTargeting:
Plugins.GeometricVision.TargetingSystem.Code.GameObjects.ImplementationsGameObjects.GeometryLineTargeting Plugins.GeometricVision.TargetingSystem.Code.GameObjects.ImplementationsGameObjects.GeometryObjectTargeting Plugins.GeometricVision.TargetingSystem.Code.GameObjects.ImplementationsGameObjects.GeometryVertexTargeting

Public Member Functions

NativeArray< TargetGetTargetsAsNativeArray (Vector3 rayLocation, Vector3 rayDirection, GV_TargetingSystem gvTargetingSystem, TargetingInstruction targetingInstruction)
 Gets targeting data More...
 
NativeSlice< TargetGetTargetsAsNativeSlice (Vector3 rayLocation, Vector3 rayDirection, GV_TargetingSystem gvTargetingSystem, TargetingInstruction targetingInstruction)
 Gets targeting data from given point and direction. More...
 
JobHandle GetTargetsJobHandle (GV_TargetingSystem gvTargetingSystem)
 Gets targeting data JobHandle for give targeting system in cases where the jobs needs to be completed before accessing containers. More...
 
List< TargetGetTargets (Vector3 rayLocation, Vector3 rayDirection, GV_TargetingSystem gvTargetingSystem, TargetingInstruction targetingInstruction)
 Gets targeting data More...
 
bool IsForEntities ()
 For checking if is entity based /-system More...
 

Detailed Description

Made to handle targeting logic. Usage: For new targeting behavior implement this interface and add it to the targeting systems list on the GeometryTargetingSystemsContainer component from GeometricVision component.

Member Function Documentation

◆ GetTargets()

List< Target > Plugins.GeometricVision.TargetingSystem.Code.Interfaces.IGeoTargeting.GetTargets ( Vector3  rayLocation,
Vector3  rayDirection,
GV_TargetingSystem  gvTargetingSystem,
TargetingInstruction  targetingInstruction 
)

◆ GetTargetsAsNativeArray()

NativeArray< Target > Plugins.GeometricVision.TargetingSystem.Code.Interfaces.IGeoTargeting.GetTargetsAsNativeArray ( Vector3  rayLocation,
Vector3  rayDirection,
GV_TargetingSystem  gvTargetingSystem,
TargetingInstruction  targetingInstruction 
)

◆ GetTargetsAsNativeSlice()

NativeSlice< Target > Plugins.GeometricVision.TargetingSystem.Code.Interfaces.IGeoTargeting.GetTargetsAsNativeSlice ( Vector3  rayLocation,
Vector3  rayDirection,
GV_TargetingSystem  gvTargetingSystem,
TargetingInstruction  targetingInstruction 
)

Gets targeting data from given point and direction.

Parameters
rayLocationPoint where to get data from
rayDirection
gvTargetingSystem
targetingInstructionInstruction from targeting component to descibe what kind of targeting data to fetch
Returns

Implemented in Plugins.GeometricVision.TargetingSystem.Code.GameObjects.ImplementationsGameObjects.GeometryLineTargeting, Plugins.GeometricVision.TargetingSystem.Code.GameObjects.ImplementationsGameObjects.GeometryObjectTargeting, and Plugins.GeometricVision.TargetingSystem.Code.GameObjects.ImplementationsGameObjects.GeometryVertexTargeting.

◆ GetTargetsJobHandle()

JobHandle Plugins.GeometricVision.TargetingSystem.Code.Interfaces.IGeoTargeting.GetTargetsJobHandle ( GV_TargetingSystem  gvTargetingSystem)

Gets targeting data JobHandle for give targeting system in cases where the jobs needs to be completed before accessing containers.

System needs to implement Unity's job system. Otherwise not implemented exception will occur

Parameters
gvTargetingSystemGiven targeting system
Returns
targeting JobHandle

Implemented in Plugins.GeometricVision.TargetingSystem.Code.GameObjects.ImplementationsGameObjects.GeometryLineTargeting, Plugins.GeometricVision.TargetingSystem.Code.GameObjects.ImplementationsGameObjects.GeometryObjectTargeting, and Plugins.GeometricVision.TargetingSystem.Code.GameObjects.ImplementationsGameObjects.GeometryVertexTargeting.

◆ IsForEntities()

bool Plugins.GeometricVision.TargetingSystem.Code.Interfaces.IGeoTargeting.IsForEntities ( )

The documentation for this interface was generated from the following file: