\ManiaControl\ServerRankingManager

Class managing Rankings

Summary

Methods
Properties
Constants
getUsageInformation()
__construct()
onInit()
handleCallbacks()
handleBeginMap()
updateRankings()
getRankings()
getLeaders()
getPlayerRanking()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
$rankings
$maniaControl
N/A

Properties

$rankings

$rankings : 

Type

Methods

getUsageInformation()

getUsageInformation() 

Gets Information about the Class, and a List of the Public Method

__construct()

__construct(\ManiaControl\ManiaControl  $maniaControl) 

Construct a new ranking manager instance

Parameters

\ManiaControl\ManiaControl $maniaControl

onInit()

onInit() 

Initialize the Rankings (never call this Method)

handleCallbacks()

handleCallbacks(array  $callback) 

Handle stats on callbacks (never call this Method)

Parameters

array $callback

handleBeginMap()

handleBeginMap(\ManiaControl\Maps\Map  $map) 

Clear the rankings on the Begin of a Map

Parameters

\ManiaControl\Maps\Map $map

updateRankings()

updateRankings(string  $data) 

Update Game Rankings (never call this Method)

Parameters

string $data

getRankings()

getRankings() : array

Get Rankings

Returns

array

getLeaders()

getLeaders() : array|null

Get the Current Leading Players (as Login Array)

Returns

array|null

getPlayerRanking()

getPlayerRanking()