Table of Contents

Class TMPEffectDatabase<T>

Base class for all effect databases.

public abstract class TMPEffectDatabase<T> : ScriptableObject, ITMPEffectDatabase<T>, ITMPEffectDatabase, INotifyObjectChanged

Type Parameters

T

The type of effect stored in this database.

Inheritance
TMPEffectDatabase<T>
Implements
Derived

Methods

ContainsEffect(string)

Check whether this database contains an effect associated with the given name.

public abstract bool ContainsEffect(string name)

Parameters

name string

The identifier of the effect.

Returns

bool

true if this database contains an effect associated with the given name; false otherwise.

GetEffect(string)

Get the effect associated with the given name.

public abstract T GetEffect(string name)

Parameters

name string

The identifier of the effect.

Returns

T

The effect associated with the given name.

Exceptions

KeyNotFoundException

OnDestroy()

protected virtual void OnDestroy()

OnValidate()

protected virtual void OnValidate()

RaiseDatabaseChanged()

protected void RaiseDatabaseChanged()

Events

ObjectChanged

Raised when the object is changed.

public event ObjectChangedEventHandler ObjectChanged

Event Type

ObjectChangedEventHandler