Class EffectHandlers

Namespace
SurvivorsMaker.Core
Assembly
SurvivorsMaker.Core.dll

Custom effect handlers by id.

public sealed class EffectHandlers
Inheritance
EffectHandlers
Inherited Members

Constructors

EffectHandlers()

public EffectHandlers()

Methods

Register(string, IEffectHandler)

Registers a custom effect handler under a nonempty id and returns this registry.

public EffectHandlers Register(string id, IEffectHandler handler)

Parameters

id string
handler IEffectHandler

Returns

EffectHandlers

TryGet(string, out IEffectHandler)

Looks up a custom effect handler without applying it.

public bool TryGet(string id, out IEffectHandler handler)

Parameters

id string
handler IEffectHandler

Returns

bool