Class NPCComponentBase
Inheritance
NPCComponentBase
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
tabID
Declaration
Field Value
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 |
|
Declaration
protected IInputManager inputMgr { get; }
Property Value
Type |
Description |
IInputManager |
|
IsActive
Declaration
public bool IsActive { get; protected set; }
Property Value
IsSingleInstance
Declaration
public virtual bool IsSingleInstance { get; }
Property Value
logger
Declaration
protected IGameLoggingService logger { get; }
Property Value
Type |
Description |
IGameLoggingService |
|
npcMgr
Declaration
protected INPCManager npcMgr { get; }
Property Value
ShowActiveLogs
Declaration
protected bool ShowActiveLogs { get; }
Property Value
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