class NetworkGroup (Niantic.ARDK.Networking.HLAPI.NetworkGroup)

Overview

A network group that is attached to an IHlapiSession. Handles routing to data handlers that are registered to this group. More…

class NetworkGroup:
    Niantic.ARDK.Networking.HLAPI.NetworkedDataHandlerBase,
    Niantic.ARDK.Networking.HLAPI.INetworkGroup {
public:
    // structs

    struct _NetworkGroupData;

    // properties

    NetworkId NetworkId;
    IHlapiSession Session;

    // methods

    INetworkGroup CreateNestedGroup(NetworkId groupId);
    NetworkGroup(NetworkId id);
    NetworkGroup(NetworkId id, IHlapiSession session, UnhandledPacketCache cache);

    void ReceiveCachedDataFromSession(
        IHlapiSession session,
        UnhandledPacketCache cache
    );

    void RegisterHandler(INetworkedDataHandler handler);
    override void Unregister();
    void UnregisterHandler(INetworkedDataHandler handler);
};

Inherited Members

public:
    // fields

    static readonly object NothingToWrite = new object();

    // properties

    INetworkGroup Group;
    string Identifier;
    INetworkGroup Group;
    string Identifier;
    NetworkId NetworkId;
    IHlapiSession Session;

    // methods

    void Unregister();
    IPeer GetSelfOrNull();
    virtual void Unregister();
    INetworkGroup CreateNestedGroup(NetworkId groupId);

    void ReceiveCachedDataFromSession(
        IHlapiSession session,
        UnhandledPacketCache cache
    );

    void RegisterHandler(INetworkedDataHandler handler);
    void UnregisterHandler(INetworkedDataHandler handler);

Detailed Documentation

A network group that is attached to an IHlapiSession. Handles routing to data handlers that are registered to this group.

Methods

NetworkGroup(NetworkId id, IHlapiSession session, UnhandledPacketCache cache)

Create a NetworkGroup that is attached to the IHlapiSession. Pass in any unhandled packets so that they may be handled when Handlers are registered, or create a new one if there are no unhandled packets (to cache packets addressed to unknown handlers).

Parameters:

id

session

cache