private function compareResults($editorId) { $result = $this->callFunction("games", "createGame", array($editorId, $this->strFullName, $this->strDescription, $this->intPCMediaID, $this->intIconMediaID, $this->intMediaID, $this->boolIsLocational, $this->boolReadyForPublic, $this->boolShareToMap, $this->boolShareToBook, $this->playerCreateTag, $this->playerCreateComments, $this->intIntroNodeId, $this->intCompleteNodeId, $this->intInventoryCap)); if ($this->parseReturnCode($result) === 0) { $this->gameId = $this->parseData($result); Model::$gameId = $this->parseData($result); $this->testLog("Created Game(" . $this->gameId . ")"); return new testResult(TestConf::tr_SUCCESS); } else { if ($this->parseReturnCode($result) == 4) { $this->testLog("Duplicate name- deleting and re-calling..."); $result = $this->callFunction("games", "deleteGame", array($this->parseData($result))); return $this->compareResults($editorId); } else { return new testResult(TestConf::tr_FAIL, $result); } } }