TrackManiaControl/application/core/Callbacks/Callbacks.php

70 lines
2.3 KiB
PHP
Raw Normal View History

2014-04-24 17:41:05 +02:00
<?php
2014-05-13 18:26:38 +02:00
2014-04-24 17:41:05 +02:00
namespace ManiaControl\Callbacks;
2014-05-02 17:50:30 +02:00
2014-04-24 23:11:09 +02:00
//TODO method class for all the libxmlrpc get Methods, to fetch the callback asnyc
2014-05-13 18:26:38 +02:00
2014-04-24 17:41:05 +02:00
/**
* Callbacks Interface
*
2014-05-02 17:50:30 +02:00
* @author ManiaControl Team <mail@maniacontrol.com>
* @copyright 2014 ManiaControl Team
2014-04-24 17:41:05 +02:00
* @license http://www.gnu.org/licenses/ GNU General Public License, Version 3
*/
interface Callbacks {
2014-05-13 18:26:38 +02:00
/** Script Callback: CallbackName, CallbackData */
2014-04-24 21:55:47 +02:00
const SCRIPTCALLBACK = 'Callbacks.ScriptCallback';
2014-05-13 18:26:38 +02:00
/*
* Common Callbacks
*/
/** BeginMatch Callback: MatchNumber */
const BEGINMATCH = 'Callbacks.BeginMatch';
/** LoadingMap Callback: MapNumber */
const LOADINGMAP = 'Callbacks.LoadingMap';
/** BeginMap Callback: Map */
const BEGINMAP = 'Callbacks.BeginMap';
/** BeginSubMatch Callback: SubmatchNumber */
const BEGINSUBMATCH = 'Callbacks.BeginSubmatch';
/** BeginRound Callback: RoundNumber */
const BEGINROUND = 'Callbacks.BeginRound';
/** BeginTurn Callback: TurnNumber */
const BEGINTURN = 'Callbacks.BeginTurn';
/** EndTurn Callback: TurnNumber */
const ENDTURN = 'Callbacks.EndTurn';
/** EndRound Callback: RoundNumber */
const ENDROUND = 'Callbacks.EndRound';
/** EndSubmatch Callback: SubmatchNumber */
const ENDSUBMATCH = 'Callbacks.EndSubmatch';
/** EndMap Callback: Map */
const ENDMAP = 'Callbacks.EndMap';
/** EndMatch Callback: MatchNumber */
const ENDMATCH = 'Callbacks.EndMatch';
/** BeginWarmup Callback */
const BEGINWARMUP = 'Callbacks.BeginWarmUp';
/** EndWarmup Callback */
const ENDWARMUP = 'Callbacks.EndWarmUp';
/** PlayerRanking Callback, returned after LibXmlRpc_PlayerRanking
2014-04-24 23:11:09 +02:00
* try to avoid to use this, just use the Get function of the RankingsManager instead
* param1 Player $player
* param2 int $rank
* param3 int $currentPoints
* param4 int AFKStatus */
const PLAYERRANKING = 'Callbacks.PlayerRanking';
2014-05-13 18:26:38 +02:00
/*
* ShootMania Callbacks
*/
/** RankingsUpdated Callback: SortedRankings */
2014-04-24 23:11:09 +02:00
const RANKINGSUPDATED = 'Callbacks.RankingsUpdated';
2014-05-13 18:26:38 +02:00
/** Scores Callback (returned after LibXmlRpc_PlayerRanking): Scores */
2014-04-24 23:11:09 +02:00
const SCORES = 'Callbacks.Scores';
2014-05-13 18:26:38 +02:00
2014-04-24 23:11:09 +02:00
/** Returns the AFKStatus of an Player, returned after param1 Scores */ //returned after TODO
const AFKSTATUS = 'Callbacks.AfkStatus';
/** Returns if the GameMode has Warmup activated, returned after param1 Scores */ //returned after TODO
2014-04-24 23:11:09 +02:00
const WARMUPSTATUS = 'Callbacks.WarmupStatus';
2014-05-13 18:26:38 +02:00
}