Class NetVarContainer
This is a refactor of the original test's NetworkBehaviour INetVarInfo derived NetworkBehaviours
Inheritance
NetVarContainer
Syntax
public class NetVarContainer : NetworkBehaviour
Fields
NumberOfNetVarsToCheck
Declaration
public NetVarContainer.NetVarsToCheck NumberOfNetVarsToCheck
Field Value
ValueToSetNetVarTo
Declaration
public int ValueToSetNetVarTo
Field Value
Methods
AreNetVarsDirty()
Only used on the server side to check the isDirty flag for the
NetworkVariables being used for each test iteration
Declaration
public bool AreNetVarsDirty()
Returns
CreatePrefabGameObject(NetVarCombinationTypes)
Creates a prefab with two instances of this NetworkBehaviour
Declaration
public static GameObject CreatePrefabGameObject(NetVarCombinationTypes netVarsToCheck)
Parameters
Returns
HaveAllValuesChanged(Int32)
Only used on the client-side for this test, this
is used to see if the network variables have changed.
Declaration
public bool HaveAllValuesChanged(int valueToCheck)
Parameters
Type |
Name |
Description |
Int32 |
valueToCheck |
|
Returns
OnNetworkSpawn()
Declaration
public override void OnNetworkSpawn()
Overrides
SetNetworkVariableValues()
Server side only, sets the NetworkVariables being used to the ValueToSetNetVarTo
that is pre-configured when the Network Prefab is created.
Declaration
public void SetNetworkVariableValues()