Skip to content
This repository has been archived by the owner on Apr 17, 2024. It is now read-only.

Releases: shysolocup/pangine

1.1.2

13 Sep 17:56
46954f0
Compare
Choose a tag to compare

Added primative symbols

// pangine instances return name__StorageID
console.log(`${game}`); // game__cz5rf03yy


// lobbies return their id 
console.log(`${lobby}`); // dhet


// players return their mention
console.log(`${player}`); // <@500714808912642048>

1.1.1

12 Sep 18:32
b3a4a7c
Compare
Choose a tag to compare

Updated stews badge

1.1.0

12 Sep 18:28
14b234f
Compare
Choose a tag to compare

Updated class builder to allow for more modding with the new PangineClass.Class()

var { game } = wc.pangine.Instances;


new game.Lobby.Class("Leaderboard", class {
    constructor(func) {
        let lobby = this.parent;

        if (!func) func = function(a, b) {
            return b.score - a.score;
        }

        return lobby.players.sort(func);
    }
});


let lobby = new game.Lobby(ctx, {
    starterPlayerValues: {
        score: 0
    }
});


console.log(new lobby.Leaderboard()); // returns a greatest to least leaderboard of all the players

1.0.9

12 Sep 03:57
5cfc8de
Compare
Choose a tag to compare

Fixed a bug with timeouts

1.0.8

11 Sep 18:08
85abf6d
Compare
Choose a tag to compare

updated WillClient and Stews versions on README file

1.0.7

11 Sep 18:04
5c08363
Compare
Choose a tag to compare
  • added timeout stuff
  • added reason parameter to lobby.close and inst.close

1.0.6

11 Sep 15:16
f0f9037
Compare
Choose a tag to compare

Fixed docs and readme inst issue

1.0.5

11 Sep 14:49
eb526dc
Compare
Choose a tag to compare

added players to lobby settings

let lobby = new inst.Lobby(ctx, {
    players: [
        user1,
        userb
    ]
});

1.0.4

10 Sep 02:27
5de74d3
Compare
Choose a tag to compare

Added Inst.homeIds and Inst.findHome()

1.0.3

09 Sep 18:54
d049f9c
Compare
Choose a tag to compare

Fixed close, lock, and unlock lobby events