0.0.8 • Published 2 years ago

orileaderboard v0.0.8

Weekly downloads
2
License
MIT
Repository
github
Last release
2 years ago

Description

This module is for leading games or user ranking .

Install

  • origamicore Doc

Configuration

{
    'context': '{db context name}',
    //redis data
    'port':6379 ,//6379 is default
    'host':'localhost',//localhost is default
    'db':0,//0 is default
}

Public Service

    /leaderboard/getTopTen?gameId=
    /leaderboard/getBoard?gameId=

Internal Services

    //Set Score (replace)
    global.leaderboard.setScore(gameId,score,userid) 
    //Add to previous score (if not exist , create score)
    global.leaderboard.addScore(gameId,score,userid) 
    //Get Score
    global.leaderboard.getScore(gameId,userid) 
    //you can set and update user data on leaderboard
    global.leaderboard.updateUser(id,data) 
0.0.8

2 years ago

0.0.7

4 years ago

0.0.6

4 years ago

0.0.5

4 years ago

0.0.3

4 years ago

0.0.2

4 years ago

0.0.4

4 years ago

0.0.1

4 years ago