0.1.0 • Published 1 year ago

@newhorizons/core v0.1.0

Weekly downloads
-
License
GNU General Publi...
Repository
github
Last release
1 year ago

@newhorizons/core

Release builds Quality checks Latest Release License

Description

@newhorizons/core contains a selection of core utilities that I keep reusing across my web projects. The package aims to support single-page applications or other forms of browser-side code.

Contributing

Blueprints

Almost all of New Horizon's game data is stored in the form of Blueprints. A Blueprint is a set of attributes that matches a specific schema. Blueprints are written in TypeScript. Blueprints are stored in Blueprint Collections, which have a unique name identifying that collection (e.g. character/skill). Blueprints also have a unique name that extends the name of their collection (e.g. character/skill/electronics).

Adding new Blueprints to an existing Blueprint Collection

It's quite easy to add a new Blueprint to an existing collection. Simply find and open the collection you want to edit in lib/blueprints and add a new element to the array. Afterwards, you should run pnpm check to check for any errors, including TypeScript errors. If all checks pass without errors, you can commit your change to the repository.

0.1.0

1 year ago