diff options
author | Patrick Davison <snapwilliam@gmail.com> | 2013-02-09 14:19:39 -0800 |
---|---|---|
committer | Patrick Davison <snapwilliam@gmail.com> | 2013-02-09 14:19:39 -0800 |
commit | 25f12df52709d0965c7ef3260798d7b8055d97af (patch) | |
tree | 551edcea86e2ba6dee9244f8d05e01367a14f480 /includes/mapclass.php | |
parent | 9462f29413dc1320b3899f7fbbbb75be64fbaede (diff) | |
download | pathery-25f12df52709d0965c7ef3260798d7b8055d97af.tar.xz |
Mapclass support for ID. - Whoops.
Diffstat (limited to 'includes/mapclass.php')
-rw-r--r-- | includes/mapclass.php | 7 |
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); } |