aboutsummaryrefslogtreecommitdiffstats
path: root/inc/Inventory.inc
diff options
context:
space:
mode:
authorpiernov <piernov@piernov.org>2016-04-27 20:53:43 +0200
committerpiernov <piernov@piernov.org>2016-04-27 20:53:43 +0200
commit807e528d6a1ae40ab118f711fe2e8c2bb7df915a (patch)
tree1d4fbde95ff281d5bb628dcc545401146e26ff15 /inc/Inventory.inc
parent2b0a84a41eeb90094d42c3c516bf99837d08a745 (diff)
parentcaf62cfe0e439fc13f7c297954c4aeb21112a2ec (diff)
downloadcandybox-807e528d6a1ae40ab118f711fe2e8c2bb7df915a.tar.gz
candybox-807e528d6a1ae40ab118f711fe2e8c2bb7df915a.tar.bz2
candybox-807e528d6a1ae40ab118f711fe2e8c2bb7df915a.tar.xz
candybox-807e528d6a1ae40ab118f711fe2e8c2bb7df915a.zip
Merge branch 'feat/savegame' into piernov
Diffstat (limited to 'inc/Inventory.inc')
-rw-r--r--inc/Inventory.inc5
1 files changed, 5 insertions, 0 deletions
diff --git a/inc/Inventory.inc b/inc/Inventory.inc
index efe54f2..0a93d7f 100644
--- a/inc/Inventory.inc
+++ b/inc/Inventory.inc
@@ -36,6 +36,11 @@ class Inventory {
$inv = self::get();
$inv->_removeItem($item);
}
+
+ public function addToXML($root) {
+ foreach($this->items as $item)
+ $item->addToXML($root);
+ }
}
?>