Class NetworkVariablePermissionTests
Inheritance
NetworkVariablePermissionTests
Syntax
public class NetworkVariablePermissionTests : NetcodeIntegrationTest
Constructors
NetworkVariablePermissionTests(NetcodeIntegrationTest.HostOrServer)
Declaration
public NetworkVariablePermissionTests(NetcodeIntegrationTest.HostOrServer hostOrServer)
Parameters
Properties
NumberOfClients
Declaration
protected override int NumberOfClients { get; }
Property Value
Overrides
Methods
ClientCannotChangeServerWritableNetVar()
Declaration
public IEnumerator ClientCannotChangeServerWritableNetVar()
Returns
ClientChangesOwnerWritableNetVar()
Declaration
public IEnumerator ClientChangesOwnerWritableNetVar()
Returns
ClientOwnerWithReadWriteChangesNetVar()
This tests the scenario where a client owner has both read and write
permissions set. The server should be the only instance that can read
the NetworkVariable. ServerCannotChangeOwnerWritableNetVar performs
the same check to make sure the server cannot write to a client owner
NetworkVariable with owner write permissions.
Declaration
public IEnumerator ClientOwnerWithReadWriteChangesNetVar()
Returns
OnServerAndClientsConnected()
Declaration
protected override IEnumerator OnServerAndClientsConnected()
Returns
Overrides
OnServerAndClientsCreated()
Declaration
protected override void OnServerAndClientsCreated()
Overrides
ServerCannotChangeOwnerWritableNetVar()
Declaration
public IEnumerator ServerCannotChangeOwnerWritableNetVar()
Returns
ServerChangesOwnerWritableNetVar()
Declaration
public IEnumerator ServerChangesOwnerWritableNetVar()
Returns
ServerChangesServerWritableNetVar()
Declaration
public IEnumerator ServerChangesServerWritableNetVar()
Returns
TestDataSource()
Declaration
public static IEnumerable<TestFixtureData> TestDataSource()
Returns