Search Results for

    Show / Hide Table of Contents

    Class NPCComponentBase

    Inheritance
    Object
    NPCComponentBase
    Implements
    INPCComponent
    IMonoBehaviour
    Namespace: RTSEngine.NPC
    Assembly: cs.temp.dll.dll
    Syntax
    public abstract class NPCComponentBase : MonoBehaviour, INPCComponent, IMonoBehaviour

    Fields

    EVENT_LOGS_MAX_SIZE

    Declaration
    public const int EVENT_LOGS_MAX_SIZE = 50
    Field Value
    Type Description
    Int32

    tabID

    Declaration
    public Int2D tabID
    Field Value
    Type Description
    Int2D

    Properties

    EventLogs

    Declaration
    public IReadOnlyList<string> EventLogs { get; }
    Property Value
    Type Description
    System.Collections.Generic.IReadOnlyList<String>

    factionMgr

    Declaration
    protected IFactionManager factionMgr { get; }
    Property Value
    Type Description
    IFactionManager

    factionSlot

    Declaration
    protected IFactionSlot factionSlot { get; }
    Property Value
    Type Description
    IFactionSlot

    gameMgr

    Declaration
    protected IGameManager gameMgr { get; }
    Property Value
    Type Description
    IGameManager

    globalEvent

    Declaration
    protected IGlobalEventPublisher globalEvent { get; }
    Property Value
    Type Description
    IGlobalEventPublisher

    inputMgr

    Declaration
    protected IInputManager inputMgr { get; }
    Property Value
    Type Description
    IInputManager

    IsActive

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

    IsSingleInstance

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

    logger

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

    npcMgr

    Declaration
    protected INPCManager npcMgr { get; }
    Property Value
    Type Description
    INPCManager

    ShowActiveLogs

    Declaration
    protected bool ShowActiveLogs { get; }
    Property Value
    Type Description
    Boolean

    Methods

    Init(IGameManager, INPCManager)

    Declaration
    public void Init(IGameManager gameMgr, INPCManager npcMgr)
    Parameters
    Type Name Description
    IGameManager gameMgr
    INPCManager npcMgr

    LogEvent(String)

    Declaration
    public void LogEvent(string newEvent)
    Parameters
    Type Name Description
    String newEvent

    OnActiveUpdate()

    Declaration
    protected virtual void OnActiveUpdate()

    OnActivtated()

    Declaration
    protected virtual void OnActivtated()

    OnDeactivated()

    Declaration
    protected virtual void OnDeactivated()

    OnDestroyed()

    Declaration
    protected virtual void OnDestroyed()

    OnPostInit()

    Called after all INPCComponent instances have been cached and initialized by the INPCManager instance.

    Declaration
    protected virtual void OnPostInit()

    OnPreInit()

    Called when the INPCManager instance first initializes the INPCComponent instance.

    Declaration
    protected virtual void OnPreInit()

    UpdateActiveLogs()

    Declaration
    protected virtual void UpdateActiveLogs()

    Implements

    INPCComponent
    IMonoBehaviour
    In This Article
    Back to top Unity RTS Engine Documentation