updated dedicated-server-api
This commit is contained in:
0
application/core/Libs/Maniaplanet/DedicatedServer/Structures/AbstractStructure.php
Normal file → Executable file
0
application/core/Libs/Maniaplanet/DedicatedServer/Structures/AbstractStructure.php
Normal file → Executable file
10
application/core/Libs/Maniaplanet/DedicatedServer/Structures/Bill.php
Normal file → Executable file
10
application/core/Libs/Maniaplanet/DedicatedServer/Structures/Bill.php
Normal file → Executable file
@ -10,11 +10,11 @@ namespace Maniaplanet\DedicatedServer\Structures;
|
||||
class Bill extends AbstractStructure
|
||||
{
|
||||
const STATE_CREATING_TRANSACTION = 1;
|
||||
const STATE_ISSUED = 2;
|
||||
const STATE_VALIDATING_PAYMENT = 3;
|
||||
const STATE_PAYED = 4;
|
||||
const STATE_REFUSED = 5;
|
||||
const STATE_ERROR = 6;
|
||||
const STATE_ISSUED = 2;
|
||||
const STATE_VALIDATING_PAYMENT = 3;
|
||||
const STATE_PAYED = 4;
|
||||
const STATE_REFUSED = 5;
|
||||
const STATE_ERROR = 6;
|
||||
|
||||
/** @var int */
|
||||
public $state;
|
||||
|
0
application/core/Libs/Maniaplanet/DedicatedServer/Structures/Command.php
Normal file → Executable file
0
application/core/Libs/Maniaplanet/DedicatedServer/Structures/Command.php
Normal file → Executable file
10
application/core/Libs/Maniaplanet/DedicatedServer/Structures/FileDesc.php
Normal file → Executable file
10
application/core/Libs/Maniaplanet/DedicatedServer/Structures/FileDesc.php
Normal file → Executable file
@ -13,4 +13,14 @@ class FileDesc extends AbstractStructure
|
||||
public $fileName;
|
||||
/** @var string */
|
||||
public $checksum;
|
||||
|
||||
/**
|
||||
* @return FileDesc
|
||||
*/
|
||||
public static function fromArray($array)
|
||||
{
|
||||
$object = parent::fromArray($array);
|
||||
$object->fileName = str_replace("\xEF\xBB\xBF", '', $object->fileName);
|
||||
return $object;
|
||||
}
|
||||
}
|
||||
|
0
application/core/Libs/Maniaplanet/DedicatedServer/Structures/ForcedSkin.php
Normal file → Executable file
0
application/core/Libs/Maniaplanet/DedicatedServer/Structures/ForcedSkin.php
Normal file → Executable file
12
application/core/Libs/Maniaplanet/DedicatedServer/Structures/GameInfos.php
Normal file → Executable file
12
application/core/Libs/Maniaplanet/DedicatedServer/Structures/GameInfos.php
Normal file → Executable file
@ -12,13 +12,13 @@ class GameInfos extends AbstractStructure
|
||||
/**
|
||||
* Game Modes
|
||||
*/
|
||||
const GAMEMODE_SCRIPT = 0;
|
||||
const GAMEMODE_ROUNDS = 1;
|
||||
const GAMEMODE_SCRIPT = 0;
|
||||
const GAMEMODE_ROUNDS = 1;
|
||||
const GAMEMODE_TIMEATTACK = 2;
|
||||
const GAMEMODE_TEAM = 3;
|
||||
const GAMEMODE_LAPS = 4;
|
||||
const GAMEMODE_CUP = 5;
|
||||
const GAMEMODE_STUNTS = 6;
|
||||
const GAMEMODE_TEAM = 3;
|
||||
const GAMEMODE_LAPS = 4;
|
||||
const GAMEMODE_CUP = 5;
|
||||
const GAMEMODE_STUNTS = 6;
|
||||
|
||||
/** @var int */
|
||||
public $gameMode;
|
||||
|
0
application/core/Libs/Maniaplanet/DedicatedServer/Structures/LadderLimits.php
Normal file → Executable file
0
application/core/Libs/Maniaplanet/DedicatedServer/Structures/LadderLimits.php
Normal file → Executable file
0
application/core/Libs/Maniaplanet/DedicatedServer/Structures/LadderStats.php
Normal file → Executable file
0
application/core/Libs/Maniaplanet/DedicatedServer/Structures/LadderStats.php
Normal file → Executable file
0
application/core/Libs/Maniaplanet/DedicatedServer/Structures/LobbyInfo.php
Normal file → Executable file
0
application/core/Libs/Maniaplanet/DedicatedServer/Structures/LobbyInfo.php
Normal file → Executable file
10
application/core/Libs/Maniaplanet/DedicatedServer/Structures/Map.php
Normal file → Executable file
10
application/core/Libs/Maniaplanet/DedicatedServer/Structures/Map.php
Normal file → Executable file
@ -41,4 +41,14 @@ class Map extends AbstractStructure
|
||||
public $mapType;
|
||||
/** var string */
|
||||
public $mapStyle;
|
||||
|
||||
/**
|
||||
* @return Map
|
||||
*/
|
||||
public static function fromArray($array)
|
||||
{
|
||||
$object = parent::fromArray($array);
|
||||
$object->fileName = str_replace("\xEF\xBB\xBF", '', $object->fileName);
|
||||
return $object;
|
||||
}
|
||||
}
|
||||
|
0
application/core/Libs/Maniaplanet/DedicatedServer/Structures/Mod.php
Normal file → Executable file
0
application/core/Libs/Maniaplanet/DedicatedServer/Structures/Mod.php
Normal file → Executable file
10
application/core/Libs/Maniaplanet/DedicatedServer/Structures/Music.php
Normal file → Executable file
10
application/core/Libs/Maniaplanet/DedicatedServer/Structures/Music.php
Normal file → Executable file
@ -15,4 +15,14 @@ class Music extends AbstractStructure
|
||||
public $url;
|
||||
/** var string */
|
||||
public $file;
|
||||
|
||||
/**
|
||||
* @return Music
|
||||
*/
|
||||
public static function fromArray($array)
|
||||
{
|
||||
$object = parent::fromArray($array);
|
||||
$object->file = str_replace("\xEF\xBB\xBF", '', $object->file);
|
||||
return $object;
|
||||
}
|
||||
}
|
||||
|
0
application/core/Libs/Maniaplanet/DedicatedServer/Structures/NetworkStats.php
Normal file → Executable file
0
application/core/Libs/Maniaplanet/DedicatedServer/Structures/NetworkStats.php
Normal file → Executable file
0
application/core/Libs/Maniaplanet/DedicatedServer/Structures/Player.php
Normal file → Executable file
0
application/core/Libs/Maniaplanet/DedicatedServer/Structures/Player.php
Normal file → Executable file
0
application/core/Libs/Maniaplanet/DedicatedServer/Structures/PlayerAnswer.php
Normal file → Executable file
0
application/core/Libs/Maniaplanet/DedicatedServer/Structures/PlayerAnswer.php
Normal file → Executable file
0
application/core/Libs/Maniaplanet/DedicatedServer/Structures/PlayerBan.php
Normal file → Executable file
0
application/core/Libs/Maniaplanet/DedicatedServer/Structures/PlayerBan.php
Normal file → Executable file
0
application/core/Libs/Maniaplanet/DedicatedServer/Structures/PlayerDetailedInfo.php
Normal file → Executable file
0
application/core/Libs/Maniaplanet/DedicatedServer/Structures/PlayerDetailedInfo.php
Normal file → Executable file
0
application/core/Libs/Maniaplanet/DedicatedServer/Structures/PlayerInfo.php
Normal file → Executable file
0
application/core/Libs/Maniaplanet/DedicatedServer/Structures/PlayerInfo.php
Normal file → Executable file
0
application/core/Libs/Maniaplanet/DedicatedServer/Structures/PlayerNetInfo.php
Normal file → Executable file
0
application/core/Libs/Maniaplanet/DedicatedServer/Structures/PlayerNetInfo.php
Normal file → Executable file
0
application/core/Libs/Maniaplanet/DedicatedServer/Structures/PlayerRanking.php
Normal file → Executable file
0
application/core/Libs/Maniaplanet/DedicatedServer/Structures/PlayerRanking.php
Normal file → Executable file
5
application/core/Libs/Maniaplanet/DedicatedServer/Structures/ScriptInfo.php
Normal file → Executable file
5
application/core/Libs/Maniaplanet/DedicatedServer/Structures/ScriptInfo.php
Normal file → Executable file
@ -22,7 +22,10 @@ class ScriptInfo extends AbstractStructure
|
||||
/** @var Command[] */
|
||||
public $commandDescs = array();
|
||||
|
||||
static public function fromArray($array)
|
||||
/**
|
||||
* @return ScriptInfo
|
||||
*/
|
||||
public static function fromArray($array)
|
||||
{
|
||||
$object = parent::fromArray($array);
|
||||
$object->paramDescs = ScriptSettings::fromArrayOfArray($object->paramDescs);
|
||||
|
0
application/core/Libs/Maniaplanet/DedicatedServer/Structures/ScriptSettings.php
Normal file → Executable file
0
application/core/Libs/Maniaplanet/DedicatedServer/Structures/ScriptSettings.php
Normal file → Executable file
0
application/core/Libs/Maniaplanet/DedicatedServer/Structures/ServerOptions.php
Normal file → Executable file
0
application/core/Libs/Maniaplanet/DedicatedServer/Structures/ServerOptions.php
Normal file → Executable file
5
application/core/Libs/Maniaplanet/DedicatedServer/Structures/Skin.php
Normal file → Executable file
5
application/core/Libs/Maniaplanet/DedicatedServer/Structures/Skin.php
Normal file → Executable file
@ -14,7 +14,10 @@ class Skin extends AbstractStructure
|
||||
/** @var FileDesc */
|
||||
public $packDesc;
|
||||
|
||||
static function fromArray($array)
|
||||
/**
|
||||
* @return Skin
|
||||
*/
|
||||
public static function fromArray($array)
|
||||
{
|
||||
$object = parent::fromArray($array);
|
||||
$object->packDesc = FileDesc::fromArray($object->packDesc);
|
||||
|
0
application/core/Libs/Maniaplanet/DedicatedServer/Structures/Status.php
Normal file → Executable file
0
application/core/Libs/Maniaplanet/DedicatedServer/Structures/Status.php
Normal file → Executable file
0
application/core/Libs/Maniaplanet/DedicatedServer/Structures/SystemInfos.php
Normal file → Executable file
0
application/core/Libs/Maniaplanet/DedicatedServer/Structures/SystemInfos.php
Normal file → Executable file
0
application/core/Libs/Maniaplanet/DedicatedServer/Structures/Tag.php
Normal file → Executable file
0
application/core/Libs/Maniaplanet/DedicatedServer/Structures/Tag.php
Normal file → Executable file
0
application/core/Libs/Maniaplanet/DedicatedServer/Structures/Team.php
Normal file → Executable file
0
application/core/Libs/Maniaplanet/DedicatedServer/Structures/Team.php
Normal file → Executable file
0
application/core/Libs/Maniaplanet/DedicatedServer/Structures/TokenInfos.php
Normal file → Executable file
0
application/core/Libs/Maniaplanet/DedicatedServer/Structures/TokenInfos.php
Normal file → Executable file
0
application/core/Libs/Maniaplanet/DedicatedServer/Structures/Version.php
Normal file → Executable file
0
application/core/Libs/Maniaplanet/DedicatedServer/Structures/Version.php
Normal file → Executable file
0
application/core/Libs/Maniaplanet/DedicatedServer/Structures/Vote.php
Normal file → Executable file
0
application/core/Libs/Maniaplanet/DedicatedServer/Structures/Vote.php
Normal file → Executable file
14
application/core/Libs/Maniaplanet/DedicatedServer/Structures/VoteRatio.php
Normal file → Executable file
14
application/core/Libs/Maniaplanet/DedicatedServer/Structures/VoteRatio.php
Normal file → Executable file
@ -10,13 +10,13 @@ namespace Maniaplanet\DedicatedServer\Structures;
|
||||
class VoteRatio extends AbstractStructure
|
||||
{
|
||||
const COMMAND_SCRIPT_SETTINGS = 'SetModeScriptSettingsAndCommands';
|
||||
const COMMAND_NEXT_MAP = 'NextMap';
|
||||
const COMMAND_JUMP_MAP = 'JumpToMapIdent';
|
||||
const COMMAND_SET_NEXT_MAP = 'SetNextMapIdent';
|
||||
const COMMAND_RESTART_MAP = 'RestartMap';
|
||||
const COMMAND_TEAM_BALANCE = 'AutoTeamBalance';
|
||||
const COMMAND_KICK = 'Kick';
|
||||
const COMMAND_BAN = 'Ban';
|
||||
const COMMAND_NEXT_MAP = 'NextMap';
|
||||
const COMMAND_JUMP_MAP = 'JumpToMapIdent';
|
||||
const COMMAND_SET_NEXT_MAP = 'SetNextMapIdent';
|
||||
const COMMAND_RESTART_MAP = 'RestartMap';
|
||||
const COMMAND_TEAM_BALANCE = 'AutoTeamBalance';
|
||||
const COMMAND_KICK = 'Kick';
|
||||
const COMMAND_BAN = 'Ban';
|
||||
|
||||
/** @var string '*' for default */
|
||||
public $command;
|
||||
|
0
application/core/Libs/Maniaplanet/DedicatedServer/Structures/ZoneRanking.php
Normal file → Executable file
0
application/core/Libs/Maniaplanet/DedicatedServer/Structures/ZoneRanking.php
Normal file → Executable file
Reference in New Issue
Block a user