reckfellENGINE

MultiplayerApiExtension

Base class used for extending the MultiplayerAPI.

On this page
class MultiplayerApiExtensionReckfellSharpInherits MultiplayerApi

Base class used for extending the MultiplayerApi.

This class can be used to extend or replace the default MultiplayerApi implementation via script or extensions. The following example extend the default implementation (SceneMultiplayer) by logging every RPC being made, and every object being configured for replication.

Then in your main scene or in an autoload call EntityTree.SetMultiplayer to start using your custom MultiplayerApi:

Native extensions can alternatively use the MultiplayerApi.SetDefaultInterface method during initialization to configure themselves as the default implementation.

Declarations checked against C# SDK 1.0.0. Expand a name to see declarations and documentation.

Constructors1

MultiplayerApiExtensionConstructor
# MultiplayerApiExtension
C#
public MultiplayerApiExtension();

Methods9

_GetMultiplayerPeerMultiplayerPeer
# _GetMultiplayerPeer
C#
public virtual MultiplayerPeer _GetMultiplayerPeer();

Called when the MultiplayerApi.MultiplayerPeer is retrieved.

Returns MultiplayerPeer
_GetPeerIdsint[]
# _GetPeerIds
C#
public virtual int[] _GetPeerIds();

Callback for MultiplayerApi.GetPeers.

Returns int[]
_GetRemoteSenderIdint
# _GetRemoteSenderId
C#
public virtual int _GetRemoteSenderId();

Callback for MultiplayerApi.GetRemoteSenderId.

Returns int
_GetUniqueIdint
# _GetUniqueId
C#
public virtual int _GetUniqueId();

Callback for MultiplayerApi.GetUniqueId.

Returns int
_ObjectConfigurationAddError
# _ObjectConfigurationAdd
C#
public virtual Error _ObjectConfigurationAdd(ReckfellObject @object, Variant configuration);

Callback for MultiplayerApi.ObjectConfigurationAdd.

Parameters
NameTypeDefault
objectReckfellObject—
configurationVariant—
Returns Error
_ObjectConfigurationRemoveError
# _ObjectConfigurationRemove
C#
public virtual Error _ObjectConfigurationRemove(ReckfellObject @object, Variant configuration);

Callback for MultiplayerApi.ObjectConfigurationRemove.

Parameters
NameTypeDefault
objectReckfellObject—
configurationVariant—
Returns Error
_PollError
# _Poll
C#
public virtual Error _Poll();

Callback for MultiplayerApi.Poll.

Returns Error
_RpcError
# _Rpc
C#
public virtual Error _Rpc(int peer, ReckfellObject @object, StringName method, Reckfell.Collections.Array args);

Callback for MultiplayerApi.Rpc.

Parameters
NameTypeDefault
peerint—
objectReckfellObject—
methodStringName—
argsReckfell.Collections.Array—
Returns Error
_SetMultiplayerPeervoid
# _SetMultiplayerPeer
C#
public virtual void _SetMultiplayerPeer(MultiplayerPeer multiplayerPeer);

Called when the MultiplayerApi.MultiplayerPeer is set.

Parameters
NameTypeDefault
multiplayerPeerMultiplayerPeer—
Reckfell Engine documentationBack to top ↑
QUICK LINKSGetting startedEntity hierarchyC# & .NET 10Scenes and prefabs
Reckfell guides and full API K
reckfellENGINE
RECKFELL ACCOUNT

Sign in

Sign in to your Reckfell account.

One account for the entire Reckfell platform.