mirror of
https://github.com/Shadowss/TravianZ.git
synced 2026-07-06 04:44:21 +00:00
New automation
+Separated Automation.php from the UI and users classes NOTE: This is only a test, it'll not absolutely be as it is in this commit in the final version.
This commit is contained in:
@@ -16,6 +16,26 @@
|
||||
## ##
|
||||
#################################################################################
|
||||
|
||||
include_once("Database.php");
|
||||
include_once("Data/buidata.php");
|
||||
include_once("Data/unitdata.php");
|
||||
include_once("Data/hero_full.php");
|
||||
include_once("Units.php");
|
||||
include_once("Battle.php");
|
||||
include_once("Technology.php");
|
||||
include_once("Ranking.php");
|
||||
include_once("Generator.php");
|
||||
include_once("Multisort.php");
|
||||
|
||||
$autoprefix = '';
|
||||
for ($i = 0; $i < 5; $i++) {
|
||||
$autoprefix = str_repeat('../', $i);
|
||||
if (file_exists($autoprefix.'autoloader.php')) {
|
||||
// we have our path, let's leave
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
class Automation {
|
||||
|
||||
private $bountyresarray = [];
|
||||
|
||||
@@ -317,5 +317,5 @@ class Village {
|
||||
};
|
||||
$village = new Village;
|
||||
$building = new Building;
|
||||
include_once("Automation.php");
|
||||
//include_once("Automation.php");
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user