Class DummyConnectionComponent
A BaseConnectionComponent that creates a DummyConnection for local in-memory publish/subscribe testing without a network.
Inheritance
DummyConnectionComponent
Implements
Inherited Members
Object.GetEntityId()
Object.InstantiateAsync<T>(T)
Object.InstantiateAsync<T>(T, Transform)
Object.InstantiateAsync<T>(T, Vector3, Quaternion)
Object.InstantiateAsync<T>(T, Transform, Vector3, Quaternion)
Object.Instantiate<T>(T, InstantiateParameters)
Object.Instantiate<T>(T, Vector3, Quaternion, InstantiateParameters)
Object.FindObjectsByType<T>(FindObjectsSortMode)
Object.FindObjectsByType<T>(FindObjectsInactive, FindObjectsSortMode)
Object.FindFirstObjectByType<T>()
Object.FindAnyObjectByType<T>()
Object.FindFirstObjectByType<T>(FindObjectsInactive)
Object.FindAnyObjectByType<T>(FindObjectsInactive)
Namespace: Unity.SimulationPro.Foundation
Assembly: Unity.SimulationPro.Foundation.dll
Syntax
public class DummyConnectionComponent : BaseConnectionComponent, IPropertySerialization
Remarks
Add this component to a GameObject in the scene to enable in-process messaging suitable for unit tests and Editor play-mode testing. Properties are binary-serializable via IPropertySerialization.
Properties
HudText
Gets or sets the label displayed in the ConnectorHud header for this connection.
Declaration
public string HudText { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Methods
CreateConnector()
CreateConnector method.
Declaration
protected override IConnector CreateConnector()
Returns
| Type | Description |
|---|---|
| IConnector | The result. |
Overrides
DeserializeProperties(BinaryReader)
Deserializes a DummyConnectionComponent from the given deserializer.
Declaration
public void DeserializeProperties(BinaryReader reader)
Parameters
| Type | Name | Description |
|---|---|---|
| BinaryReader | reader | The reader. |
DrawHeaderGUI()
DrawHeaderGUI method.
Declaration
protected override void DrawHeaderGUI()
Overrides
SerializeProperties(BinaryWriter)
SerializeProperties method.
Declaration
public void SerializeProperties(BinaryWriter writer)
Parameters
| Type | Name | Description |
|---|---|---|
| BinaryWriter | writer | The writer. |