Show / Hide Table of Contents

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
DeltaControllerHashSetBase
DeltaControllerHashSet<T>
Implements
IController
IViewController
IHasUniversalID
Inherited Members
DeltaControllerHashSetBase.ControllerID
Namespace: Eco.Gameplay.Utils
Assembly: Eco.Gameplay.dll
Syntax
public class DeltaControllerHashSet<T> : DeltaControllerHashSetBase, IController, IViewController, IHasUniversalID where T : IController
Type Parameters
Name Description
T

Constructors

DeltaControllerHashSet()

Declaration
public DeltaControllerHashSet()

Methods

Add(T)

Adds new item.

Declaration
public bool Add(T value)
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
Type Name Description
INetClient consumer
Returns
Type Description
System.Collections.Generic.List<System.Object>
Overrides
DeltaControllerHashSetBase.AddConsumerAndGetFullSet(INetClient)

Remove(T)

Removes item.

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
Type Name Description
INetClient client

SyncDeltas()

Syncs deltas for all consumers.

Declaration
public void SyncDeltas()

Implements

IController
IViewController
IHasUniversalID

Extension Methods

TagUtils.TagNames(Object, Boolean)
TagUtils.TagDisplayNames(Object, Boolean)
ClientSetViewExtensions.SetClassOfProperty(Object, Player, String, String, Int32)
TypeTooltipExtensions.UILinkGeneric(Object)
☀
☾
In This Article
Back to top
Copyright (c) Strange Loop Games 2021
☀
☾