template interface IMessageStreamReplicator (Niantic.ARDK.Networking.HLAPI.Object.IMessageStreamReplicator)

Overview

Replicator interface for sending messages over the network. More…

template <TMessage>
interface IMessageStreamReplicator: Niantic.ARDK.Networking.HLAPI.INetworkedDataHandler {
    // events

    event MessageReceived();

    // methods

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

// direct descendants

template <TMessage>
class MessageStreamReplicator;

Inherited Members

public:
    // properties

    INetworkGroup Group;
    string Identifier;

    // methods

    void Unregister();

Detailed Documentation

Replicator interface for sending messages over the network.

Parameters:

TMessage

Events

event MessageReceived()

Called when data is received from a peer (including from the local peer if they are in the set).

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.