summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPatrick Davison <snapwilliam@gmail.com>2013-02-09 14:19:39 -0800
committerPatrick Davison <snapwilliam@gmail.com>2013-02-09 14:19:39 -0800
commit25f12df52709d0965c7ef3260798d7b8055d97af (patch)
tree551edcea86e2ba6dee9244f8d05e01367a14f480
parent9462f29413dc1320b3899f7fbbbb75be64fbaede (diff)
downloadpathery-25f12df52709d0965c7ef3260798d7b8055d97af.tar.xz
Mapclass support for ID. - Whoops.
-rw-r--r--includes/mapclass.php7
1 files changed, 4 insertions, 3 deletions
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);
}