Class EntityWorkerManager
Inheritance
EntityWorkerManager
Implements
IAddableUnit
IEntityPreInitializable
Assembly: cs.temp.dll.dll
Syntax
public abstract class EntityWorkerManager : MonoBehaviour, IEntityWorkerManager, IAddableUnit, IEntityPreInitializable
Fields
tabID
Declaration
Field Value
Properties
Amount
Declaration
public int Amount { get; }
Property Value
Code
Declaration
public string Code { get; }
Property Value
Entity
Declaration
public IEntity Entity { get; }
Property Value
HasMaxAmount
Declaration
public bool HasMaxAmount { get; }
Property Value
logger
Declaration
protected IGameLoggingService logger { get; }
Property Value
Type |
Description |
IGameLoggingService |
|
MaxAmount
Declaration
public int MaxAmount { get; }
Property Value
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
CanAdd(IUnit, AddableUnitData)
Declaration
public ErrorMessage CanAdd(IUnit worker, AddableUnitData addableData = null)
Parameters
Type |
Name |
Description |
IUnit |
worker |
|
AddableUnitData |
addableData |
|
Returns
CanMove(IUnit, AddableUnitData)
Declaration
public ErrorMessage CanMove(IUnit worker, AddableUnitData addableData = null)
Parameters
Type |
Name |
Description |
IUnit |
worker |
|
AddableUnitData |
addableData |
|
Returns
Disable()
Declaration
GetAddablePosition(IUnit)
Declaration
public Vector3 GetAddablePosition(IUnit worker)
Parameters
Type |
Name |
Description |
IUnit |
worker |
|
Returns
GetOccupiedPosition(IUnit, out Vector3)
Declaration
public bool GetOccupiedPosition(IUnit requestedWorker, out Vector3 workerPosition)
Parameters
Type |
Name |
Description |
IUnit |
requestedWorker |
|
Vector3 |
workerPosition |
|
Returns
Move(IUnit, AddableUnitData)
Declaration
public ErrorMessage Move(IUnit worker, AddableUnitData addableData)
Parameters
Type |
Name |
Description |
IUnit |
worker |
|
AddableUnitData |
addableData |
|
Returns
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
IAddableUnit
IEntityPreInitializable