From 8ec11b35ad7045c191da467ab66c8c152ee8a955 Mon Sep 17 00:00:00 2001 From: Michael Yoo Date: Sun, 26 May 2013 17:27:16 +0930 Subject: [PATCH] Set up base for upcoming Mob MobAI and MobAPI --- src/API/MobAPI.php | 37 +++++++++++++++++++++++++++++++++++++ src/API/ServerAPI.php | 3 ++- 2 files changed, 39 insertions(+), 1 deletion(-) create mode 100644 src/API/MobAPI.php diff --git a/src/API/MobAPI.php b/src/API/MobAPI.php new file mode 100644 index 0000000000..48c6ea2e12 --- /dev/null +++ b/src/API/MobAPI.php @@ -0,0 +1,37 @@ +server = ServerAPI::request(); + } + + public function init(){ + + } +} diff --git a/src/API/ServerAPI.php b/src/API/ServerAPI.php index 71b6de2c7c..88732d5539 100644 --- a/src/API/ServerAPI.php +++ b/src/API/ServerAPI.php @@ -160,6 +160,7 @@ class ServerAPI{ $this->loadAPI("tileentity", "TileEntityAPI"); $this->loadAPI("player", "PlayerAPI"); $this->loadAPI("time", "TimeAPI"); + $this->loadAPI("mob", "MobAPI"); foreach($this->apiList as $ob){ if(is_callable(array($ob, "init"))){ @@ -416,4 +417,4 @@ class ServerAPI{ console("[".($internal === true ? "INTERNAL":"DEBUG")."] API \x1b[36m".$name."\x1b[0m [\x1b[30;1m".$class."\x1b[0m] loaded", true, true, ($internal === true ? 3:2)); } -} \ No newline at end of file +}