use of dedicatedserver api
This commit is contained in:
committed by
Steffen Schröder
parent
a404edf280
commit
13fe48e4ce
@ -0,0 +1,32 @@
|
||||
<?php
|
||||
/**
|
||||
* ManiaPlanet dedicated server Xml-RPC client
|
||||
*
|
||||
* @license http://www.gnu.org/licenses/lgpl.html LGPL License 3
|
||||
*/
|
||||
|
||||
namespace Maniaplanet\DedicatedServer\Structures;
|
||||
|
||||
class ScriptInfo extends AbstractStructure
|
||||
{
|
||||
|
||||
public $name;
|
||||
public $compatibleMapTypes;
|
||||
public $description;
|
||||
public $version;
|
||||
public $paramDescs = array();
|
||||
|
||||
static public function fromArray($array)
|
||||
{
|
||||
$object = parent::fromArray($array);
|
||||
|
||||
if($object->paramDescs)
|
||||
{
|
||||
$object->paramDescs = ScriptSettings::fromArrayOfArray($object->paramDescs);
|
||||
}
|
||||
return $object;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
?>
|
Reference in New Issue
Block a user