Class BasePacketWriter
Class that represents the base implementation for all packet writers in all protocols.
Inheritance
System.Object
BasePacketWriter
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.Communications
Assembly: Fibula.Communications.dll
Syntax
public abstract class BasePacketWriter : IPacketWriter
Constructors
| Improve this Doc View SourceBasePacketWriter(ILogger)
Initializes a new instance of the BasePacketWriter class.
Declaration
protected BasePacketWriter(ILogger logger)
Parameters
Type | Name | Description |
---|---|---|
Serilog.ILogger | logger | A reference to the logger in use. |
Properties
| Improve this Doc View SourceLogger
Gets the reference to the logger in use.
Declaration
protected ILogger Logger { get; }
Property Value
Type | Description |
---|---|
Serilog.ILogger |
Methods
| Improve this Doc View SourceWriteToMessage(IOutboundPacket, ref INetworkMessage)
Writes a packet to the given INetworkMessage.
Declaration
public abstract void WriteToMessage(IOutboundPacket packet, ref INetworkMessage message)
Parameters
Type | Name | Description |
---|---|---|
IOutboundPacket | packet | The packet to write. |
INetworkMessage | message | The message to write into. |