From 25f12df52709d0965c7ef3260798d7b8055d97af Mon Sep 17 00:00:00 2001 From: Patrick Davison Date: Sat, 9 Feb 2013 14:19:39 -0800 Subject: Mapclass support for ID. - Whoops. --- includes/mapclass.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'includes/mapclass.php') diff --git a/includes/mapclass.php b/includes/mapclass.php index d086137..5f28c85 100644 --- a/includes/mapclass.php +++ b/includes/mapclass.php @@ -21,6 +21,7 @@ define("TileUnbuildable", 'q'); define("TileSinglePath", 'x'); class map { + public $ID; public $tiles; public $teleports; public $checkpoints; @@ -39,10 +40,10 @@ class map { public $code; - public function __construct($code = NULL) { + public function __construct($code = NULL, $mapID = NULL) { //TODO: Use new code by default. - if ($code !== NULL) - $this->applyMapFromOldCode($code); + if ($mapID !== NULL) $this->ID = $mapID; + if ($code !== NULL) $this->applyMapFromOldCode($code); //$this->applyMapFromCode($code); } -- cgit v1.2.3