Class NetworkVariableTests
Inheritance
NetworkVariableTests
Syntax
public class NetworkVariableTests : NetcodeIntegrationTest
Constructors
NetworkVariableTests(Boolean)
Declaration
public NetworkVariableTests(bool ensureLengthSafety)
Parameters
Type |
Name |
Description |
Boolean |
ensureLengthSafety |
|
Properties
NumberOfClients
Declaration
protected override int NumberOfClients { get; }
Property Value
Overrides
Methods
AllNetworkVariableTypes(Boolean)
Runs generalized tests on all predefined NetworkVariable types
Declaration
public IEnumerator AllNetworkVariableTypes(bool useHost)
Parameters
Type |
Name |
Description |
Boolean |
useHost |
|
Returns
CanStartServerAndClients()
Declaration
protected override bool CanStartServerAndClients()
Returns
Overrides
ClientNetworkVariableTestSpawned(NetworkVariableTest)
Declaration
public static void ClientNetworkVariableTestSpawned(NetworkVariableTest networkVariableTest)
Parameters
ClientWritePermissionTest(Boolean)
Declaration
public IEnumerator ClientWritePermissionTest(bool useHost)
Parameters
Type |
Name |
Description |
Boolean |
useHost |
|
Returns
FixedString32Test(Boolean)
Declaration
public IEnumerator FixedString32Test(bool useHost)
Parameters
Type |
Name |
Description |
Boolean |
useHost |
|
Returns
NetworkListAdd(Boolean)
Declaration
public IEnumerator NetworkListAdd(bool useHost)
Parameters
Type |
Name |
Description |
Boolean |
useHost |
|
Returns
NetworkListArrayOperator(Boolean)
Declaration
public IEnumerator NetworkListArrayOperator(bool useHost)
Parameters
Type |
Name |
Description |
Boolean |
useHost |
|
Returns
NetworkListClear(Boolean)
Declaration
public IEnumerator NetworkListClear(bool useHost)
Parameters
Type |
Name |
Description |
Boolean |
useHost |
|
Returns
NetworkListContains(Boolean)
Declaration
public IEnumerator NetworkListContains(bool useHost)
Parameters
Type |
Name |
Description |
Boolean |
useHost |
|
Returns
NetworkListIEnumerator(Boolean)
Declaration
public IEnumerator NetworkListIEnumerator(bool useHost)
Parameters
Type |
Name |
Description |
Boolean |
useHost |
|
Returns
NetworkListIndexOf(Boolean)
Declaration
public IEnumerator NetworkListIndexOf(bool useHost)
Parameters
Type |
Name |
Description |
Boolean |
useHost |
|
Returns
NetworkListInsert(Boolean)
Declaration
public IEnumerator NetworkListInsert(bool useHost)
Parameters
Type |
Name |
Description |
Boolean |
useHost |
|
Returns
NetworkListRemove(Boolean)
Declaration
public IEnumerator NetworkListRemove(bool useHost)
Parameters
Type |
Name |
Description |
Boolean |
useHost |
|
Returns
NetworkListRemoveAt(Boolean)
Declaration
public IEnumerator NetworkListRemoveAt(bool useHost)
Parameters
Type |
Name |
Description |
Boolean |
useHost |
|
Returns
NetworkListValueUpdate(Boolean)
Declaration
public IEnumerator NetworkListValueUpdate(bool useHost)
Parameters
Type |
Name |
Description |
Boolean |
useHost |
|
Returns
NetworkVariableSync_WithDifferentTimeScale(Boolean, Single)
Runs tests that network variables sync on client whatever the local value of timeScale.
Declaration
public IEnumerator NetworkVariableSync_WithDifferentTimeScale(bool useHost, float timeScale)
Parameters
Returns
OnSetup()
Declaration
protected override IEnumerator OnSetup()
Returns
Overrides
OnTearDown()
Declaration
protected override IEnumerator OnTearDown()
Returns
Overrides
TestINetworkSerializableClassCallsNetworkSerialize(Boolean)
Declaration
public IEnumerator TestINetworkSerializableClassCallsNetworkSerialize(bool useHost)
Parameters
Type |
Name |
Description |
Boolean |
useHost |
|
Returns
TestINetworkSerializableStructCallsNetworkSerialize(Boolean)
Declaration
public IEnumerator TestINetworkSerializableStructCallsNetworkSerialize(bool useHost)
Parameters
Type |
Name |
Description |
Boolean |
useHost |
|
Returns
TestManagedINetworkSerializableNetworkVariablesDeserializeInPlace()
Declaration
public void TestManagedINetworkSerializableNetworkVariablesDeserializeInPlace()
TestNetworkListStruct(Boolean)
Declaration
public IEnumerator TestNetworkListStruct(bool useHost)
Parameters
Type |
Name |
Description |
Boolean |
useHost |
|
Returns
TestNetworkVariableClass(Boolean)
Declaration
public IEnumerator TestNetworkVariableClass(bool useHost)
Parameters
Type |
Name |
Description |
Boolean |
useHost |
|
Returns
TestNetworkVariableEnum(Boolean)
Declaration
public IEnumerator TestNetworkVariableEnum(bool useHost)
Parameters
Type |
Name |
Description |
Boolean |
useHost |
|
Returns
TestNetworkVariableStruct(Boolean)
Declaration
public IEnumerator TestNetworkVariableStruct(bool useHost)
Parameters
Type |
Name |
Description |
Boolean |
useHost |
|
Returns
TestNetworkVariableTemplateBehaviourClass(Boolean)
Declaration
public IEnumerator TestNetworkVariableTemplateBehaviourClass(bool useHost)
Parameters
Type |
Name |
Description |
Boolean |
useHost |
|
Returns
TestNetworkVariableTemplateBehaviourClassNotReferencedElsewhere(Boolean)
Declaration
public IEnumerator TestNetworkVariableTemplateBehaviourClassNotReferencedElsewhere(bool useHost)
Parameters
Type |
Name |
Description |
Boolean |
useHost |
|
Returns
TestNetworkVariableTemplateBehaviourStruct(Boolean)
Declaration
public IEnumerator TestNetworkVariableTemplateBehaviourStruct(bool useHost)
Parameters
Type |
Name |
Description |
Boolean |
useHost |
|
Returns
TestNetworkVariableTemplateClass(Boolean)
Declaration
public IEnumerator TestNetworkVariableTemplateClass(bool useHost)
Parameters
Type |
Name |
Description |
Boolean |
useHost |
|
Returns
TestNetworkVariableTemplateStruct(Boolean)
Declaration
public IEnumerator TestNetworkVariableTemplateStruct(bool useHost)
Parameters
Type |
Name |
Description |
Boolean |
useHost |
|
Returns
TestUnmnagedINetworkSerializableNetworkVariablesDeserializeInPlace()
Declaration
public void TestUnmnagedINetworkSerializableNetworkVariablesDeserializeInPlace()
TestUnsupportedManagedTypesThrowExceptions()
Declaration
public void TestUnsupportedManagedTypesThrowExceptions()
TestUnsupportedManagedTypesWithUserSerializationDoNotThrowExceptions()
Declaration
public void TestUnsupportedManagedTypesWithUserSerializationDoNotThrowExceptions()
TestUnsupportedUnmanagedTypesThrowExceptions()
Declaration
public void TestUnsupportedUnmanagedTypesThrowExceptions()
TestUnsupportedUnmanagedTypesWithUserSerializationDoNotThrowExceptions()
Declaration
public void TestUnsupportedUnmanagedTypesWithUserSerializationDoNotThrowExceptions()
WhenListContainsManyLargeValues_OverflowExceptionIsNotThrown(Boolean)
Declaration
public IEnumerator WhenListContainsManyLargeValues_OverflowExceptionIsNotThrown(bool useHost)
Parameters
Type |
Name |
Description |
Boolean |
useHost |
|
Returns