public function load($hex) { $items = str_split($hex, Config::get('item.size', 20)); for ($i = 0; $i < $this->getWidth() * $this->getHeight(); $i++) { $cords = $this->_getCordBySlot($i); $item = new Item($items[$i]); $item->parse(); if (!$item->isHexEmpty()) { $this->_put($item, $cords['x'], $cords['y']); } } }