Class NetworkTransformAnticipationTests
Inheritance
NetworkTransformAnticipationTests
Assembly: Unity.Netcode.RuntimeTests.dll
public class NetworkTransformAnticipationTests : NetcodeIntegrationTest
Properties
Declaration
protected override int NumberOfClients { get; }
Property Value
Overrides
Declaration
protected override bool m_EnableTimeTravel { get; }
Property Value
Overrides
Declaration
protected override bool m_SetupIsACoroutine { get; }
Property Value
Overrides
Declaration
protected override bool m_TearDownIsACoroutine { get; }
Property Value
Overrides
Methods
Declaration
public void AssertQuaternionsAreEquivalent(Quaternion a, Quaternion b)
Parameters
Declaration
public void AssertVectorsAreEquivalent(Vector3 a, Vector3 b)
Parameters
Declaration
public AnticipatedNetworkTransform GetOtherClientComponent()
Returns
Declaration
public AnticipatedNetworkTransform GetServerComponent()
Returns
Declaration
public AnticipatedNetworkTransform GetTestComponent()
Returns
Declaration
protected override void OnPlayerPrefabGameObjectCreated()
Overrides
Declaration
protected override void OnTimeTravelServerAndClientsConnected()
Overrides
Declaration
[Test]
public void WhenAnticipating_AuthoritativeValueDoesNotChange()
Declaration
[Test]
public void WhenAnticipating_OtherClientDoesNotChange()
Declaration
[Test]
public void WhenAnticipating_ServerDoesNotChange()
Declaration
[Test]
public void WhenAnticipating_ValueChangesImmediately()
Declaration
[Test]
public void WhenNonStaleDataArrivesToIgnoreVariable_ItIsNotIgnored(uint tickRate, uint skipFrames)
Parameters
Type |
Name |
Description |
uint |
tickRate |
|
uint |
skipFrames |
|
Declaration
[Test]
public void WhenServerChangesReanticipeValue_ValuesAreReanticiped()
Declaration
[Test]
public void WhenServerChangesSmoothValue_ValuesAreLerped()
Declaration
[Test]
public void WhenServerChangesSnapValue_ValuesAreUpdated()
Declaration
[Test]
public void WhenStaleDataArrivesToIgnoreVariable_ItIsIgnored(uint tickRate, uint skipFrames)
Parameters
Type |
Name |
Description |
uint |
tickRate |
|
uint |
skipFrames |
|