Nacho Portmanteau Meltdown

    haxball-room
    TypeScript icon, indicating that this package has built-in type declarations

    1.0.1 • Public • Published

    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();
    };

    Keywords

    Install

    npm i haxball-room

    DownloadsWeekly Downloads

    6

    Version

    1.0.1

    License

    ISC

    Unpacked Size

    9.08 kB

    Total Files

    9

    Last publish

    Collaborators

    • tyde81