function login($userId, $ipAddress, $callbackClient) { $msg = new CMessage(); $msg->setName("LG"); $msg->serialUint32($userId); $msg->serialUint32($ipAddress); $callbackClient->sendMessage($msg); }
function notifyForumMessage($guildId, $forumId) { $msg = new CMessage(); $msg->setName("MFS_NFM"); $msg->serialUint32($guildId); $msg->serialUint32($forumId); return parent::sendMessage($msg); }
function logout($userId) { $msg = new CMessage(); $msg->setName("LO"); $msg->serialUint32($userId); return parent::sendMessage($msg); }
function createScenario($sessionId, $callbackClient) { $msg = new CMessage(); $msg->setName("CSC"); $msg->serialUint32($sessionId); $callbackClient->sendMessage($msg); }
function forwardToDss($charId, $msg) { $msg = new CMessage(); $msg->setName("DSS_FW"); $msg->serialUint32($charId); $msg->serialUint32($msg); return parent::sendMessage($msg); }
function getHighRezGraph($varAddr, $startDate, $endDate, $milliStep) { $msg = new CMessage(); $msg->setName("GHRG"); $msg->serialString($varAddr); $msg->serialUint32($startDate); $msg->serialUint32($endDate); $msg->serialUint32($milliStep); $ret = ""; $ret = parent::sendMessage($msg); if ($ret == false) { // error during send $this->invokeError("getHighRezGraph", "Error in 'sendMessage'"); return false; } $retMsg = parent::waitMessage(); if ($ret == false) { // error during send $this->invokeError("getHighRezGraph", "Error in 'waitMessage'"); return false; } if (!($retMsg->MsgName === "R_GHRG")) { // error during send $this->invokeError("getHighRezGraph", "Invalid response, awaited 'R_GHRG', received '" . $retMsg->MsgName . "'"); return false; } // serial the return value $nbElem = 0; $retMsg->serialUInt32($nbElem); $retValue = array(); for ($i = 0; $i < $nbElem; $i++) { $retMsg->serialString($item); $retValue[] = $item; } // return the return value return $retValue; }