Show / Hide Table of Contents

    Class OperationContext

    Class that represents a context for operations.

    Inheritance
    System.Object
    EventContext
    OperationContext
    ElevatedOperationContext
    Implements
    IOperationContext
    IEventContext
    Inherited Members
    EventContext.Logger
    EventContext.CurrentTime
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.ToString()
    Namespace: Fibula.Mechanics.Operations
    Assembly: Fibula.Mechanics.dll
    Syntax
    public class OperationContext : EventContext, IOperationContext, IEventContext

    Constructors

    | Improve this Doc View Source

    OperationContext(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 Source

    CombatApi

    Gets a reference to the combat api.

    Declaration
    public ICombatOperationsApi CombatApi { get; }
    Property Value
    Type Description
    ICombatOperationsApi
    | Improve this Doc View Source

    ContainerManager

    Gets a reference to the container manager in use.

    Declaration
    public IContainerManager ContainerManager { get; }
    Property Value
    Type Description
    IContainerManager
    | Improve this Doc View Source

    CreatureFactory

    Gets a reference to the creature factory in use.

    Declaration
    public ICreatureFactory CreatureFactory { get; }
    Property Value
    Type Description
    ICreatureFactory
    | Improve this Doc View Source

    CreatureFinder

    Gets the reference to the creature finder in use.

    Declaration
    public ICreatureFinder CreatureFinder { get; }
    Property Value
    Type Description
    ICreatureFinder
    | Improve this Doc View Source

    GameApi

    Gets a reference to the game's api.

    Declaration
    public IGameOperationsApi GameApi { get; }
    Property Value
    Type Description
    IGameOperationsApi
    | Improve this Doc View Source

    ItemFactory

    Gets a reference to the item factory in use.

    Declaration
    public IItemFactory ItemFactory { get; }
    Property Value
    Type Description
    IItemFactory
    | Improve this Doc View Source

    Map

    Gets the reference to the map.

    Declaration
    public IMap Map { get; }
    Property Value
    Type Description
    IMap
    | Improve this Doc View Source

    MapDescriptor

    Gets a reference to the map descriptor in use.

    Declaration
    public IMapDescriptor MapDescriptor { get; }
    Property Value
    Type Description
    IMapDescriptor
    | Improve this Doc View Source

    PathFinder

    Gets a reference to the pathfinder algorithm in use.

    Declaration
    public IPathFinder PathFinder { get; }
    Property Value
    Type Description
    IPathFinder
    | Improve this Doc View Source

    PredefinedItemSet

    Gets the predefined item set.

    Declaration
    public IPredefinedItemSet PredefinedItemSet { get; }
    Property Value
    Type Description
    IPredefinedItemSet
    | Improve this Doc View Source

    Scheduler

    Gets a reference to the scheduler in use.

    Declaration
    public IScheduler Scheduler { get; }
    Property Value
    Type Description
    IScheduler

    Implements

    IOperationContext
    IEventContext

    Extension Methods

    ObjectExtensions.YieldSingleItem<T>(T)
    ObjectExtensions.GetPropertyValue(Object, String)
    Validate.ThrowIfNull(Object, String)
    • Improve this Doc
    • View Source
    Back to top Copyright © 2018-2020 | The Fibula Project
    Generated using DocFX | Jose L. Nuñez de Caceres et al.