aboutsummaryrefslogtreecommitdiffstats
path: root/inc/Inventory.inc
diff options
context:
space:
mode:
authorpiernov <piernov@piernov.org>2016-05-03 10:37:18 +0200
committerpiernov <piernov@piernov.org>2016-05-03 10:37:18 +0200
commit64e184b901fd4e7c9a829d14c5c34416923171c3 (patch)
tree70b5281ca85a38ef2a077e226dcce56a40ed563a /inc/Inventory.inc
parentadd9d3248a5adc02b071a301005c6f11195f7f7b (diff)
parentb8112f72b322fe5bf7048ac76251c8c637b9fee2 (diff)
downloadcandybox-64e184b901fd4e7c9a829d14c5c34416923171c3.tar.gz
candybox-64e184b901fd4e7c9a829d14c5c34416923171c3.tar.bz2
candybox-64e184b901fd4e7c9a829d14c5c34416923171c3.tar.xz
candybox-64e184b901fd4e7c9a829d14c5c34416923171c3.zip
Merge branch 'master' into alexichi
Diffstat (limited to 'inc/Inventory.inc')
-rw-r--r--inc/Inventory.inc6
1 files changed, 5 insertions, 1 deletions
diff --git a/inc/Inventory.inc b/inc/Inventory.inc
index 20c63bf..024a4fe 100644
--- a/inc/Inventory.inc
+++ b/inc/Inventory.inc
@@ -45,7 +45,11 @@ class Inventory {
$inv = self::get();
$inv->_removeItem($item);
}
-
+
+ public function addToXML($root) {
+ foreach($this->items as $item)
+ $item->addToXML($root);
+ }
}
?>