Show / Hide Table of Contents

Interface IDataPartition<T>

This interface provides a minimalistic list interface and acts as a unified base for both the partitioned data and each individual data partition.

Namespace: Eco.Gameplay.Utils
Assembly: Eco.Gameplay.dll
Syntax
public interface IDataPartition<T>
Type Parameters
Name Description
T
Remarks

Used exclusively by PartitionedData<TPartition, TEntry>. See IStoredDataPartition<T> when looking to implement a data partition.

Properties

NumEntries

Declaration
int NumEntries { get; }
Property Value
Type Description
System.Int32

Methods

AddEntry(T)

Declaration
void AddEntry(T entry)
Parameters
Type Name Description
T entry

GetEnumerable()

Declaration
IEnumerable<T> GetEnumerable()
Returns
Type Description
System.Collections.Generic.IEnumerable<T>

RemoveAll(Predicate<T>)

Removes all entries matching predicate and returns number of removed entries.

Declaration
int RemoveAll(Predicate<T> predicate)
Parameters
Type Name Description
System.Predicate<T> predicate
Returns
Type Description
System.Int32

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
☀
☾