Class OperationContext
Class that represents a context for operations.
Inherited Members
Namespace: Fibula.Mechanics.Operations
Assembly: Fibula.Mechanics.dll
Syntax
public class OperationContext : EventContext, IOperationContext, IEventContext
Constructors
| Improve this Doc View SourceOperationContext(ILogger, IMapDescriptor, IMap, ICreatureFinder, IItemFactory, ICreatureFactory, IContainerManager, IGameOperationsApi, ICombatOperationsApi, IPathFinder, IPredefinedItemSet, IScheduler)
Initializes a new instance of the OperationContext class.
Declaration
public OperationContext(ILogger logger, IMapDescriptor mapDescriptor, IMap map, ICreatureFinder creatureFinder, IItemFactory itemFactory, ICreatureFactory creatureFactory, IContainerManager containerManager, IGameOperationsApi gameOperationsApi, ICombatOperationsApi combatOperationsApi, IPathFinder pathFinderAlgo, IPredefinedItemSet predefinedItemSet, IScheduler scheduler)
Parameters
Type | Name | Description |
---|---|---|
Serilog.ILogger | logger | A reference to the logger in use. |
IMapDescriptor | mapDescriptor | A reference to the map descriptor in use. |
IMap | map | A reference to the map in use. |
ICreatureFinder | creatureFinder | A reference to the creature finder in use. |
IItemFactory | itemFactory | A reference to the item factory in use. |
ICreatureFactory | creatureFactory | A reference to the creature factory in use. |
IContainerManager | containerManager | A reference to the container manager in use. |
IGameOperationsApi | gameOperationsApi | A reference to the game operations api. |
ICombatOperationsApi | combatOperationsApi | A reference to the combat operations api. |
IPathFinder | pathFinderAlgo | A reference to the path finding algorithm in use. |
IPredefinedItemSet | predefinedItemSet | A reference to the predefined item set declared. |
IScheduler | scheduler | A reference to the scheduler instance. |
Properties
| Improve this Doc View SourceCombatApi
Gets a reference to the combat api.
Declaration
public ICombatOperationsApi CombatApi { get; }
Property Value
Type | Description |
---|---|
ICombatOperationsApi |
ContainerManager
Gets a reference to the container manager in use.
Declaration
public IContainerManager ContainerManager { get; }
Property Value
Type | Description |
---|---|
IContainerManager |
CreatureFactory
Gets a reference to the creature factory in use.
Declaration
public ICreatureFactory CreatureFactory { get; }
Property Value
Type | Description |
---|---|
ICreatureFactory |
CreatureFinder
Gets the reference to the creature finder in use.
Declaration
public ICreatureFinder CreatureFinder { get; }
Property Value
Type | Description |
---|---|
ICreatureFinder |
GameApi
Gets a reference to the game's api.
Declaration
public IGameOperationsApi GameApi { get; }
Property Value
Type | Description |
---|---|
IGameOperationsApi |
ItemFactory
Gets a reference to the item factory in use.
Declaration
public IItemFactory ItemFactory { get; }
Property Value
Type | Description |
---|---|
IItemFactory |
Map
Gets the reference to the map.
Declaration
public IMap Map { get; }
Property Value
Type | Description |
---|---|
IMap |
MapDescriptor
Gets a reference to the map descriptor in use.
Declaration
public IMapDescriptor MapDescriptor { get; }
Property Value
Type | Description |
---|---|
IMapDescriptor |
PathFinder
Gets a reference to the pathfinder algorithm in use.
Declaration
public IPathFinder PathFinder { get; }
Property Value
Type | Description |
---|---|
IPathFinder |
PredefinedItemSet
Gets the predefined item set.
Declaration
public IPredefinedItemSet PredefinedItemSet { get; }
Property Value
Type | Description |
---|---|
IPredefinedItemSet |
Scheduler
Gets a reference to the scheduler in use.
Declaration
public IScheduler Scheduler { get; }
Property Value
Type | Description |
---|---|
IScheduler |