Class Storage
Contain every important data about the server
- ManiaLib\Utils\Singleton
- ManiaLive\Data\Storage implements ManiaLive\DedicatedApi\Callback\Listener, ManiaLive\Application\Listener
protected
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
#
onPlayerConnect( string $login, boolean $isSpectator )
Method called when a Player join the server |
public
|
|
public
|
#
onPlayerChat( integer $playerUid, string $login, string $text, boolean $isRegistredCmd )
Method called when a Player chat on the server |
public
|
#
onPlayerManialinkPageAnswer( integer $playerUid, string $login, integer $answer, array $entries )
Method called when a Answer to a Manialink Page difference with previous TM: this is not called if the player doesn't answer, and thus '0' is also a valid answer. |
public
|
|
public
|
|
public
|
|
public
|
|
public
|
#
onEndMatch( SPlayerRanking[] $rankings, integer|SMapInfo $winnerTeamOrMap )
Method called when the Race Ended struct of SPlayerRanking is a part of the structure of DedicatedApi\Structures\Player object struct SPlayerRanking { string Login; string NickName; int PlayerId; int Rank; [for legacy TrackMania modes also: int BestTime; int[] BestCheckpoints; int Score; int NbrLapsFinished; double LadderScore; ] } |
public
|
#
onBeginMap( SMapInfo $map, boolean $warmUp, boolean $matchContinuation )
Method called when a map begin |
public
|
|
public
|
|
public
|
|
public
|
#
onStatusChanged( integer $statusCode, string $statusName )
Method called when the server status change |
public
|
|
public
|
#
onPlayerCheckpoint( integer $playerUid, string $login, integer $timeOrScore, integer $curLap, integer $checkpointIndex )
Method called when a player cross a checkPoint |
public
|
#
onPlayerFinish( integer $playerUid, string $login, integer $timeOrScore )
Method called when a player finish a round |
public
|
#
onPlayerIncoherence( integer $playerUid, string $login )
Method called when there is an incoherence with a player data |
public
|
#
onBillUpdated( integer $billId, integer $state, string $stateName, integer $transactionId )
Method called when a bill is updated |
public
|
#
onTunnelDataReceived( integer $playerUid, string $login, base64 $data )
Method called server receive data |
public
|
#
onMapListModified( integer $curMapIndex, integer $nextMapIndex, boolean $isListModified )
Method called when the map list is modified |
public
|
|
public
|
|
public
|
#
onVoteUpdated( string $stateName, string $login, string $cmdName, string $cmdParam )
Method called when a vote change of State |
public
|
|
public
ManiaLive\DedicatedApi\Structures\Player
|
|
protected
|
|
protected
|
__clone(),
getInstance()
|
public
|
$players | array() |
#
Contains Player object. It represents the player connected to the server |
public
|
$spectators | array() |
#
Contains Player object. It represents the spectators connected to the server |
public
|
$maps |
|
#
Contains Map objects. It represents the current maps available on the server |
public
|
$currentMap |
|
#
Represents the current Map object |
public
|
$nextMap |
|
#
Represents the next Map object |
public
|
$server |
|
#
Represents the Current Server Options |
public
|
$gameInfos |
|
#
Represents the Current Game Infos |
public
|
$serverStatus |
|
#
Represents the current Server Status |
public
string
|
$serverLogin |
|
#
Contains the server login |
public
|
$currentVote |
|
#
Contains the current vote |
$instances
|