aboutsummaryrefslogtreecommitdiffstats
path: root/inc/craftmine.inc
diff options
context:
space:
mode:
Diffstat (limited to 'inc/craftmine.inc')
-rw-r--r--inc/craftmine.inc15
1 files changed, 15 insertions, 0 deletions
diff --git a/inc/craftmine.inc b/inc/craftmine.inc
new file mode 100644
index 0000000..33a28d7
--- /dev/null
+++ b/inc/craftmine.inc
@@ -0,0 +1,15 @@
+<?php
+
+require_once("mine.inc");
+require_once("shop.inc");
+
+function sendCraftMine() {
+ $data = array("gold" => sendMine(),
+ "shop" => sendShop(),
+ "inventory" => Inventory::sendContent(),
+ "miners" => sendMiners()
+ );
+ echo json_encode($data);
+}
+
+?>