Class RpcPipelineTestComponent
Used in conjunction with the RpcQueueTest to validate:
- Sending and Receiving pipeline to validate that both sending and receiving pipelines are functioning properly.
- Usage of the ServerRpcParams.Send.UpdateStage and ClientRpcParams.Send.UpdateStage functionality.
- Rpcs receive will be invoked at the appropriate NetworkUpdateStage.
Inheritance
RpcPipelineTestComponent
Inherited Members
Namespace: MLAPI.RuntimeTests
Assembly: Unity.Multiplayer.MLAPI.RuntimeTests.dll
Syntax
public class RpcPipelineTestComponent : NetworkBehaviour
Fields
MaxIterations
How many times will we iterate through the various NetworkUpdateStage values? (defaults to 2)
Declaration
public int MaxIterations
Field Value
Type | Description |
---|---|
int |
PingSelfEnabled
Allows the external RPCQueueTest to begin testing or stop it
Declaration
public bool PingSelfEnabled
Field Value
Type | Description |
---|---|
bool |
Methods
ExceededMaxIterations()
Determine if we have iterated over more than our maximum stages we want to test
Declaration
public bool ExceededMaxIterations()
Returns
Type | Description |
---|---|
bool | true or false (did we exceed the max iterations or not?) |
IsTestComplete()
Returns back whether the test has completed the total number of iterations
Declaration
public bool IsTestComplete()
Returns
Type | Description |
---|---|
bool |
ValidateUpdateStages()
Assures all update stages were in alginment with one another
Declaration
public bool ValidateUpdateStages()
Returns
Type | Description |
---|---|
bool | true or false |