Show / Hide Table of Contents

    Class WalkOnDemandHandler

    Abstract class that represents the base for all player walk handlers.

    Inheritance
    System.Object
    BaseRequestHandler
    GameHandler
    WalkOnDemandHandler
    Implements
    IHandler
    Inherited Members
    GameHandler.Game
    BaseRequestHandler.Logger
    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.Handlers
    Assembly: Fibula.Mechanics.dll
    Syntax
    public class WalkOnDemandHandler : GameHandler, IHandler

    Constructors

    | Improve this Doc View Source

    WalkOnDemandHandler(ILogger, IGame, ICreatureFinder)

    Initializes a new instance of the WalkOnDemandHandler class.

    Declaration
    public WalkOnDemandHandler(ILogger logger, IGame gameInstance, ICreatureFinder creatureFinder)
    Parameters
    Type Name Description
    Serilog.ILogger logger

    A reference to the logger in use.

    IGame gameInstance

    A reference to the game instance.

    ICreatureFinder creatureFinder

    A reference to the creature finder in use.

    Properties

    | Improve this Doc View Source

    CreatureFinder

    Gets the creature finder to use.

    Declaration
    public ICreatureFinder CreatureFinder { get; }
    Property Value
    Type Description
    ICreatureFinder

    Methods

    | Improve this Doc View Source

    HandleRequest(IIncomingPacket, IClient)

    Handles the contents of a network message.

    Declaration
    public override IEnumerable<IOutboundPacket> HandleRequest(IIncomingPacket incomingPacket, IClient client)
    Parameters
    Type Name Description
    IIncomingPacket incomingPacket

    The packet to handle.

    IClient client

    A reference to the client from where this request originated from, for context.

    Returns
    Type Description
    System.Collections.Generic.IEnumerable<IOutboundPacket>

    A collection of IOutboundPackets that compose that synchronous response, if any.

    Overrides
    BaseRequestHandler.HandleRequest(IIncomingPacket, IClient)

    Implements

    IHandler

    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.