mirror of
https://foundry.openuru.org/gitblit/r/CWE-ou-minkata.git
synced 2025-07-18 11:19:10 +00:00
Trash cruft
This commit is contained in:
@ -1393,73 +1393,6 @@ extern bool gDataServerLocal;
|
||||
#include "plQuality.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()
|
||||
{
|
||||
|
@ -296,15 +296,6 @@ public:
|
||||
void IWriteDefaultGraphicsSettings(const plFileName& destFile);
|
||||
|
||||
plAnimDebugList *fAnimDebugList;
|
||||
|
||||
#if 0
|
||||
std::string fUsername;
|
||||
std::string fPasswordDigest;
|
||||
std::string fServer;
|
||||
int fPlayerID;
|
||||
bool fRecreatePlayer;
|
||||
bool fAuthPassed;
|
||||
#endif
|
||||
};
|
||||
|
||||
#endif // plClient_inc
|
||||
|
Reference in New Issue
Block a user