class NetworkedDataHandlerBase (Niantic.ARDK.Networking.HLAPI.NetworkedDataHandlerBase)
Overview
Abstract class to extend to implement custom data handlers for the HLAPI. The protected methods will define the data handler's behaviour with sending/receiving data, but cannot be accessed through the INetworkedDataHandler interface (users should never call these methods) More...
class NetworkedDataHandlerBase: Niantic.ARDK.Networking.HLAPI.INetworkedDataHandler { public: // fields static readonly object NothingToWrite = new object(); // properties INetworkGroup Group; string Identifier; // methods IPeer GetSelfOrNull(); virtual void Unregister(); }; // direct descendants class GreedyAuthorityReplicator; template <TMessage> class MessageStreamReplicator; template <TValue> class NetworkedField; class UnreliableBroadcastTransformPacker;
Inherited Members
public: // properties INetworkGroup Group; string Identifier; // methods void Unregister();
Detailed Documentation
Abstract class to extend to implement custom data handlers for the HLAPI. The protected methods will define the data handler's behaviour with sending/receiving data, but cannot be accessed through the INetworkedDataHandler interface (users should never call these methods)
Methods
IPeer GetSelfOrNull()
Returns the self peer if possible, otherwise returns null. For example, if the group's manager has not yet been attached to an IMultipeerNetworking, there is no concept of Self, so return null.
Returns:
virtual void Unregister()
Remove this data handler from its current group. No more data will be sent/received by this handler until it is registered to a new group