moved files

This commit is contained in:
Cheese 2015-07-06 09:18:35 +10:00
parent 2e328520a0
commit 5339b792ac
4 changed files with 62 additions and 3 deletions

View File

@ -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()
{
}
}

View File

@ -18,6 +18,7 @@ use pocketmine\event\level\LevelUnloadEvent;
use pocketmine\event\player\PlayerJoinEvent; use pocketmine\event\player\PlayerJoinEvent;
use pocketmine\event\Listener; use pocketmine\event\Listener;
use pocketmine\level\Position; use pocketmine\level\Position;
use pocketmine\math\Vector3;
use pocketmine\Server; use pocketmine\Server;
use pocketmine\Player; use pocketmine\Player;
@ -40,9 +41,6 @@ class WorldComponent implements Listener
private $mapData = array(); private $mapData = array();
private $mapSettings = array(); private $mapSettings = array();
private $posTest = null;
private $player = null;
public function __construct(Arena $arena) public function __construct(Arena $arena)
{ {
$this->arena = $arena; $this->arena = $arena;
@ -117,6 +115,8 @@ class WorldComponent implements Listener
{ {
$this->world = $this->arena->getPlugin()->getServer()->getLevelByName($this->gameFolder); $this->world = $this->arena->getPlugin()->getServer()->getLevelByName($this->gameFolder);
$this->world->setSpawnLocation(new Vector3(0,200,0));
$this->loadWorldData(); $this->loadWorldData();
print("Successfully Loaded World: " . $this->gameFolder . "\n"); print("Successfully Loaded World: " . $this->gameFolder . "\n");

View File

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

View File

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