More awesomeness, No AI flag!

This commit is contained in:
Shoghi Cervantes
2015-03-23 14:43:48 +01:00
parent 38f3dda13b
commit 4e934654ef
5 changed files with 30 additions and 20 deletions

View File

@ -28,13 +28,14 @@ class UpdateBlockPacket extends DataPacket{
public static $pool = [];
public static $next = 0;
const FLAG_NONE = 0b0;
const FLAG_NEIGHBORS = 0b1;
const FLAG_NOGRAPHIC = 0b100;
const FLAG_PRIORITY = 0b1000;
const FLAG_NONE = 0b0000;
const FLAG_NEIGHBORS = 0b0001;
const FLAG_NETWORK = 0b0010;
const FLAG_NOGRAPHIC = 0b0100;
const FLAG_PRIORITY = 0b1000;
const FLAG_ALL = self::FLAG_NEIGHBORS;
const FLAG_ALL_PRIORITY = self::FLAG_NEIGHBORS | self::FLAG_PRIORITY;
const FLAG_ALL = (self::FLAG_NEIGHBORS | self::FLAG_NETWORK);
const FLAG_ALL_PRIORITY = (self::FLAG_ALL | self::FLAG_PRIORITY);
public $records = []; //x, z, y, blockId, blockData, flags