0.0.8 • Published 3 years ago

orileaderboard v0.0.8

Weekly downloads
2
License
MIT
Repository
github
Last release
3 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

3 years ago

0.0.7

5 years ago

0.0.6

5 years ago

0.0.5

5 years ago

0.0.3

5 years ago

0.0.2

5 years ago

0.0.4

5 years ago

0.0.1

5 years ago