template class MessageStreamReplicator (Niantic.ARDK.Networking.HLAPI.Object.MessageStreamReplicator)

Overview

Concrete implementation of replicator for sending messages over the network. More…

template <TMessage>
class MessageStreamReplicator:
    Niantic.ARDK.Networking.HLAPI.NetworkedDataHandlerBase,
    Niantic.ARDK.Networking.HLAPI.Object.IMessageStreamReplicator {
public:
    // events

    event MessageReceived();

    // methods

    MessageStreamReplicator(
        string identifier,
        NetworkedDataDescriptor descriptor,
        INetworkGroup group
    );

    void SendMessage(TMessage message, IEnumerable<IPeer> targets);
    void SendMessage(TMessage message, params IPeer[] targets);
};

Inherited Members

public:
    // fields

    static readonly object NothingToWrite = new object();

    // properties

    INetworkGroup Group;
    string Identifier;
    INetworkGroup Group;
    string Identifier;

    // events

    event MessageReceived();

    // methods

    void Unregister();
    IPeer GetSelfOrNull();
    virtual void Unregister();
    void SendMessage(TMessage message, IEnumerable<IPeer> targets);
    void SendMessage(TMessage message, params IPeer[] targets);

Detailed Documentation

Concrete implementation of replicator for sending messages over the network.

Parameters:

TMessage

Methods

void SendMessage(TMessage message, IEnumerable<IPeer> targets)

Sends a message to a set of peers.

void SendMessage(TMessage message, params IPeer[] targets)

Sends a message to a set of peers.