@comuns-rpgmaker/rpg-maker-mz-typescript
v0.1.2
Published
Type definitions for the RPG Maker MZ core script
Downloads
4
Readme
Introduction
This project provides type definitions for the whole MZ codebase allowing the programmer to create plugins for rpg maker MZ using Typescript.
This is a fork of Nio Kasgami's repository, but adapted to be used as an NPM dependency. All credit for the type definitions goes to Nio Kasgami and their contributors. If you'd like to support the project, please head to the original repository.
Getting Started
The project can be installed via NPM, both via the default NPM registry and the Github NPM Registry:
npm install rmmz@npm:@comuns-rpgmaker/rpg-maker-mz-typescript
All types are available from the top-level module:
import { DataManager, $gameParty, Game_Character } from 'rmmz';
Configure with Rollup.js
All you need is to set external: ["rmmz"]
and output.globals.rmmz: "window"
in rollup.config.js
.
Contributing
If you're interested in providing new type definitions, please give preference to doing so on the source repository from Nio Kasgami.
We'll work to integrate any new type definitions added to their repository on our side.
If you have any suggestions specific to this fork, please open an issue following our templates and/or open a pull request.
Terms of Use
Please read the license information for this repository.