C# Class DRObjects.Database.DatabaseHandling

Afficher le fichier Open project: Haedrian/Divine-Right

Méthodes publiques

Méthode Description
EmptyMemory ( ) : void

Dumps the stored tables

GetDatabase ( Archetype archetype ) : List>.Dictionary
GetItemIdFromTag ( Archetype archetype, string tag ) : int

Gets the id of an item randomly belonging to a particular archetype and having the right tag If unable to find anything, will throw an exception

GetItemProperties ( Archetype archetype, int itemID ) : List
ReadTableIntoMemory ( Archetype archetype ) : void

Read an entire table into memory

Method Details

EmptyMemory() public static méthode

Dumps the stored tables
public static EmptyMemory ( ) : void
Résultat void

GetDatabase() public static méthode

public static GetDatabase ( Archetype archetype ) : List>.Dictionary
archetype Archetype
Résultat List>.Dictionary

GetItemIdFromTag() public static méthode

Gets the id of an item randomly belonging to a particular archetype and having the right tag If unable to find anything, will throw an exception
public static GetItemIdFromTag ( Archetype archetype, string tag ) : int
archetype Archetype The archetype to search in
tag string The tag to look for
Résultat int

GetItemProperties() public static méthode

public static GetItemProperties ( Archetype archetype, int itemID ) : List
archetype Archetype
itemID int
Résultat List

ReadTableIntoMemory() public static méthode

Read an entire table into memory
public static ReadTableIntoMemory ( Archetype archetype ) : void
archetype Archetype
Résultat void