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(NetcodeIntegrationTest.HostOrServer)
Runs generalized tests on all predefined NetworkVariable types
Declaration
public void AllNetworkVariableTypes(NetcodeIntegrationTest.HostOrServer useHost)
Parameters
CanStartServerAndClients()
Declaration
protected override bool CanStartServerAndClients()
Returns
Overrides
ClientNetworkVariableTestSpawned(NetworkVariableTest)
Declaration
public static void ClientNetworkVariableTestSpawned(NetworkVariableTest networkVariableTest)
Parameters
ClientWritePermissionTest(NetcodeIntegrationTest.HostOrServer)
Declaration
public void ClientWritePermissionTest(NetcodeIntegrationTest.HostOrServer useHost)
Parameters
FixedString32Test(NetcodeIntegrationTest.HostOrServer)
Declaration
public void FixedString32Test(NetcodeIntegrationTest.HostOrServer useHost)
Parameters
NetworkListAdd(NetcodeIntegrationTest.HostOrServer)
Declaration
public void NetworkListAdd(NetcodeIntegrationTest.HostOrServer useHost)
Parameters
NetworkListClear(NetcodeIntegrationTest.HostOrServer)
Declaration
public void NetworkListClear(NetcodeIntegrationTest.HostOrServer useHost)
Parameters
NetworkListContains(NetcodeIntegrationTest.HostOrServer)
Declaration
public void NetworkListContains(NetcodeIntegrationTest.HostOrServer useHost)
Parameters
NetworkListIndexOf(NetcodeIntegrationTest.HostOrServer)
Declaration
public void NetworkListIndexOf(NetcodeIntegrationTest.HostOrServer useHost)
Parameters
NetworkListInsert(NetcodeIntegrationTest.HostOrServer)
Declaration
public void NetworkListInsert(NetcodeIntegrationTest.HostOrServer useHost)
Parameters
NetworkListRemoveTests(NetcodeIntegrationTest.HostOrServer, NetworkVariableTests.ListRemoveTypes)
Declaration
public void NetworkListRemoveTests(NetcodeIntegrationTest.HostOrServer useHost, NetworkVariableTests.ListRemoveTypes listRemoveType)
Parameters
NetworkListValueUpdate(NetcodeIntegrationTest.HostOrServer)
Declaration
public void NetworkListValueUpdate(NetcodeIntegrationTest.HostOrServer useHost)
Parameters
NetworkVariableSync_WithDifferentTimeScale(NetcodeIntegrationTest.HostOrServer, Single)
Runs tests that network variables sync on client whatever the local value of timeScale.
Declaration
public void NetworkVariableSync_WithDifferentTimeScale(NetcodeIntegrationTest.HostOrServer useHost, float timeScale)
Parameters
OnSetup()
Declaration
protected override IEnumerator OnSetup()
Returns
Overrides
OnTearDown()
Declaration
protected override IEnumerator OnTearDown()
Returns
Overrides
TestINetworkSerializableClassCallsNetworkSerialize(NetcodeIntegrationTest.HostOrServer)
Declaration
public void TestINetworkSerializableClassCallsNetworkSerialize(NetcodeIntegrationTest.HostOrServer useHost)
Parameters
TestINetworkSerializableStructCallsNetworkSerialize(NetcodeIntegrationTest.HostOrServer)
Declaration
public void TestINetworkSerializableStructCallsNetworkSerialize(NetcodeIntegrationTest.HostOrServer useHost)
Parameters
TestManagedINetworkSerializableNetworkVariablesDeserializeInPlace()
Declaration
public void TestManagedINetworkSerializableNetworkVariablesDeserializeInPlace()
TestNetworkListStruct(NetcodeIntegrationTest.HostOrServer)
Declaration
public void TestNetworkListStruct(NetcodeIntegrationTest.HostOrServer useHost)
Parameters
TestNetworkVariableClass(NetcodeIntegrationTest.HostOrServer)
Declaration
public void TestNetworkVariableClass(NetcodeIntegrationTest.HostOrServer useHost)
Parameters
TestNetworkVariableEnum(NetcodeIntegrationTest.HostOrServer)
Declaration
public void TestNetworkVariableEnum(NetcodeIntegrationTest.HostOrServer useHost)
Parameters
TestNetworkVariableStruct(NetcodeIntegrationTest.HostOrServer)
Declaration
public void TestNetworkVariableStruct(NetcodeIntegrationTest.HostOrServer useHost)
Parameters
TestNetworkVariableTemplateBehaviourClass(NetcodeIntegrationTest.HostOrServer)
Declaration
public void TestNetworkVariableTemplateBehaviourClass(NetcodeIntegrationTest.HostOrServer useHost)
Parameters
TestNetworkVariableTemplateBehaviourClassNotReferencedElsewhere(NetcodeIntegrationTest.HostOrServer)
Declaration
public void TestNetworkVariableTemplateBehaviourClassNotReferencedElsewhere(NetcodeIntegrationTest.HostOrServer useHost)
Parameters
TestNetworkVariableTemplateBehaviourStruct(NetcodeIntegrationTest.HostOrServer)
Declaration
public void TestNetworkVariableTemplateBehaviourStruct(NetcodeIntegrationTest.HostOrServer useHost)
Parameters
TestNetworkVariableTemplateClass(NetcodeIntegrationTest.HostOrServer)
Declaration
public void TestNetworkVariableTemplateClass(NetcodeIntegrationTest.HostOrServer useHost)
Parameters
TestNetworkVariableTemplateStruct(NetcodeIntegrationTest.HostOrServer)
Declaration
public void TestNetworkVariableTemplateStruct(NetcodeIntegrationTest.HostOrServer useHost)
Parameters
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()
WhenCreatingAnArrayOfNetVars_InitializingVariablesDoesNotThrowAnException()
Declaration
public void WhenCreatingAnArrayOfNetVars_InitializingVariablesDoesNotThrowAnException()
WhenListContainsManyLargeValues_OverflowExceptionIsNotThrown(NetcodeIntegrationTest.HostOrServer)
Declaration
public void WhenListContainsManyLargeValues_OverflowExceptionIsNotThrown(NetcodeIntegrationTest.HostOrServer useHost)
Parameters
WhenSerializingAndDeserializingValueTypeNativeArrayNetworkVariables_ValuesAreSerializedCorrectly(Type)
Declaration
public void WhenSerializingAndDeserializingValueTypeNativeArrayNetworkVariables_ValuesAreSerializedCorrectly(Type testType)
Parameters
Type |
Name |
Description |
Type |
testType |
|
WhenSerializingAndDeserializingValueTypeNetworkVariables_ValuesAreSerializedCorrectly(Type)
Declaration
public void WhenSerializingAndDeserializingValueTypeNetworkVariables_ValuesAreSerializedCorrectly(Type testType)
Parameters
Type |
Name |
Description |
Type |
testType |
|