Set up base for upcoming Mob MobAI and MobAPI

This commit is contained in:
Michael Yoo 2013-05-26 17:27:16 +09:30
parent 00de63986b
commit 8ec11b35ad
2 changed files with 39 additions and 1 deletions

37
src/API/MobAPI.php Normal file
View File

@ -0,0 +1,37 @@
<?php
/*
-
/ \
/ \
/ PocketMine \
/ MP \
|\ @shoghicp /|
|. \ / .|
| .. \ / .. |
| .. | .. |
| .. | .. |
\ | /
\ | /
\ | /
\ | /
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
*/
class MobAPI{
private $server;
function __construct(){
$this->server = ServerAPI::request();
}
public function init(){
}
}

View File

@ -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));
}
}
}