1.0.1 • Published 4 years ago

haxball-room v1.0.1

Weekly downloads
1
License
ISC
Repository
github
Last release
4 years ago

Haxball Room

Haxball Room is a way to facilitate the functions proposed by the Haxball API.


Install

NPM

npm install haxball-room --save

Yarn

yarn add haxball-room


Example

import { Room } from "haxball-room";

let room = new Room().createRoom({
  roomName: "q",
  noPlayer: true,
});

room.onPlayerJoin = (player) => {
  new Room(room).updateAdmins();
};

room.onPlayerLeave = (player) => {
  new Room(room).updateAdmins();
};