diff options
author | alexichi <alexbankai96@gmail.com> | 2016-05-11 11:56:19 +0200 |
---|---|---|
committer | alexichi <alexbankai96@gmail.com> | 2016-05-11 11:56:19 +0200 |
commit | 35efaf74e828b738a20324a664cf9c2e08ef47d4 (patch) | |
tree | 183b4704c87c61b690010efbd6f3b30218328bcc /inc/craftmine.inc | |
parent | 2350d43a09495db18b22b86ffc815a84eeb35579 (diff) | |
parent | 1158d2063f00f38de19a4600566b244a942d86ba (diff) | |
download | candybox-35efaf74e828b738a20324a664cf9c2e08ef47d4.tar.gz candybox-35efaf74e828b738a20324a664cf9c2e08ef47d4.tar.bz2 candybox-35efaf74e828b738a20324a664cf9c2e08ef47d4.tar.xz candybox-35efaf74e828b738a20324a664cf9c2e08ef47d4.zip |
Merge branch 'master' of piernov.org:candybox into alexichialexichi
Conflicts:
inc/perso.inc
Diffstat (limited to 'inc/craftmine.inc')
-rw-r--r-- | inc/craftmine.inc | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/inc/craftmine.inc b/inc/craftmine.inc index f5dbbb1..35a7e18 100644 --- a/inc/craftmine.inc +++ b/inc/craftmine.inc @@ -1,10 +1,23 @@ <?php +/** + * Sends all data from previous session on page load. + * + * @package inc\craftmine.inc + * @author Alexandre Renoux + * @author Pierre-Emmanuel Novac + */ require_once("mine.inc"); require_once("shop.inc"); require_once("dungeon.inc"); require_once("perso.inc"); +/** + * Sends all data from previous session on page load. + * All data from the different modules are packed in an array. + * + * @return void + */ function sendCraftMine() { $data = array("gold" => sendMine(), "shop" => sendShop(), @@ -16,4 +29,8 @@ function sendCraftMine() { echo json_encode($data); } +function resetGame() { + $_SESSION = array(); +} + ?> |