Show / Hide Table of Contents

    Class Packet

    Base class for packets

    Inheritance
    System.Object
    Packet
    AddOtherPlayer_7
    FinishedLoading_4
    KeepAlive_0
    LoginRequest_1
    LoginResponse_2
    RemoveOtherPlayer_8
    UpdateMyPlayerTransform_3
    UpdateOtherPlayerTransform_6
    WalkRequest_5
    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: Engine.Networking
    Assembly: Engine.Networking.dll
    Syntax
    [Packet(-1, "Undefined Packet", "Undefined", ReliabilityScheme.RELIABLE, "Undefined")]
    public abstract class Packet

    Properties

    packetDescription

    The packet description

    Declaration
    public string packetDescription { get; }
    Property Value
    Type Description
    System.String

    packetId

    The unique ID for the packet

    Declaration
    public int packetId { get; }
    Property Value
    Type Description
    System.Int32

    packetName

    The name of the packet

    Declaration
    public string packetName { get; }
    Property Value
    Type Description
    System.String

    packetReliabilityScheme

    The reliability scheme of the packet

    Declaration
    public ReliabilityScheme packetReliabilityScheme { get; }
    Property Value
    Type Description
    ReliabilityScheme

    packetTarget

    The target of the packet

    Declaration
    public string packetTarget { get; }
    Property Value
    Type Description
    System.String

    Methods

    getBytes()

    Return the bytes of the packet

    Declaration
    public abstract byte[] getBytes()
    Returns
    Type Description
    System.Byte[]

    readPacket(Byte[])

    Read the packet from the bytes

    Declaration
    public abstract void readPacket(byte[] bytes)
    Parameters
    Type Name Description
    System.Byte[] bytes

    The packet bytes

    Back to top Elavad Documentation