@swintt/game-events
v1.0.7
Published
Front-end library that adds SWINTT specific game events.
Downloads
21
Readme
Swintt Game Events
A front-end library for adding extra events to games specific for swintt integrations.
Installation
You can install @swintt/game-events
using npm:
npm install @swintt/game-events --save
Usage
Import the relevant game event from the library, and call the event method with the expected parameters.
The following example will show the notifyMessage
event usage.
import { notifyMessage, NotifyMessageEvent } from "@swintt/game-events"
notifyMessage({
event: NotifyMessageEvent.INSUFFICIENT_FUNDS,
message: "Test message",
}, "*")