Search Results for

    Show / Hide Table of Contents

    MessageRelayFilter Constructor

    Namespace: Riptide
    Assembly: RiptideNetworking.dll

    Overloads

    MessageRelayFilter(int)

    Creates a filter of a given size.

    MessageRelayFilter(Type)

    Creates a filter based on an enum of message IDs.

    MessageRelayFilter(int, params ushort[])

    Creates a filter of a given size and enables relaying for the given message IDs.

    MessageRelayFilter(Type, params Enum[])

    Creates a filter based on an enum of message IDs and enables relaying for the given message IDs.

    MessageRelayFilter(int)

    Creates a filter of a given size.

    public MessageRelayFilter(int size)

    Parameters

    int size

    How big to make the filter.

    Remarks

    size should be set to the value of the largest message ID, plus 1. For example, if a server will handle messages with IDs 1, 2, 3, 7, and 8, size should be set to 9 (8 is the largest possible value, and 8 + 1 = 9) despite the fact that there are only 5 unique message IDs the server will ever handle.

    MessageRelayFilter(Type)

    Creates a filter based on an enum of message IDs.

    public MessageRelayFilter(Type idEnum)

    Parameters

    Type idEnum

    The enum type.

    MessageRelayFilter(int, params ushort[])

    Creates a filter of a given size and enables relaying for the given message IDs.

    public MessageRelayFilter(int size, params ushort[] idsToEnable)

    Parameters

    int size

    How big to make the filter.

    ushort[] idsToEnable

    Message IDs to enable auto relaying for.

    Remarks

    size should be set to the value of the largest message ID, plus 1. For example, if a server will handle messages with IDs 1, 2, 3, 7, and 8, size should be set to 9 (8 is the largest possible value, and 8 + 1 = 9) despite the fact that there are only 5 unique message IDs the server will ever handle.

    MessageRelayFilter(Type, params Enum[])

    Creates a filter based on an enum of message IDs and enables relaying for the given message IDs.

    public MessageRelayFilter(Type idEnum, params Enum[] idsToEnable)

    Parameters

    Type idEnum

    The enum type.

    Enum[] idsToEnable

    Message IDs to enable relaying for.

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