Class TurnOnDemandHandler
Abstract class that represents the player turning to a direction handler.
Implements
Inherited Members
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 TurnOnDemandHandler : GameHandler, IHandler
Constructors
| Improve this Doc View SourceTurnOnDemandHandler(ILogger, IGame, ICreatureFinder)
Initializes a new instance of the TurnOnDemandHandler class.
Declaration
public TurnOnDemandHandler(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 SourceCreatureFinder
Gets the creature finder to use.
Declaration
public ICreatureFinder CreatureFinder { get; }
Property Value
Type | Description |
---|---|
ICreatureFinder |
Methods
| Improve this Doc View SourceHandleRequest(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. |