Photon Fusion 2.1.1

NetworkObjectProviderDummy Class Reference

A dummy implementation of the INetworkObjectProvider interface. This class is used for testing purposes and throws a NotImplementedException for all its methods. More...

Inherits INetworkObjectProvider.

Public Member Functions

NetworkObjectAcquireResult AcquireInstance (NetworkRunner runner, in NetworkObjectAcquireContext context, out NetworkObject instance)
 Acquires an instance of a prefab for a network object.
Parameters
runnerThe NetworkRunner that manages the network objects.
contextThe context that provides information for acquiring the prefab instance.
resultThe acquired NetworkObject instance.
Returns
A NetworkObjectAcquireResult indicating the result of the operation.

NetworkPrefabId GetPrefabId (NetworkRunner runner, NetworkObjectGuid prefabGuid)
 Translates guid into prefab id.
Parameters
runner
prefabGuid
Returns

void ReleaseInstance (NetworkRunner runner, in NetworkObjectReleaseContext context)
 Releases an instance of a network object.
Parameters
runnerThe NetworkRunner that manages the network objects.
contextThe context that provides information for releasing the network object instance.

Public Member Functions inherited from INetworkObjectProvider
NetworkObjectAcquireResult AcquirePrefabInstance (NetworkRunner runner, in NetworkPrefabAcquireContext context, out NetworkObject result)
 Obsolete, use AcquireInstance((NetworkRunner runner, in NetworkObjectAcquireContext context, out NetworkObject result) instead.
NetworkPrefabId GetPrefabId (NetworkRunner runner, string prefabName)
 Translates guid into prefab id.
void Initialize (NetworkRunner networkRunner)
 Called when the NetworkRunner is starting up.
void Shutdown (NetworkRunner networkRunner)
 Called when the NetworkRunner is shutting down.

Detailed Description

A dummy implementation of the INetworkObjectProvider interface. This class is used for testing purposes and throws a NotImplementedException for all its methods.