Show / Hide Table of Contents

    Class GameProtocol_v772

    Class that represents a game protocol for version 7.72.

    Inheritance
    System.Object
    GameProtocol_v772
    Implements
    IProtocol
    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 Source

    GameProtocol_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 Source

    ByteToIncomingPacketType(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.

    | Improve this Doc View Source

    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.

    | Improve this Doc View Source

    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.

    | Improve this Doc View Source

    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.

    | Improve this Doc View Source

    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.

    Implements

    IProtocol

    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.