Interface INetcodeService
An interface that allows to join and leave a runtime multiparticipant server
Namespace: Unity.Cloud.Presence.Runtime
Syntax
public interface INetcodeService : IParticipantProvider<INetcodeParticipant>
Properties
GenericMessageHandler
Provide the GenericMessageHandler
Declaration
IGenericMessageHandler GenericMessageHandler { get; }
Property Value
| Type | Description |
|---|---|
| IGenericMessageHandler |
Methods
Join()
Joins the runtime multiparticipant room
Declaration
void Join()
Leave()
Leaves the runtime multiparticipant room
Declaration
void Leave()
Participants()
Provide all the actives participants
Declaration
IEnumerable<INetcodeParticipant> Participants()
Returns
| Type | Description |
|---|---|
| IEnumerable<INetcodeParticipant> |
Events
ClientStarted
Calls the methods in its invocation list when the client started
Declaration
event Action ClientStarted
Event Type
| Type | Description |
|---|---|
| Action |
ClientStopped
Calls the methods in its invocation list when the client stopped
Declaration
event Action ClientStopped
Event Type
| Type | Description |
|---|---|
| Action |
ParticipantAdded
Calls the methods in its invocation list when a participant is added
Declaration
event Action<INetcodeParticipant> ParticipantAdded
Event Type
| Type | Description |
|---|---|
| Action<INetcodeParticipant> |
ParticipantRemoved
Calls the methods in its invocation list when a participant is removed
Declaration
event Action<INetcodeParticipant> ParticipantRemoved
Event Type
| Type | Description |
|---|---|
| Action<INetcodeParticipant> |