Class TileDescriptor_v772
Class that represents a tile descriptor for protocol 7.72.
Inheritance
System.Object
TileDescriptor_v772
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.Protocol.V772
Assembly: Fibula.Protocol.V772.dll
Syntax
public class TileDescriptor_v772 : IProtocolTileDescriptor
Constructors
| Improve this Doc View SourceTileDescriptor_v772(ILogger, ICreatureFinder)
Initializes a new instance of the TileDescriptor_v772 class.
Declaration
public TileDescriptor_v772(ILogger logger, ICreatureFinder creatureFinder)
Parameters
Type | Name | Description |
---|---|---|
Serilog.ILogger | logger | A reference to the logger in use. |
ICreatureFinder | creatureFinder | A reference to the creature finder in use. |
Properties
| Improve this Doc View SourceCreatureFinder
Gets the creature finder in use.
Declaration
public ICreatureFinder CreatureFinder { get; }
Property Value
Type | Description |
---|---|
ICreatureFinder |
Logger
Gets the logger in use.
Declaration
public ILogger Logger { get; }
Property Value
Type | Description |
---|---|
Serilog.ILogger |
Methods
| Improve this Doc View SourceDescribeTileForPlayer(IPlayer, ITile, out ISet<UInt32>, out ISet<UInt32>)
Gets the description segments of a tile as seen by the given player
.
Declaration
public IEnumerable<MapDescriptionSegment> DescribeTileForPlayer(IPlayer player, ITile tile, out ISet<uint> creatureIdsToLearn, out ISet<uint> creatureIdsToForget)
Parameters
Type | Name | Description |
---|---|---|
IPlayer | player | The player for which the tile is being described. |
ITile | tile | The tile being described. |
System.Collections.Generic.ISet<System.UInt32> | creatureIdsToLearn | A set of ids of creatures to learn if this description is sent. |
System.Collections.Generic.ISet<System.UInt32> | creatureIdsToForget | A set of ids of creatures to forget if this description is sent. |
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<MapDescriptionSegment> | A collection of description segments from the tile. |