Class NetworkVariableAnticipationTests
Inheritance
NetworkVariableAnticipationTests
Assembly: Unity.Netcode.RuntimeTests.dll
Syntax
public class NetworkVariableAnticipationTests : NetcodeIntegrationTest
Properties
NumberOfClients
Declaration
protected override int NumberOfClients { get; }
Property Value
Overrides
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
Methods
GetOtherClientComponent()
Declaration
public NetworkVariableAnticipationComponent GetOtherClientComponent()
Returns
GetServerComponent()
Declaration
public NetworkVariableAnticipationComponent GetServerComponent()
Returns
GetTestComponent()
Declaration
public NetworkVariableAnticipationComponent GetTestComponent()
Returns
OnPlayerPrefabGameObjectCreated()
Declaration
protected override void OnPlayerPrefabGameObjectCreated()
Overrides
PreviousValueIsMaintainedProperly()
Validates the previous value is being properly updated on the non-authoritative side.
Declaration
[Test]
public void PreviousValueIsMaintainedProperly()
WhenAnticipating_AuthoritativeValueDoesNotChange()
Declaration
[Test]
public void WhenAnticipating_AuthoritativeValueDoesNotChange()
WhenAnticipating_OtherClientDoesNotChange()
Declaration
[Test]
public void WhenAnticipating_OtherClientDoesNotChange()
WhenAnticipating_ServerDoesNotChange()
Declaration
[Test]
public void WhenAnticipating_ServerDoesNotChange()
Declaration
[Test]
public void WhenAnticipating_ValueChangesImmediately()
WhenNonStaleDataArrivesToIgnoreVariable_ItIsNotIgnored(uint, uint)
Declaration
[Test]
public void WhenNonStaleDataArrivesToIgnoreVariable_ItIsNotIgnored(uint tickRate, uint skipFrames)
Parameters
Type |
Name |
Description |
uint |
tickRate |
|
uint |
skipFrames |
|
WhenServerChangesReanticipateValue_ValuesAreReanticipated()
Declaration
[Test]
public void WhenServerChangesReanticipateValue_ValuesAreReanticipated()
WhenServerChangesSmoothValue_ValuesAreLerped()
Declaration
[Test]
public void WhenServerChangesSmoothValue_ValuesAreLerped()
WhenServerChangesSnapValue_ValuesAreUpdated()
Declaration
[Test]
public void WhenServerChangesSnapValue_ValuesAreUpdated()
WhenStaleDataArrivesToIgnoreVariable_ItIsIgnored(uint, uint)
Declaration
[Test]
public void WhenStaleDataArrivesToIgnoreVariable_ItIsIgnored(uint tickRate, uint skipFrames)
Parameters
Type |
Name |
Description |
uint |
tickRate |
|
uint |
skipFrames |
|
WhenStaleDataArrivesToReanticipatedVariable_ItIsAppliedAndReanticipated()
Declaration
[Test]
public void WhenStaleDataArrivesToReanticipatedVariable_ItIsAppliedAndReanticipated()