Es geht um die Anzeige der Account-/Login-ID (oben links) in der Charakterauswahl, welche die Gameforge-Server nutzen.
Die Funktion gibt die Account-ID als String zurück.
in Python wird es wie folgt genutzt:
Code:
net.GetLoginID()
Code:
/*
paste following code under
void SetLoginInfo(const char* c_szID, const char* c_szPassword);
*/
std::string GetLoginID() {return m_stID;}
Code:
/*
paste following code under
PyObject* netSetLoginInfo(PyObject* poSelf, PyObject* poArgs)
{ ... }
*/
PyObject* netGetLoginID(PyObject* poSelf, PyObject* poArgs)
{
CPythonNetworkStream& rkNetStream=CPythonNetworkStream::Instance();
return Py_BuildValue("s", rkNetStream.GetLoginID().c_str());
}
/*
paste following code under
{ "SetLoginInfo", netSetLoginInfo, METH_VARARGS },
*/
{ "GetLoginID", netGetLoginID, METH_VARARGS },







