Class StateSynchronizationSceneManager
Service that registers ComponentBroadcasterDefinitions used to create ComponentBroadcasters for components and to manage both broadcasting and observing components.
Inherited Members
Namespace: Microsoft.MixedReality.SpectatorView
Assembly: cs.temp.dll.dll
Syntax
public class StateSynchronizationSceneManager : Singleton<StateSynchronizationSceneManager>
Fields
CustomBroadcasterServicesPrefabName
Declaration
public const string CustomBroadcasterServicesPrefabName = "CustomBroadcasterServices"
Field Value
Type | Description |
---|---|
String |
DefaultStateSynchronizationPerformanceParametersPrefabName
Declaration
public const string DefaultStateSynchronizationPerformanceParametersPrefabName = "DefaultStateSynchronizationPerformanceParameters"
Field Value
Type | Description |
---|---|
String |
Methods
Awake()
Declaration
protected override void Awake()
Overrides
RegisterService(IComponentBroadcasterService, ComponentBroadcasterDefinition)
Registers an IComponentBroadcasterService along with a ComponentBroadcasterDefinition. This service and definition control how a particular type of Component is both broadcast and observed.
Declaration
public void RegisterService(IComponentBroadcasterService service, ComponentBroadcasterDefinition componentDefinition)
Parameters
Type | Name | Description |
---|---|---|
IComponent |
service | The service which controls broadcasting and observing component changes. |
Component |
componentDefinition | The definition controlling when a component should be broadcast. |
Send(IEnumerable<SocketEndpoint>, Byte[])
Sends a message to a collection of SocketEndpoints.
Declaration
public void Send(IEnumerable<SocketEndpoint> endpoints, byte[] message)
Parameters
Type | Name | Description |
---|---|---|
IEnumerable<Socket |
endpoints | The endpoints to send the message to. |
Byte[] | message | The message to send. |
WriteSynchronizeCommandHeader(BinaryWriter)
Writes the header for a ComponentBroadcaster's synchronize command, used to send a component's state change from the broadcaster to the observer.
Declaration
public void WriteSynchronizeCommandHeader(BinaryWriter message)
Parameters
Type | Name | Description |
---|---|---|
Binary |
message | The message in which to write the header. |