@shagos/rovents-transformer
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

Rovents Transformer

Required by Rovents to use Instanced events.

Installation

npm i @shagos/rovents-transformer

tsconfig.json

{
    ...
    compilerOptions: {
        ...
        plugins: [{"transform": "rovents-transformer"}]
    }
}

Input

@EventHandler.Instanced()
class SomeInstancedClass {}

Output

@EventHandler.Instanced()
class SomeInstancedClass {
  constructor() {
    EventHandler.newInstance("SomeInstancedClass", this);
  }

  destroy() {
    EventHandler.instanceDestroyed("SomeInstancedClass", this);
  }
}

Readme

Keywords

none

Package Sidebar

Install

npm i @shagos/rovents-transformer

Weekly Downloads

0

Version

1.0.1

License

ISC

Unpacked Size

71.4 kB

Total Files

16

Last publish

Collaborators

  • wocketwun