moved files
This commit is contained in:
parent
2e328520a0
commit
5339b792ac
@ -0,0 +1,25 @@
|
||||
<?php
|
||||
/**
|
||||
* Created by PhpStorm.
|
||||
* User: C
|
||||
* Date: 5/07/2015
|
||||
* Time: 4:00 PM
|
||||
*/
|
||||
|
||||
namespace mineplex\plugin\gameengine\game\components\world;
|
||||
|
||||
|
||||
use pocketmine\scheduler\AsyncTask;
|
||||
|
||||
class AsyncWorldLoader extends AsyncTask
|
||||
{
|
||||
public function __construct()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public function onRun()
|
||||
{
|
||||
|
||||
}
|
||||
}
|
@ -18,6 +18,7 @@ use pocketmine\event\level\LevelUnloadEvent;
|
||||
use pocketmine\event\player\PlayerJoinEvent;
|
||||
use pocketmine\event\Listener;
|
||||
use pocketmine\level\Position;
|
||||
use pocketmine\math\Vector3;
|
||||
use pocketmine\Server;
|
||||
use pocketmine\Player;
|
||||
|
||||
@ -40,9 +41,6 @@ class WorldComponent implements Listener
|
||||
private $mapData = array();
|
||||
private $mapSettings = array();
|
||||
|
||||
private $posTest = null;
|
||||
private $player = null;
|
||||
|
||||
public function __construct(Arena $arena)
|
||||
{
|
||||
$this->arena = $arena;
|
||||
@ -117,6 +115,8 @@ class WorldComponent implements Listener
|
||||
{
|
||||
$this->world = $this->arena->getPlugin()->getServer()->getLevelByName($this->gameFolder);
|
||||
|
||||
$this->world->setSpawnLocation(new Vector3(0,200,0));
|
||||
|
||||
$this->loadWorldData();
|
||||
|
||||
print("Successfully Loaded World: " . $this->gameFolder . "\n");
|
||||
|
@ -0,0 +1,17 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace mineplex\plugin\gameengine\game\components\world\event;
|
||||
|
||||
use mineplex\plugin\gameengine\arenas\ArenaEvent;
|
||||
use mineplex\plugin\gameengine\arenas\Arena;
|
||||
|
||||
class WorldLoadFailEvent extends ArenaEvent
|
||||
{
|
||||
public static $handlerList = null;
|
||||
|
||||
public function __construct(Arena $arena)
|
||||
{
|
||||
parent::__construct($arena);
|
||||
}
|
||||
}
|
@ -0,0 +1,17 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace mineplex\plugin\gameengine\game\components\world\event;
|
||||
|
||||
use mineplex\plugin\gameengine\arenas\ArenaEvent;
|
||||
use mineplex\plugin\gameengine\arenas\Arena;
|
||||
|
||||
class WorldLoadSuccessEvent extends ArenaEvent
|
||||
{
|
||||
public static $handlerList = null;
|
||||
|
||||
public function __construct(Arena $arena)
|
||||
{
|
||||
parent::__construct($arena);
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user