Search Results for

    Show / Hide Table of Contents

    Class EntityWorkerManager

    Inheritance
    Object
    EntityWorkerManager
    BuildingWorkerManager
    ResourceWorkerManager
    Implements
    IEntityWorkerManager
    IAddableUnit
    IEntityPreInitializable
    Namespace: RTSEngine.EntityComponent
    Assembly: cs.temp.dll.dll
    Syntax
    public abstract class EntityWorkerManager : MonoBehaviour, IEntityWorkerManager, IAddableUnit, IEntityPreInitializable

    Fields

    tabID

    Declaration
    public Int2D tabID
    Field Value
    Type Description
    Int2D

    Properties

    Amount

    Declaration
    public int Amount { get; }
    Property Value
    Type Description
    Int32

    Code

    Declaration
    public string Code { get; }
    Property Value
    Type Description
    String

    Entity

    Declaration
    public IEntity Entity { get; }
    Property Value
    Type Description
    IEntity

    HasMaxAmount

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

    logger

    Declaration
    protected IGameLoggingService logger { get; }
    Property Value
    Type Description
    IGameLoggingService

    MaxAmount

    Declaration
    public int MaxAmount { get; }
    Property Value
    Type Description
    Int32

    mvtMgr

    Declaration
    protected IMovementManager mvtMgr { get; }
    Property Value
    Type Description
    IMovementManager

    playerMsgHandler

    Declaration
    protected IPlayerMessageHandler playerMsgHandler { get; }
    Property Value
    Type Description
    IPlayerMessageHandler

    terrainMgr

    Declaration
    protected ITerrainManager terrainMgr { get; }
    Property Value
    Type Description
    ITerrainManager

    Workers

    Declaration
    public IReadOnlyList<IUnit> Workers { get; }
    Property Value
    Type Description
    System.Collections.Generic.IReadOnlyList<IUnit>

    Methods

    Add(IUnit, AddableUnitData)

    Declaration
    public ErrorMessage Add(IUnit worker, AddableUnitData addable = null)
    Parameters
    Type Name Description
    IUnit worker
    AddableUnitData addable
    Returns
    Type Description
    ErrorMessage

    CanAdd(IUnit, AddableUnitData)

    Declaration
    public ErrorMessage CanAdd(IUnit worker, AddableUnitData addableData = null)
    Parameters
    Type Name Description
    IUnit worker
    AddableUnitData addableData
    Returns
    Type Description
    ErrorMessage

    CanMove(IUnit, AddableUnitData)

    Declaration
    public ErrorMessage CanMove(IUnit worker, AddableUnitData addableData = null)
    Parameters
    Type Name Description
    IUnit worker
    AddableUnitData addableData
    Returns
    Type Description
    ErrorMessage

    Disable()

    Declaration
    public void Disable()

    GetAddablePosition(IUnit)

    Declaration
    public Vector3 GetAddablePosition(IUnit worker)
    Parameters
    Type Name Description
    IUnit worker
    Returns
    Type Description
    Vector3

    GetOccupiedPosition(IUnit, out Vector3)

    Declaration
    public bool GetOccupiedPosition(IUnit requestedWorker, out Vector3 workerPosition)
    Parameters
    Type Name Description
    IUnit requestedWorker
    Vector3 workerPosition
    Returns
    Type Description
    Boolean

    Move(IUnit, AddableUnitData)

    Declaration
    public ErrorMessage Move(IUnit worker, AddableUnitData addableData)
    Parameters
    Type Name Description
    IUnit worker
    AddableUnitData addableData
    Returns
    Type Description
    ErrorMessage

    OnEntityPreInit(IGameManager, IEntity)

    Declaration
    public void OnEntityPreInit(IGameManager gameMgr, IEntity entity)
    Parameters
    Type Name Description
    IGameManager gameMgr
    IEntity entity

    RaiseWorkerAdded(IEntity, EntityEventArgs<IUnit>)

    Declaration
    public void RaiseWorkerAdded(IEntity sender, EntityEventArgs<IUnit> args)
    Parameters
    Type Name Description
    IEntity sender
    EntityEventArgs<IUnit> args

    RaiseWorkerRemoved(IEntity, EntityEventArgs<IUnit>)

    Declaration
    public void RaiseWorkerRemoved(IEntity sender, EntityEventArgs<IUnit> args)
    Parameters
    Type Name Description
    IEntity sender
    EntityEventArgs<IUnit> args

    Remove(IUnit)

    Declaration
    public void Remove(IUnit worker)
    Parameters
    Type Name Description
    IUnit worker

    Events

    WorkerAdded

    Declaration
    public event CustomEventHandler<IEntity, EntityEventArgs<IUnit>> WorkerAdded
    Event Type
    Type Description
    CustomEventHandler<IEntity, EntityEventArgs<IUnit>>

    WorkerRemoved

    Declaration
    public event CustomEventHandler<IEntity, EntityEventArgs<IUnit>> WorkerRemoved
    Event Type
    Type Description
    CustomEventHandler<IEntity, EntityEventArgs<IUnit>>

    Implements

    IEntityWorkerManager
    IAddableUnit
    IEntityPreInitializable
    In This Article
    Back to top Unity RTS Engine Documentation