Photon Fusion 2.0.0

Public Member Functions | List of all members
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 AcquirePrefabInstance (NetworkRunner runner, in NetworkPrefabAcquireContext 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.

 
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.

 
NetworkObjectAcquireResult AcquirePrefabInstance (NetworkRunner runner, in NetworkPrefabAcquireContext context, out NetworkObject result)
 Acquires an instance of a prefab for a network object.
 
void ReleaseInstance (NetworkRunner runner, in NetworkObjectReleaseContext context)
 Releases an instance of a network object.
 

Detailed Description

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

Member Function Documentation

◆ AcquirePrefabInstance()

NetworkObjectAcquireResult AcquirePrefabInstance ( NetworkRunner  runner,
in NetworkPrefabAcquireContext  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.

Implements INetworkObjectProvider.

◆ ReleaseInstance()

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.

Implements INetworkObjectProvider.