Class ListTestHelperInt
Inheritance
ListTestHelperInt
Implements
Inherited Members
Component.GetComponent<T>()
Component.TryGetComponent<T>(out T)
Component.GetComponentInChildren<T>()
Component.GetComponentsInChildren<T>()
Component.GetComponentInParent<T>()
Component.GetComponentsInParent<T>()
Component.GetComponents<T>()
Object.GetHashCode()
Object.InstantiateAsync<T>(T)
Object.InstantiateAsync<T>(T, Transform)
Object.InstantiateAsync<T>(T, Vector3, Quaternion)
Object.InstantiateAsync<T>(T, Transform, Vector3, Quaternion)
Object.Instantiate<T>(T)
Object.Instantiate<T>(T, Vector3, Quaternion)
Object.Instantiate<T>(T, Vector3, Quaternion, Transform)
Object.Instantiate<T>(T, Transform)
Object.DestroyObject(Object)
Object.FindObjectsOfType<T>()
Object.FindObjectsByType<T>(FindObjectsSortMode)
Object.FindObjectsByType<T>(FindObjectsInactive, FindObjectsSortMode)
Object.FindObjectOfType<T>()
Object.FindFirstObjectByType<T>()
Object.FindAnyObjectByType<T>()
Object.FindFirstObjectByType<T>(FindObjectsInactive)
Object.FindAnyObjectByType<T>(FindObjectsInactive)
Namespace: Unity.Netcode.RuntimeTests
Assembly: Unity.Netcode.RuntimeTests.dll
Syntax
public class ListTestHelperInt : ListTestHelperBase, IListTestHelperBase<int>
Fields
Instances
Declaration
public static Dictionary<ulong, Dictionary<ulong, ListTestHelperInt>> Instances
Field Value
| Type | Description |
|---|---|
| Dictionary<ulong, Dictionary<ulong, ListTestHelperInt>> |
ListCollectionOwner
Declaration
public NetworkVariable<List<int>> ListCollectionOwner
Field Value
| Type | Description |
|---|---|
| NetworkVariable<List<int>> |
ListCollectionServer
Declaration
public NetworkVariable<List<int>> ListCollectionServer
Field Value
| Type | Description |
|---|---|
| NetworkVariable<List<int>> |
NetworkVariableChanges
Declaration
public Dictionary<ListTestHelperBase.Targets, Dictionary<ListTestHelperBase.DeltaTypes, List<int>>> NetworkVariableChanges
Field Value
| Type | Description |
|---|---|
| Dictionary<ListTestHelperBase.Targets, Dictionary<ListTestHelperBase.DeltaTypes, List<int>>> |
Methods
Add(int, Targets)
Declaration
public void Add(int value, ListTestHelperBase.Targets target)
Parameters
| Type | Name | Description |
|---|---|---|
| int | value | |
| ListTestHelperBase.Targets | target |
AddRange(List<int>, Targets)
Declaration
public void AddRange(List<int> values, ListTestHelperBase.Targets target)
Parameters
| Type | Name | Description |
|---|---|---|
| List<int> | values | |
| ListTestHelperBase.Targets | target |
Clear(Targets)
Declaration
public void Clear(ListTestHelperBase.Targets target)
Parameters
| Type | Name | Description |
|---|---|---|
| ListTestHelperBase.Targets | target |
CompareTrackedChanges(Targets)
Declaration
public override bool CompareTrackedChanges(ListTestHelperBase.Targets target)
Parameters
| Type | Name | Description |
|---|---|---|
| ListTestHelperBase.Targets | target |
Returns
| Type | Description |
|---|---|
| bool |
Overrides
FullSet(List<int>, Targets)
Declaration
public void FullSet(List<int> values, ListTestHelperBase.Targets target)
Parameters
| Type | Name | Description |
|---|---|---|
| List<int> | values | |
| ListTestHelperBase.Targets | target |
GetNetVar(Targets)
Declaration
public NetworkVariable<List<int>> GetNetVar(ListTestHelperBase.Targets target)
Parameters
| Type | Name | Description |
|---|---|---|
| ListTestHelperBase.Targets | target |
Returns
| Type | Description |
|---|---|
| NetworkVariable<List<int>> |
Insert(int, int, Targets, bool)
Declaration
public void Insert(int value, int index, ListTestHelperBase.Targets target, bool checkDirty = true)
Parameters
| Type | Name | Description |
|---|---|---|
| int | value | |
| int | index | |
| ListTestHelperBase.Targets | target | |
| bool | checkDirty |
OnNetworkDespawn()
Gets called when the NetworkObject gets despawned. This method runs both client and server side.
Declaration
public override void OnNetworkDespawn()
Overrides
OnNetworkPostSpawn()
Gets called after the NetworkObject is spawned. All NetworkBehaviours associated with the NetworkObject will have had OnNetworkSpawn() invoked.
Declaration
protected override void OnNetworkPostSpawn()
Overrides
Remarks
Will be invoked on each NetworkBehaviour associated with the NetworkObject being spawned. All associated NetworkBehaviour components will have had OnNetworkSpawn() invoked on the spawned NetworkObject.
OnOwnerListValuesChanged(List<int>, List<int>)
Declaration
public void OnOwnerListValuesChanged(List<int> previous, List<int> current)
Parameters
| Type | Name | Description |
|---|---|---|
| List<int> | previous | |
| List<int> | current |
OnServerListValuesChanged(List<int>, List<int>)
Declaration
public void OnServerListValuesChanged(List<int> previous, List<int> current)
Parameters
| Type | Name | Description |
|---|---|---|
| List<int> | previous | |
| List<int> | current |
OnSetOwnerValues()
Declaration
public List<int> OnSetOwnerValues()
Returns
| Type | Description |
|---|---|
| List<int> |
OnSetServerValues()
Declaration
public List<int> OnSetServerValues()
Returns
| Type | Description |
|---|---|
| List<int> |
Remove(int, Targets)
Declaration
public void Remove(int value, ListTestHelperBase.Targets target)
Parameters
| Type | Name | Description |
|---|---|---|
| int | value | |
| ListTestHelperBase.Targets | target |
ResetState()
Declaration
public static void ResetState()
ResetTrackedChanges()
Declaration
public void ResetTrackedChanges()
TrackChanges(Targets, List<int>, List<int>)
Declaration
public void TrackChanges(ListTestHelperBase.Targets target, List<int> previous, List<int> current)
Parameters
| Type | Name | Description |
|---|---|---|
| ListTestHelperBase.Targets | target | |
| List<int> | previous | |
| List<int> | current |
UpdateValue(int, Targets, bool)
Declaration
public void UpdateValue(int value, ListTestHelperBase.Targets target, bool checkDirty = true)
Parameters
| Type | Name | Description |
|---|---|---|
| int | value | |
| ListTestHelperBase.Targets | target | |
| bool | checkDirty |
ValidateInstances()
Declaration
public bool ValidateInstances()
Returns
| Type | Description |
|---|---|
| bool |