Files
Client/Server/RylServerProject/RylGameServer/Commands/Commands.h
LGram16 dd97ddec92 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>
2025-11-29 20:17:20 +09:00

105 lines
2.1 KiB
C++

#ifndef _RYL_GAME_CCOMMANDS_H_
#define _RYL_GAME_CCOMMANDS_H_
#include <RylServerLibrary/Utility/ServerAppFrameWork/ConsoleWindow/ConsoleCMDFactory.h>
// 아이템을 떨어뜨린다.
class CCMDDropItem : public CConsoleCommand
{
protected:
enum { MAX_NAME = 16 };
virtual CConsoleCommand* Clone(const char* szCommand, size_t nCommandLength);
virtual bool Destroy() { delete this; return true; }
virtual bool DoProcess();
char m_szName[MAX_NAME + 1];
unsigned short m_usItemProtoTypeID;
};
// 아이템리스트를 떨어뜨린다.
class CCMDDropItemList : public CConsoleCommand
{
protected:
enum { MAX_NAME = 16 };
enum { MAX_DROP_NUM = 64 };
virtual CConsoleCommand* Clone(const char* szCommand, size_t nCommandLength);
virtual bool Destroy() { delete this; return true; }
virtual bool DoProcess();
unsigned short m_nItemNum;
char m_szName[MAX_NAME + 1];
unsigned short m_usItemProtoTypeID[MAX_DROP_NUM];
};
// 접속 유저들에게 공지를 날릴 때 사용
class CCMDNotify : public CConsoleCommand
{
public:
CCMDNotify() : m_nLength(0) { m_szBuffer[0] = 0; }
virtual CConsoleCommand* Clone(const char* szCommand, size_t nCommandLength);
protected:
virtual bool DoProcess();
virtual bool Destroy() { delete this; return true; }
enum { MAX_NOTIFY = 2000 };
private:
char m_szBuffer[MAX_NOTIFY];
int m_nLength;
};
// 오토밸런스 on/off
class CCMDAutoBalance : public CConsoleCommand
{
protected:
virtual CConsoleCommand* Clone(const char* szCommand, size_t nCommandLength);
virtual bool Destroy() { delete this; return true; }
virtual bool DoProcess();
private:
enum AutoBalanceCmd
{
ERROR_CMD = 0,
NOW_STATE = 1,
AUTO_BALANCE_ON = 2,
AUTO_BALANCE_OFF = 3
};
unsigned char m_cCmd;
};
// 복권 이벤트 on/off
class CCMDLotteryEvent : public CConsoleCommand
{
protected:
virtual CConsoleCommand* Clone(const char* szCommand, size_t nCommandLength);
virtual bool Destroy() { delete this; return true; }
virtual bool DoProcess();
private:
enum LotteryEventCmd
{
ERROR_CMD = 0,
NOW_STATE = 1,
LOTTERY_EVENT_ON = 2,
LOTTERY_EVENT_OFF = 3
};
unsigned char m_cCmd;
};
#endif