Class DeltaControllerHashSet<T>
Set of controllers supporting delta updates.
It need to register all consumers (clients) who work with set (i.e. when Player login/logout) and then regular callSyncDeltas() to sync updates and initial states for new consumers.
Inheritance
System.Object
DeltaControllerHashSet<T>
Assembly: Eco.Gameplay.dll
Syntax
public class DeltaControllerHashSet<T> : DeltaControllerHashSetBase, IController, IViewController, IHasUniversalID where T : IController
Type Parameters
Constructors
DeltaControllerHashSet()
Declaration
public DeltaControllerHashSet()
Methods
Add(T)
Declaration
Parameters
Type |
Name |
Description |
T |
value |
|
Returns
Type |
Description |
System.Boolean |
|
AddConsumerAndGetFullSet(INetClient)
Gets all the objects that have been added, clients must call this to setup the hash set initially.
This is the only way for a consumer to register for updates.
Declaration
public override List<object> AddConsumerAndGetFullSet(INetClient consumer)
Parameters
Returns
Type |
Description |
System.Collections.Generic.List<System.Object> |
|
Overrides
Remove(T)
Declaration
public bool Remove(T value)
Parameters
Type |
Name |
Description |
T |
value |
|
Returns
Type |
Description |
System.Boolean |
|
RemoveConsumer(INetClient)
Declaration
public void RemoveConsumer(INetClient client)
Parameters
SyncDeltas()
Syncs deltas for all consumers.
Declaration
Implements
Extension Methods