Class NetworkObjectOwnershipTests
Inheritance
NetworkObjectOwnershipTests
Assembly: solution.dll
Syntax
public class NetworkObjectOwnershipTests : NetcodeIntegrationTest
Constructors
NetworkObjectOwnershipTests(HostOrServer)
Declaration
public NetworkObjectOwnershipTests(NetcodeIntegrationTest.HostOrServer hostOrServer)
Parameters
Properties
NumberOfClients
Declaration
protected override int NumberOfClients { get; }
Property Value
Overrides
Methods
OnServerAndClientsCreated()
This is invoked before the server and client(s) are started.
Override this method if you want to make any adjustments to their
NetworkManager instances.
Declaration
protected override void OnServerAndClientsCreated()
Overrides
TestOwnedObjectCounts()
Declaration
[UnityTestAttribute]
public IEnumerator TestOwnedObjectCounts()
Returns
TestOwnershipCallbacks(OwnershipChecks)
Declaration
[UnityTestAttribute]
public IEnumerator TestOwnershipCallbacks(NetworkObjectOwnershipTests.OwnershipChecks ownershipChecks)
Parameters
Returns
TestOwnershipCallbacksSeveralClients(OwnershipChecks)
Verifies that switching ownership between several clients works properly
Declaration
[UnityTestAttribute]
public IEnumerator TestOwnershipCallbacksSeveralClients(NetworkObjectOwnershipTests.OwnershipChecks ownershipChecks)
Parameters
Returns
TestPlayerIsOwned()
Declaration
public void TestPlayerIsOwned()