Browse Source

Trash cruft

Adam Johnson 11 years ago
parent
commit
6324df3d0f
  1. 67
      Sources/Plasma/Apps/plClient/plClient.cpp
  2. 9
      Sources/Plasma/Apps/plClient/plClient.h

67
Sources/Plasma/Apps/plClient/plClient.cpp

@ -1393,73 +1393,6 @@ extern bool gDataServerLocal;
#include "plQuality.h" #include "plQuality.h"
#include "plLoadMask.h" #include "plLoadMask.h"
#if 0
class LoginNetClientCommCallback : public plNetClientComm::Callback
{
public:
enum Op {kAuth, kCreatePlayer, kGetPlayerList, kLeave, kDeletePlayer};
LoginNetClientCommCallback() : plNetClientComm::Callback(), fNumCurrentOps(0)
{}
virtual void OperationStarted( uint32_t context )
{
fNumCurrentOps++;
}
virtual void OperationComplete( uint32_t context, int resultCode )
{
if (context == kAuth)
{
if (hsSucceeded(resultCode))
{
plClient::GetInstance()->fAuthPassed = true;
}
}
else if (context == kGetPlayerList)
{
if ( hsSucceeded( resultCode ) )
{
uint32_t numPlayers = fCbArgs.GetInt(0);
uint32_t pId = -1;
std::string pName;
for (uint32_t i = 0; i < numPlayers; i++)
{
pId = fCbArgs.GetInt((uint16_t)(i*3+1));
pName = fCbArgs.GetString((uint16_t)(i*3+2));
if (pName == plClient::GetInstance()->fUsername)
{
plClient::GetInstance()->fPlayerID = pId;
break;
}
}
}
}
else if (context == kCreatePlayer)
{
if (hsSucceeded(resultCode))
plClient::GetInstance()->fPlayerID = fCbArgs.GetInt(0);
}
else if (context == kDeletePlayer)
{
if (hsSucceeded(resultCode))
plClient::GetInstance()->fPlayerID = -1;
}
fNumCurrentOps--;
}
bool IsActive()
{
return fNumCurrentOps > 0;
}
private:
int fNumCurrentOps;
};
#endif
//============================================================================ //============================================================================
bool plClient::StartInit() bool plClient::StartInit()
{ {

9
Sources/Plasma/Apps/plClient/plClient.h

@ -296,15 +296,6 @@ public:
void IWriteDefaultGraphicsSettings(const plFileName& destFile); void IWriteDefaultGraphicsSettings(const plFileName& destFile);
plAnimDebugList *fAnimDebugList; plAnimDebugList *fAnimDebugList;
#if 0
std::string fUsername;
std::string fPasswordDigest;
std::string fServer;
int fPlayerID;
bool fRecreatePlayer;
bool fAuthPassed;
#endif
}; };
#endif // plClient_inc #endif // plClient_inc

Loading…
Cancel
Save