HEADJACK
Search Results for

    Show / Hide Table of Contents

    Class MessageBase

    Namespace: Headjack.Cinema.Messages

    Base class that all Cinema message (client->server and server->client) derive from

    Fields

    MAX_STRING_LENGTH

    Declaration
    public const int MAX_STRING_LENGTH = 500
    Field Value
    Type Description
    System.Int32

    Properties

    MessageType

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

    Methods

    Deserialize(NetPacketReader)

    Declaration
    public abstract void Deserialize(NetPacketReader reader)
    Parameters
    Type Name Description
    NetPacketReader reader

    NewInstance()

    Declaration
    public abstract MessageBase NewInstance()
    Returns
    Type Description
    MessageBase

    SanitizeText(String)

    Ensures max text message length for cinema Messages

    Declaration
    public static string SanitizeText(string input)
    Parameters
    Type Name Description
    System.String input
    Returns
    Type Description
    System.String

    Serialize(NetDataWriter)

    Declaration
    public abstract void Serialize(NetDataWriter writer)
    Parameters
    Type Name Description
    NetDataWriter writer
    In This Article
    Back to top