Skip to content

n15g/coh-content-db

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

coh-content-db

City of Heroes Content Database

Installation

npm install coh-content-db

Usage

Initialize the database, then load a server-group data pack, such as coh-content-db-homecoming:

import {CohContentDb} from "coh-content-db";
import {Homecoming} from "coh-content-db-homecoming";

const contentDb = new CohContentDb();
contentDb.load(new Homecoming());

Once loaded, you can start retrieving loaded data using the keys associated with the various content.

List Loaded Server Groups:

contentDb.getServerGroups();

Get a Server Group by key:

contentDb.getServerGroup("serverGroupKey");

Build

npm run build

Deploy

npm package