Class BaseCollectionUpdateHelper
The base class to test rapidly adding items to a collection type
Inheritance
Inherited Members
Namespace: Unity.Netcode.RuntimeTests
Assembly: Unity.Netcode.RuntimeTests.dll
Syntax
public class BaseCollectionUpdateHelper : NetworkBehaviour
Fields
VerboseMode
Declaration
public static bool VerboseMode
Field Value
Type | Description |
---|---|
bool |
Properties
HelperState
Declaration
public BaseCollectionUpdateHelper.HelperStates HelperState { get; }
Property Value
Type | Description |
---|---|
Base |
Methods
AddItem()
Declaration
protected virtual void AddItem()
ChangeOwner()
Changes the ownership
Declaration
public ulong ChangeOwner()
Returns
Type | Description |
---|---|
ulong | next owner or ulong.MaxValue that means the authority did not invoke this method |
Clear()
Declaration
public void Clear()
Log(string)
Declaration
protected void Log(string msg)
Parameters
Type | Name | Description |
---|---|---|
string | msg |
OnClear()
Declaration
protected virtual void OnClear()
OnNetworkDespawn()
Gets called when the Network
Declaration
public override void OnNetworkDespawn()
Overrides
OnNetworkSpawn()
Gets called when the Network
Declaration
public override void OnNetworkSpawn()
Overrides
OnOwnershipChanged(ulong, ulong)
Invoked on all clients, override this method to be notified of any ownership changes (even if the instance was niether the previous or newly assigned current owner).
Declaration
protected override void OnOwnershipChanged(ulong previous, ulong current)
Parameters
Overrides
OnValidateAgainst(BaseCollectionUpdateHelper)
Declaration
protected virtual bool OnValidateAgainst(BaseCollectionUpdateHelper otherHelper)
Parameters
Type | Name | Description |
---|---|---|
Base |
otherHelper |
Returns
Type | Description |
---|---|
bool |
SetState(HelperStates)
Declaration
public void SetState(BaseCollectionUpdateHelper.HelperStates helperState)
Parameters
Type | Name | Description |
---|---|---|
Base |
helperState |
ValidateAgainst(BaseCollectionUpdateHelper)
Declaration
public bool ValidateAgainst(BaseCollectionUpdateHelper otherHelper)
Parameters
Type | Name | Description |
---|---|---|
Base |
otherHelper |
Returns
Type | Description |
---|---|
bool |