Added ifndef for packets Binary

This commit is contained in:
Shoghi Cervantes 2014-10-30 16:41:11 +01:00
parent 09a01be709
commit 9a65279c6a
4 changed files with 8 additions and 0 deletions

View File

@ -23,7 +23,9 @@ namespace pocketmine\network\protocol;
#include <rules/DataPacket.h>
#ifndef COMPILE
use pocketmine\utils\Binary;
#endif
class AddMobPacket extends DataPacket{
public static $pool = [];

View File

@ -23,7 +23,9 @@ namespace pocketmine\network\protocol;
#include <rules/DataPacket.h>
#ifndef COMPILE
use pocketmine\utils\Binary;
#endif
class AddPlayerPacket extends DataPacket{
public static $pool = [];

View File

@ -24,7 +24,9 @@ namespace pocketmine\network\protocol;
#include <rules/DataPacket.h>
use pocketmine\item\Item;
#ifndef COMPILE
use pocketmine\utils\Binary;
#endif
abstract class DataPacket extends \stdClass{

View File

@ -23,7 +23,9 @@ namespace pocketmine\network\protocol;
#include <rules/DataPacket.h>
#ifndef COMPILE
use pocketmine\utils\Binary;
#endif
class SetEntityDataPacket extends DataPacket{
public static $pool = [];