Class UniversalRpcTestsBase
Inheritance
UniversalRpcTestsBase
Assembly: Unity.Netcode.RuntimeTests.dll
Syntax
public class UniversalRpcTestsBase : NetcodeIntegrationTest
Constructors
UniversalRpcTestsBase(HostOrServer)
Declaration
public UniversalRpcTestsBase(NetcodeIntegrationTest.HostOrServer hostOrServer)
Parameters
Fields
YieldCheck
Declaration
public static int YieldCheck
Field Value
YieldCycleCount
Declaration
public const int YieldCycleCount = 10
Field Value
m_ServerObject
Declaration
protected GameObject m_ServerObject
Field Value
s_ClientIds
Declaration
protected static ulong[] s_ClientIds
Field Value
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
Clear()
Declaration
GetPlayerObject(ulong, ulong)
Declaration
protected UniversalRpcNetworkBehaviour GetPlayerObject(ulong ownerClientId, ulong onClient)
Parameters
Type |
Name |
Description |
ulong |
ownerClientId |
|
ulong |
onClient |
|
Returns
OnCreatePlayerPrefab()
Declaration
protected override void OnCreatePlayerPrefab()
Overrides
OnInlineTearDown()
Declaration
protected override void OnInlineTearDown()
Overrides
OnOneTimeTearDown()
Declaration
protected override void OnOneTimeTearDown()
Overrides
OnServerAndClientsCreated()
Declaration
protected override void OnServerAndClientsCreated()
Overrides
OnSetIntegrationTestMode()
Declaration
protected override NetcodeIntegrationTest.NetworkManagerInstatiationMode OnSetIntegrationTestMode()
Returns
Overrides
OnTimeTravelServerAndClientsConnected()
Declaration
protected override void OnTimeTravelServerAndClientsConnected()
Overrides
RethrowTargetInvocationException(Action)
Declaration
public void RethrowTargetInvocationException(Action action)
Parameters
Type |
Name |
Description |
Action |
action |
|
VerifyLocalReceived(ulong, ulong, string, bool, int)
Declaration
protected void VerifyLocalReceived(ulong objectOwner, ulong sender, string name, bool verifyReceivedFrom, int expectedReceived = 1)
Parameters
VerifyLocalReceivedWithParams(ulong, ulong, string, int, bool, float, string)
Declaration
protected void VerifyLocalReceivedWithParams(ulong objectOwner, ulong sender, string name, int i, bool b, float f, string s)
Parameters
VerifyNotReceived(ulong, ulong[])
Declaration
protected void VerifyNotReceived(ulong objectOwner, ulong[] receivedBy)
Parameters
Type |
Name |
Description |
ulong |
objectOwner |
|
ulong[] |
receivedBy |
|
VerifyRemoteReceived(ulong, ulong, string, ulong[], bool, bool, int)
Declaration
protected void VerifyRemoteReceived(ulong objectOwner, ulong sender, string message, ulong[] receivedBy, bool verifyReceivedFrom, bool waitForMessages = true, int expectedReceived = 1)
Parameters
VerifyRemoteReceivedWithParams(ulong, ulong, string, ulong[], int, bool, float, string)
Declaration
protected void VerifyRemoteReceivedWithParams(ulong objectOwner, ulong sender, string message, ulong[] receivedBy, int i, bool b, float f, string s)
Parameters
VerifySentToClientsAndHost(ulong, ulong, string)
Declaration
public void VerifySentToClientsAndHost(ulong objectOwner, ulong sender, string methodName)
Parameters
VerifySentToClientsAndHostWithParams(ulong, ulong, string, int, bool, float, string)
Declaration
public void VerifySentToClientsAndHostWithParams(ulong objectOwner, ulong sender, string methodName, int i, bool b, float f, string s)
Parameters
VerifySentToClientsAndHostWithReceivedFrom(ulong, ulong, string)
Declaration
public void VerifySentToClientsAndHostWithReceivedFrom(ulong objectOwner, ulong sender, string methodName)
Parameters
VerifySentToEveryone(ulong, ulong, string)
Declaration
public void VerifySentToEveryone(ulong objectOwner, ulong sender, string methodName)
Parameters
VerifySentToEveryoneWithParams(ulong, ulong, string, int, bool, float, string)
Declaration
public void VerifySentToEveryoneWithParams(ulong objectOwner, ulong sender, string methodName, int i, bool b, float f, string s)
Parameters
VerifySentToEveryoneWithReceivedFrom(ulong, ulong, string)
Declaration
public void VerifySentToEveryoneWithReceivedFrom(ulong objectOwner, ulong sender, string methodName)
Parameters
VerifySentToId(ulong, ulong, ulong, string, bool)
Declaration
public void VerifySentToId(ulong objectOwner, ulong sender, ulong receiver, string methodName, bool verifyReceivedFrom)
Parameters
VerifySentToIdWithParams(ulong, ulong, ulong, string, int, bool, float, string)
Declaration
public void VerifySentToIdWithParams(ulong objectOwner, ulong sender, ulong receiver, string methodName, int i, bool b, float f, string s)
Parameters
VerifySentToMe(ulong, ulong, string)
Declaration
public void VerifySentToMe(ulong objectOwner, ulong sender, string methodName)
Parameters
VerifySentToMeWithParams(ulong, ulong, string, int, bool, float, string)
Declaration
public void VerifySentToMeWithParams(ulong objectOwner, ulong sender, string methodName, int i, bool b, float f, string s)
Parameters
VerifySentToMeWithReceivedFrom(ulong, ulong, string)
Declaration
public void VerifySentToMeWithReceivedFrom(ulong objectOwner, ulong sender, string methodName)
Parameters
VerifySentToNotId(ulong, ulong, ulong, string, bool)
Declaration
public void VerifySentToNotId(ulong objectOwner, ulong sender, ulong notReceiver, string methodName, bool verifyReceivedFrom)
Parameters
VerifySentToNotIdWithParams(ulong, ulong, ulong, string, int, bool, float, string)
Declaration
public void VerifySentToNotIdWithParams(ulong objectOwner, ulong sender, ulong notReceiver, string methodName, int i, bool b, float f, string s)
Parameters
VerifySentToNotMe(ulong, ulong, string)
Declaration
public void VerifySentToNotMe(ulong objectOwner, ulong sender, string methodName)
Parameters
VerifySentToNotMeWithParams(ulong, ulong, string, int, bool, float, string)
Declaration
public void VerifySentToNotMeWithParams(ulong objectOwner, ulong sender, string methodName, int i, bool b, float f, string s)
Parameters
VerifySentToNotMeWithReceivedFrom(ulong, ulong, string)
Declaration
public void VerifySentToNotMeWithReceivedFrom(ulong objectOwner, ulong sender, string methodName)
Parameters
VerifySentToNotOwner(ulong, ulong, string)
Declaration
public void VerifySentToNotOwner(ulong objectOwner, ulong sender, string methodName)
Parameters
VerifySentToNotOwnerWithParams(ulong, ulong, string, int, bool, float, string)
Declaration
public void VerifySentToNotOwnerWithParams(ulong objectOwner, ulong sender, string methodName, int i, bool b, float f, string s)
Parameters
VerifySentToNotOwnerWithReceivedFrom(ulong, ulong, string)
Declaration
public void VerifySentToNotOwnerWithReceivedFrom(ulong objectOwner, ulong sender, string methodName)
Parameters
VerifySentToNotServer(ulong, ulong, string)
Declaration
public void VerifySentToNotServer(ulong objectOwner, ulong sender, string methodName)
Parameters
VerifySentToNotServerWithParams(ulong, ulong, string, int, bool, float, string)
Declaration
public void VerifySentToNotServerWithParams(ulong objectOwner, ulong sender, string methodName, int i, bool b, float f, string s)
Parameters
VerifySentToNotServerWithReceivedFrom(ulong, ulong, string)
Declaration
public void VerifySentToNotServerWithReceivedFrom(ulong objectOwner, ulong sender, string methodName)
Parameters
VerifySentToOwner(ulong, ulong, string)
Declaration
public void VerifySentToOwner(ulong objectOwner, ulong sender, string methodName)
Parameters
VerifySentToOwnerWithParams(ulong, ulong, string, int, bool, float, string)
Declaration
public void VerifySentToOwnerWithParams(ulong objectOwner, ulong sender, string methodName, int i, bool b, float f, string s)
Parameters
VerifySentToOwnerWithReceivedFrom(ulong, ulong, string)
Declaration
public void VerifySentToOwnerWithReceivedFrom(ulong objectOwner, ulong sender, string methodName)
Parameters
VerifySentToServer(ulong, ulong, string)
Declaration
public void VerifySentToServer(ulong objectOwner, ulong sender, string methodName)
Parameters
VerifySentToServerWithParams(ulong, ulong, string, int, bool, float, string)
Declaration
public void VerifySentToServerWithParams(ulong objectOwner, ulong sender, string methodName, int i, bool b, float f, string s)
Parameters
VerifySentToServerWithReceivedFrom(ulong, ulong, string)
Declaration
public void VerifySentToServerWithReceivedFrom(ulong objectOwner, ulong sender, string methodName)
Parameters