improved map object
This commit is contained in:
parent
c7e4464f30
commit
2003713ec2
@ -22,13 +22,13 @@ class map {
|
||||
public $nbchecks = 0;
|
||||
public $score = 0;
|
||||
public $starttime = 0;
|
||||
public $maptype; //format?
|
||||
public $mapstyle; //format?
|
||||
public $titleuid; //format?
|
||||
public $gbx; //format?
|
||||
public $maptype = '';
|
||||
public $mapstyle = '';
|
||||
public $titleuid = 0;
|
||||
// public $gbx; //needed? would be the whole gbx object
|
||||
public $mx; //format?
|
||||
public $authorNick; //format?
|
||||
public $authorZone; //format?
|
||||
public $authorNick = '';
|
||||
public $authorZone = '';
|
||||
public $authorEInfo; //format?
|
||||
|
||||
//Todo: check RPC infos
|
||||
@ -59,21 +59,6 @@ class map {
|
||||
$this->name = 'undefined';
|
||||
}
|
||||
|
||||
/*
|
||||
* aseco trash:
|
||||
* // obtain map's GBX data, MX info & records
|
||||
|
||||
$map_item->mx = findMXdata($map_item->uid, true);
|
||||
|
||||
// titleuid (is not in the GetMapInfos method..)
|
||||
$map_item->titleuid = $map_item->gbx->titleUid;
|
||||
|
||||
// author Informations from the GBXBaseFetcher
|
||||
$map_item->authorNick = $map_item->gbx->authorNick;
|
||||
$map_item->authorZone = $map_item->gbx->authorZone;
|
||||
$map_item->authorEInfo = $map_item->gbx->authorEInfo;
|
||||
*
|
||||
*/
|
||||
$mapFetcher = new \GBXChallMapFetcher(true);
|
||||
try{
|
||||
$mapFetcher->processFile($this->server->mapdir . $this->filename);
|
||||
@ -81,6 +66,7 @@ class map {
|
||||
{
|
||||
trigger_error($e->getMessage(), E_USER_WARNING);
|
||||
}
|
||||
|
||||
$this->authorNick = $mapFetcher->authorNick;
|
||||
$this->authorEInfo = $mapFetcher->authorEInfo;
|
||||
$this->authorZone = $mapFetcher->authorZone;
|
||||
|
Loading…
Reference in New Issue
Block a user