Search Results for

    Show / Hide Table of Contents

    Message.Add Method

    Namespace: Riptide
    Assembly: RiptideNetworking.dll

    Overloads

    Add(byte)

    Adds a byte to the message.

    Add(sbyte)

    Adds an sbyte to the message.

    Add(bool)

    Adds a bool to the message.

    Add(short)

    Adds a short to the message.

    Add(ushort)

    Adds a ushort to the message.

    Add(int)

    Adds an int to the message.

    Add(uint)

    Adds a uint to the message.

    Add(long)

    Adds a long to the message.

    Add(ulong)

    Adds a ulong to the message.

    Add(float)

    Adds a float to the message.

    Add(double)

    Adds a double to the message.

    Add(string)

    Adds a string to the message.

    Add<T>(T)

    Adds a serializable to the message.

    Add(byte[], bool)

    Adds a byte array to the message.

    Add(sbyte[], bool)

    Adds an sbyte array to the message.

    Add(bool[], bool)

    Adds a bool array to the message.

    Add(short[], bool)

    Adds a short array to the message.

    Add(ushort[], bool)

    Adds a ushort array to the message.

    Add(int[], bool)

    Adds an int array message.

    Add(uint[], bool)

    Adds a uint array to the message.

    Add(long[], bool)

    Adds a long array to the message.

    Add(ulong[], bool)

    Adds a ulong array to the message.

    Add(float[], bool)

    Adds a float array to the message.

    Add(double[], bool)

    Adds a double array to the message.

    Add(string[], bool)

    Adds a string array to the message.

    Add<T>(T[], bool)

    Adds an array of serializables to the message.

    Add(byte)

    Adds a byte to the message.

    public Message Add(byte value)

    Parameters

    byte value

    The byte to add.

    Returns

    Message

    The message that the byte was added to.

    Remarks

    This method is simply an alternative way of calling AddByte(byte).

    Add(sbyte)

    Adds an sbyte to the message.

    public Message Add(sbyte value)

    Parameters

    sbyte value

    The sbyte to add.

    Returns

    Message

    The message that the sbyte was added to.

    Remarks

    This method is simply an alternative way of calling AddSByte(sbyte).

    Add(bool)

    Adds a bool to the message.

    public Message Add(bool value)

    Parameters

    bool value

    The bool to add.

    Returns

    Message

    The message that the bool was added to.

    Remarks

    This method is simply an alternative way of calling AddBool(bool).

    Add(short)

    Adds a short to the message.

    public Message Add(short value)

    Parameters

    short value

    The short to add.

    Returns

    Message

    The message that the short was added to.

    Remarks

    This method is simply an alternative way of calling AddShort(short).

    Add(ushort)

    Adds a ushort to the message.

    public Message Add(ushort value)

    Parameters

    ushort value

    The ushort to add.

    Returns

    Message

    The message that the ushort was added to.

    Remarks

    This method is simply an alternative way of calling AddUShort(ushort).

    Add(int)

    Adds an int to the message.

    public Message Add(int value)

    Parameters

    int value

    The int to add.

    Returns

    Message

    The message that the int was added to.

    Remarks

    This method is simply an alternative way of calling AddInt(int).

    Add(uint)

    Adds a uint to the message.

    public Message Add(uint value)

    Parameters

    uint value

    The uint to add.

    Returns

    Message

    The message that the uint was added to.

    Remarks

    This method is simply an alternative way of calling AddUInt(uint).

    Add(long)

    Adds a long to the message.

    public Message Add(long value)

    Parameters

    long value

    The long to add.

    Returns

    Message

    The message that the long was added to.

    Remarks

    This method is simply an alternative way of calling AddLong(long).

    Add(ulong)

    Adds a ulong to the message.

    public Message Add(ulong value)

    Parameters

    ulong value

    The ulong to add.

    Returns

    Message

    The message that the ulong was added to.

    Remarks

    This method is simply an alternative way of calling AddULong(ulong).

    Add(float)

    Adds a float to the message.

    public Message Add(float value)

    Parameters

    float value

    The float to add.

    Returns

    Message

    The message that the float was added to.

    Remarks

    This method is simply an alternative way of calling AddFloat(float).

    Add(double)

    Adds a double to the message.

    public Message Add(double value)

    Parameters

    double value

    The double to add.

    Returns

    Message

    The message that the double was added to.

    Remarks

    This method is simply an alternative way of calling AddDouble(double).

    Add(string)

    Adds a string to the message.

    public Message Add(string value)

    Parameters

    string value

    The string to add.

    Returns

    Message

    The message that the string was added to.

    Remarks

    This method is simply an alternative way of calling AddString(string).

    Add<T>(T)

    Adds a serializable to the message.

    public Message Add<T>(T value) where T : IMessageSerializable

    Parameters

    T value

    The serializable to add.

    Returns

    Message

    The message that the serializable was added to.

    Type Parameters

    T

    Remarks

    This method is simply an alternative way of calling AddSerializable<T>(T).

    Add(byte[], bool)

    Adds a byte array to the message.

    public Message Add(byte[] array, bool includeLength = true)

    Parameters

    byte[] array

    The array to add.

    bool includeLength

    Whether or not to include the length of the array in the message.

    Returns

    Message

    The message that the array was added to.

    Remarks

    This method is simply an alternative way of calling AddBytes(byte[], bool).

    Add(sbyte[], bool)

    Adds an sbyte array to the message.

    public Message Add(sbyte[] array, bool includeLength = true)

    Parameters

    sbyte[] array

    The array to add.

    bool includeLength

    Whether or not to include the length of the array in the message.

    Returns

    Message

    The message that the array was added to.

    Remarks

    This method is simply an alternative way of calling AddSBytes(sbyte[], bool).

    Add(bool[], bool)

    Adds a bool array to the message.

    public Message Add(bool[] array, bool includeLength = true)

    Parameters

    bool[] array

    The array to add.

    bool includeLength

    Whether or not to include the length of the array in the message.

    Returns

    Message

    The message that the array was added to.

    Remarks

    This method is simply an alternative way of calling AddBools(bool[], bool).

    Add(short[], bool)

    Adds a short array to the message.

    public Message Add(short[] array, bool includeLength = true)

    Parameters

    short[] array

    The array to add.

    bool includeLength

    Whether or not to include the length of the array in the message.

    Returns

    Message

    The message that the array was added to.

    Remarks

    This method is simply an alternative way of calling AddShorts(short[], bool).

    Add(ushort[], bool)

    Adds a ushort array to the message.

    public Message Add(ushort[] array, bool includeLength = true)

    Parameters

    ushort[] array

    The array to add.

    bool includeLength

    Whether or not to include the length of the array in the message.

    Returns

    Message

    The message that the array was added to.

    Remarks

    This method is simply an alternative way of calling AddUShorts(ushort[], bool).

    Add(int[], bool)

    Adds an int array message.

    public Message Add(int[] array, bool includeLength = true)

    Parameters

    int[] array

    The array to add.

    bool includeLength

    Whether or not to include the length of the array in the message.

    Returns

    Message

    The message that the array was added to.

    Remarks

    This method is simply an alternative way of calling AddInts(int[], bool).

    Add(uint[], bool)

    Adds a uint array to the message.

    public Message Add(uint[] array, bool includeLength = true)

    Parameters

    uint[] array

    The array to add.

    bool includeLength

    Whether or not to include the length of the array in the message.

    Returns

    Message

    The message that the array was added to.

    Remarks

    This method is simply an alternative way of calling AddUInts(uint[], bool).

    Add(long[], bool)

    Adds a long array to the message.

    public Message Add(long[] array, bool includeLength = true)

    Parameters

    long[] array

    The array to add.

    bool includeLength

    Whether or not to include the length of the array in the message.

    Returns

    Message

    The message that the array was added to.

    Remarks

    This method is simply an alternative way of calling AddLongs(long[], bool).

    Add(ulong[], bool)

    Adds a ulong array to the message.

    public Message Add(ulong[] array, bool includeLength = true)

    Parameters

    ulong[] array

    The array to add.

    bool includeLength

    Whether or not to include the length of the array in the message.

    Returns

    Message

    The message that the array was added to.

    Remarks

    This method is simply an alternative way of calling AddULongs(ulong[], bool).

    Add(float[], bool)

    Adds a float array to the message.

    public Message Add(float[] array, bool includeLength = true)

    Parameters

    float[] array

    The array to add.

    bool includeLength

    Whether or not to include the length of the array in the message.

    Returns

    Message

    The message that the array was added to.

    Remarks

    This method is simply an alternative way of calling AddFloats(float[], bool).

    Add(double[], bool)

    Adds a double array to the message.

    public Message Add(double[] array, bool includeLength = true)

    Parameters

    double[] array

    The array to add.

    bool includeLength

    Whether or not to include the length of the array in the message.

    Returns

    Message

    The message that the array was added to.

    Remarks

    This method is simply an alternative way of calling AddDoubles(double[], bool).

    Add(string[], bool)

    Adds a string array to the message.

    public Message Add(string[] array, bool includeLength = true)

    Parameters

    string[] array

    The array to add.

    bool includeLength

    Whether or not to include the length of the array in the message.

    Returns

    Message

    The message that the array was added to.

    Remarks

    This method is simply an alternative way of calling AddStrings(string[], bool).

    Add<T>(T[], bool)

    Adds an array of serializables to the message.

    public Message Add<T>(T[] array, bool includeLength = true) where T : IMessageSerializable, new()

    Parameters

    T[] array

    The array to add.

    bool includeLength

    Whether or not to include the length of the array in the message.

    Returns

    Message

    The message that the array was added to.

    Type Parameters

    T

    Remarks

    This method is simply an alternative way of calling AddSerializables<T>(T[], bool).

    • Improve this Doc
    • View Source
    • Support Riptide
    In This Article
    Back to top Copyright © Tom Weiland 2022
    Made with DocFX