Skip to content

EffectList ​

Represents a collection of effects, allowing for easy access and manipulation.

Kind: Class

Namespace: CrowdControl.Common

Inheritance: ICollection<KeyValuePair<string, Effect>> → IDictionary<string, Effect> → IEnumerable → IEnumerable\<Effect\> → IEnumerable<KeyValuePair<string, Effect>>

Public Constructors

EffectList()

Creates a new instance of the CrowdControl.Common.EffectList class.

EffectList(IEnumerable effects)

Creates a new instance of the CrowdControl.Common.EffectList class.

Public Member Functions

IEnumerator

GetEnumerator()

bool

ContainsKey(string key)

bool

Contains(KeyValuePair effect)

Determines whether the collection contains a specific effect.

bool

Contains(Effect effect)

Determines whether the collection contains a specific effect.

void

Add(string key, Effect value)

Adds an effect to the collection.

void

Add(KeyValuePair effect)

Adds an effect to the collection.

void

Add(Effect effect)

Adds an effect to the collection.

bool

Remove(string key)

Removes an effect from the collection.

bool

Remove(KeyValuePair effect)

Removes an effect from the collection.

bool

Remove(Effect effect)

Removes an effect from the collection.

void

Clear()

void

CopyTo(KeyValuePair[] array, int arrayIndex)

bool

TryGetValue(string key, Effect out value)

bool

TryGetValue(EffectRequest key, Effect out value)

IEnumerable

GetCategory(string groupID)

Gets the effect associated with the specified category ID.

IEnumerable

GetGroup(string groupID)

Gets the effect associated with the specified group ID.

void

AddRange(IEnumerable values)

Adds a range of effects to the collection.

IEnumerable

Where(Func predicate)

IEnumerable

Select<TResult>(Func selector)

IEnumerable

SelectMany<TResult>(Func> selector)

IEnumerable

SelectMany<TResult>(Func> selector)

Effect

First()

Effect

First(Func predicate)

Effect

FirstOrDefault()

Effect

FirstOrDefault(Effect defaultValue)

Effect

FirstOrDefault(Func predicate)

Effect

FirstOrDefault(Func predicate, Effect defaultValue)

bool

Any()

bool

Any(Func predicate)

Properties

int

Count

[get, ]

bool

IsReadOnly

[get, ]

Effect

Item

[get, set]

Gets or sets the effect associated with the specified request.

Effect

Item

[get, ]

Gets or sets the effect associated with the specified request.

IEnumerable

Keys

[get, ]

IEnumerable

Values

[get, ]