aboutsummaryrefslogtreecommitdiffstats
path: root/inc/craftmine.inc
diff options
context:
space:
mode:
Diffstat (limited to 'inc/craftmine.inc')
-rw-r--r--inc/craftmine.inc13
1 files changed, 13 insertions, 0 deletions
diff --git a/inc/craftmine.inc b/inc/craftmine.inc
index f5dbbb1..7dd5ba4 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(),