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