Class Database<T>
- Namespace
- Dec
- Assembly
- dec.dll
Contains information on a single type of Dec.
public static class Database<T> where T : Dec
Type Parameters
T
- Inheritance
-
objectDatabase<T>
Remarks
This is often used for object types that should function without being explicitly referenced. As an example, a roguelike might have ArtifactWeaponDec, then - when spawning an artifact weapon - simply choose one out of the full database.
Properties
Count
The number of decs of this type that exist.
public static int Count { get; }
Property Value
List
All decs of this type.
public static T[] List { get; }
Property Value
- T[]
Methods
Get(string)
Returns a dec of this type by name.
public static T Get(string name)
Parameters
name
string
Returns
- T
Remarks
Returns null if no such dec exists.