getSpawnPositionAttacker() as $point) { $spawnAttackers[] = $point->toArray(); } $spawnDefenders = []; foreach ($map->getSpawnPositionDefender() as $point) { $spawnDefenders[] = $point->toArray(); } $boxes = []; foreach ($map->getBoxes() as $box) { $boxes[] = [ "width" => $box->widthX, "height" => $box->heightY, "depth" => $box->depthZ, "x" => $box->getBase()->x, "y" => $box->getBase()->y, "z" => $box->getBase()->z, ]; } ?>