Show / Hide Table of Contents

Class SyncHashSet<T>

Inheritance
object
InternalBaseClass
SyncableField
SyncHashSet<T>
Implements
IEnumerable<T>
IEnumerable
Inherited Members
SyncableField.IsClient
SyncableField.IsServer
SyncableField.ParentEntity
SyncableField.ParentEntityLogic
SyncableField.ExecuteRPC(in RemoteCall)
SyncableField.ExecuteRPC<T>(in RemoteCall<T>, T)
SyncableField.ExecuteRPC<T>(in RemoteCallSpan<T>, ReadOnlySpan<T>)
SyncableField.ExecuteRPC<T>(in RemoteCallSerializable<T>, T)
Namespace: LiteEntitySystem.Extensions
Assembly: LiteEntitySystem.dll
Syntax
public class SyncHashSet<T> : SyncableField, IEnumerable<T>, IEnumerable where T : unmanaged
Type Parameters
Name Description
T

Properties

Count

Declaration
public int Count { get; }
Property Value
Type Description
int

IsRollbackSupported

Is supported rollback by this syncable field

Declaration
public override bool IsRollbackSupported { get; }
Property Value
Type Description
bool
Overrides
SyncableField.IsRollbackSupported

Methods

Add(T)

Declaration
public void Add(T x)
Parameters
Type Name Description
T x

AfterReadRPC()

Declaration
protected override void AfterReadRPC()
Overrides
SyncableField.AfterReadRPC()

BeforeReadRPC()

Declaration
protected override void BeforeReadRPC()
Overrides
SyncableField.BeforeReadRPC()

Clear()

Declaration
public void Clear()

Contains(T)

Declaration
public bool Contains(T x)
Parameters
Type Name Description
T x
Returns
Type Description
bool

GetEnumerator()

Declaration
public HashSet<T>.Enumerator GetEnumerator()
Returns
Type Description
HashSet<T>.Enumerator

OnRollback()

Declaration
protected override void OnRollback()
Overrides
SyncableField.OnRollback()

OnSyncRequested()

Declaration
protected override void OnSyncRequested()
Overrides
InternalBaseClass.OnSyncRequested()

RegisterRPC(ref SyncableRPCRegistrator)

Declaration
protected override void RegisterRPC(ref SyncableRPCRegistrator r)
Parameters
Type Name Description
SyncableRPCRegistrator r
Overrides
SyncableField.RegisterRPC(ref SyncableRPCRegistrator)

Remove(T)

Declaration
public bool Remove(T key)
Parameters
Type Name Description
T key
Returns
Type Description
bool

ToArray()

To array

Declaration
public T[] ToArray()
Returns
Type Description
T[]

hashset copied array. Returns null if HashSet is empty

Implements

IEnumerable<T>
IEnumerable
In this article
Back to top Generated by DocFX