Restructure repository to include all source folders
Move git root from Client/ to src/ to track all source code: - Client: Game client source (moved to Client/Client/) - Server: Game server source - GameTools: Development tools - CryptoSource: Encryption utilities - database: Database scripts - Script: Game scripts - rylCoder_16.02.2008_src: Legacy coder tools - GMFont, Game: Additional resources 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,90 @@
|
||||
|
||||
#include "stdafx.h"
|
||||
|
||||
#include <GameEvent/GameEventMgr.h>
|
||||
#include <GameEvent/LotteryEvent/LotteryEvent.h>
|
||||
|
||||
#include "RylGameServer.h"
|
||||
#include "Commands.h"
|
||||
|
||||
|
||||
CConsoleCommand* CCMDLotteryEvent::Clone(const char* szCommand, size_t nCommandLength)
|
||||
{
|
||||
const int MAX_BUFFER = 256;
|
||||
char szBuffer[MAX_BUFFER + 1];
|
||||
|
||||
const char* szDelimiter = " \t\r\n";
|
||||
|
||||
_snprintf(szBuffer, MAX_BUFFER, "%s", szCommand);
|
||||
szBuffer[MAX_BUFFER] = '\0';
|
||||
|
||||
char* token = strtok(szBuffer, szDelimiter);
|
||||
|
||||
CCMDLotteryEvent* lpCMD = new CCMDLotteryEvent;
|
||||
if (NULL != lpCMD)
|
||||
{
|
||||
token = strtok(NULL, szDelimiter);
|
||||
if (NULL == token)
|
||||
{
|
||||
lpCMD->m_cCmd = NOW_STATE;
|
||||
}
|
||||
else if (0 == strcmp("on", token))
|
||||
{
|
||||
lpCMD->m_cCmd = LOTTERY_EVENT_ON;
|
||||
}
|
||||
else if (0 == strcmp("off", token))
|
||||
{
|
||||
lpCMD->m_cCmd = LOTTERY_EVENT_OFF;
|
||||
}
|
||||
else
|
||||
{
|
||||
lpCMD->m_cCmd = ERROR_CMD;
|
||||
}
|
||||
}
|
||||
|
||||
return lpCMD;
|
||||
}
|
||||
|
||||
|
||||
|
||||
bool CCMDLotteryEvent::DoProcess()
|
||||
{
|
||||
CRylGameServer::GetInstance().PrintOutput(
|
||||
"Use server setup for modify lottery event.");
|
||||
|
||||
/*
|
||||
CLotteryEvent& LotteryEvent = CGameEventMgr::GetInstance().GetLotteryEvent();
|
||||
|
||||
switch (m_cCmd)
|
||||
{
|
||||
case NOW_STATE:
|
||||
if (true == LotteryEvent.IsActive())
|
||||
{
|
||||
CRylGameServer::GetInstance().PrintOutput("<22><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20>̺<EFBFBD>Ʈ<EFBFBD><C6AE> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Դϴ<D4B4>.");
|
||||
}
|
||||
else
|
||||
{
|
||||
CRylGameServer::GetInstance().PrintOutput("<22><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20>̺<EFBFBD>Ʈ<EFBFBD><C6AE> <20><><EFBFBD><EFBFBD><EFBFBD>ϰ<EFBFBD> <20><><EFBFBD><EFBFBD> <20>ʽ<EFBFBD><CABD>ϴ<EFBFBD>.");
|
||||
}
|
||||
break;
|
||||
|
||||
case LOTTERY_EVENT_ON:
|
||||
LotteryEvent.Active();
|
||||
CRylGameServer::GetInstance().PrintOutput("<22><><EFBFBD><EFBFBD> <20>̺<EFBFBD>Ʈ<EFBFBD><C6AE> <20><><EFBFBD><EFBFBD><EFBFBD>Ͽ<EFBFBD><CFBF><EFBFBD><EFBFBD>ϴ<EFBFBD>.");
|
||||
break;
|
||||
|
||||
case LOTTERY_EVENT_OFF:
|
||||
LotteryEvent.DeActive();
|
||||
CRylGameServer::GetInstance().PrintOutput("<22><><EFBFBD><EFBFBD> <20>̺<EFBFBD>Ʈ<EFBFBD><C6AE> <20><><EFBFBD><EFBFBD><EFBFBD>Ǿ<EFBFBD><C7BE><EFBFBD><EFBFBD>ϴ<EFBFBD>.");
|
||||
break;
|
||||
|
||||
case ERROR_CMD:
|
||||
default:
|
||||
CRylGameServer::GetInstance().PrintOutput("<22>߸<EFBFBD><DFB8><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>Դϴ<D4B4>.");
|
||||
break;
|
||||
}
|
||||
*/
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user