diff options
author | piernov <piernov@piernov.org> | 2016-04-27 20:02:28 +0200 |
---|---|---|
committer | piernov <piernov@piernov.org> | 2016-04-27 20:02:28 +0200 |
commit | 3d59c6ceca1c5b05b304e1f8146e32d701a17acc (patch) | |
tree | 53feeb76b2e32448995f363707fb12d601f82fa2 /inc/Inventory.inc | |
parent | 8bb2650b5d35dc5f47c8a46167dc2044638d1f4c (diff) | |
download | candybox-3d59c6ceca1c5b05b304e1f8146e32d701a17acc.tar.gz candybox-3d59c6ceca1c5b05b304e1f8146e32d701a17acc.tar.bz2 candybox-3d59c6ceca1c5b05b304e1f8146e32d701a17acc.tar.xz candybox-3d59c6ceca1c5b05b304e1f8146e32d701a17acc.zip |
Add addToXML() methods on Inventory and Item objects
Diffstat (limited to 'inc/Inventory.inc')
-rw-r--r-- | inc/Inventory.inc | 5 |
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); + } } ?> |