Class GameProtocol_v772
Class that represents a game protocol for version 7.72.
Inheritance
System.Object
GameProtocol_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 GameProtocol_v772 : IProtocol
Constructors
| Improve this Doc View SourceGameProtocol_v772(ILogger)
Initializes a new instance of the GameProtocol_v772 class.
Declaration
public GameProtocol_v772(ILogger logger)
Parameters
Type | Name | Description |
---|---|---|
Serilog.ILogger | logger | A reference to the logger in use. |
Methods
| Improve this Doc View SourceByteToIncomingPacketType(Byte)
Attempts to convert a byte value into an IncomingPacketType.
Declaration
public IncomingPacketType ByteToIncomingPacketType(byte fromByte)
Parameters
Type | Name | Description |
---|---|---|
System.Byte | fromByte | The byte to convert. |
Returns
Type | Description |
---|---|
IncomingPacketType | The IncomingPacketType value converted to. |
RegisterPacketReader(IncomingPacketType, IPacketReader)
Registers a packet reader to this protocol.
Declaration
public void RegisterPacketReader(IncomingPacketType forType, IPacketReader packetReader)
Parameters
Type | Name | Description |
---|---|---|
IncomingPacketType | forType | The type of packet to register for. |
IPacketReader | packetReader | The packet reader to register. |
RegisterPacketWriter(OutgoingPacketType, IPacketWriter)
Registers a packet writer to this protocol.
Declaration
public void RegisterPacketWriter(OutgoingPacketType forType, IPacketWriter packetWriter)
Parameters
Type | Name | Description |
---|---|---|
OutgoingPacketType | forType | The type of packet to register for. |
IPacketWriter | packetWriter | The packet writer to register. |
SelectPacketReader(IncomingPacketType)
Selects the most appropriate packet reader for the specified type.
Declaration
public IPacketReader SelectPacketReader(IncomingPacketType forPacketType)
Parameters
Type | Name | Description |
---|---|---|
IncomingPacketType | forPacketType | The type of packet. |
Returns
Type | Description |
---|---|
IPacketReader | An instance of an IPacketReader implementation. |
SelectPacketWriter(OutgoingPacketType)
Selects the most appropriate packet writer for the specified type.
Declaration
public IPacketWriter SelectPacketWriter(OutgoingPacketType forPacketType)
Parameters
Type | Name | Description |
---|---|---|
OutgoingPacketType | forPacketType | The type of packet. |
Returns
Type | Description |
---|---|
IPacketWriter | An instance of an IPacketWriter implementation. |