C# Class DRObjects.Database.DatabaseHandling

Mostra file Open project: Haedrian/Divine-Right

Public Methods

Method 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 method

Dumps the stored tables
public static EmptyMemory ( ) : void
return void

GetDatabase() public static method

public static GetDatabase ( Archetype archetype ) : List>.Dictionary
archetype Archetype
return List>.Dictionary

GetItemIdFromTag() public static method

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
return int

GetItemProperties() public static method

public static GetItemProperties ( Archetype archetype, int itemID ) : List
archetype Archetype
itemID int
return List

ReadTableIntoMemory() public static method

Read an entire table into memory
public static ReadTableIntoMemory ( Archetype archetype ) : void
archetype Archetype
return void