Search Results for

    Show / Hide Table of Contents

    Class TargetEntityFinder<T>

    Allows to define a search process (for an Entity instance).

    Inheritance
    Object
    TargetEntityFinder<T>
    Namespace: RTSEngine.EntityComponent
    Assembly: cs.temp.dll.dll
    Syntax
    [Serializable]
    public class TargetEntityFinder<T>
        where T : IEntity
    Type Parameters
    Name Description
    T

    Constructors

    TargetEntityFinder(IGameManager, IEntityTargetComponent, Transform, TargetEntityFinderData)

    Initializes a TargetEntityFinder instance.

    Declaration
    public TargetEntityFinder(IGameManager gameMgr, IEntityTargetComponent source, Transform center, TargetEntityFinderData data)
    Parameters
    Type Name Description
    IGameManager gameMgr
    IEntityTargetComponent source

    Entity instance that the TargetEntityFinder is finding a target for.

    Transform center
    TargetEntityFinderData data

    Fields

    reloadTime

    Declaration
    public float reloadTime
    Field Value
    Type Description
    System.Single

    Properties

    Center

    Declaration
    public Transform Center { get; set; }
    Property Value
    Type Description
    Transform

    CurrReloadValue

    Declaration
    public float CurrReloadValue { get; }
    Property Value
    Type Description
    System.Single

    Data

    Declaration
    public TargetEntityFinderData Data { get; }
    Property Value
    Type Description
    TargetEntityFinderData

    gridSearch

    Declaration
    protected IGridSearchHandler gridSearch { get; }
    Property Value
    Type Description
    IGridSearchHandler

    IdleOnly

    Declaration
    public bool IdleOnly { get; set; }
    Property Value
    Type Description
    Boolean

    IsActive

    Set or get whether searching for a target entity is active or not.

    Declaration
    public bool IsActive { get; set; }
    Property Value
    Type Description
    Boolean

    PlayerCommand

    Declaration
    public bool PlayerCommand { get; set; }
    Property Value
    Type Description
    Boolean

    Range

    Declaration
    public float Range { get; set; }
    Property Value
    Type Description
    System.Single

    ReloadTime

    Declaration
    public float ReloadTime { get; set; }
    Property Value
    Type Description
    System.Single

    Source

    Declaration
    public IEntityTargetComponent Source { get; }
    Property Value
    Type Description
    IEntityTargetComponent

    Methods

    Disable()

    Declaration
    public void Disable()

    IsTargetValid(SetTargetInputData)

    Declaration
    public ErrorMessage IsTargetValid(SetTargetInputData data)
    Parameters
    Type Name Description
    SetTargetInputData data
    Returns
    Type Description
    ErrorMessage

    SearchTarget(TargetEntityFinderData)

    Declaration
    public void SearchTarget(TargetEntityFinderData nextSearchData)
    Parameters
    Type Name Description
    TargetEntityFinderData nextSearchData
    In This Article
    Back to top Unity RTS Engine Documentation