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,65 @@
|
||||
#ifndef _RYL_DBAGENT_BILLING_DATA_H_
|
||||
#define _RYL_DBAGENT_BILLING_DATA_H_
|
||||
|
||||
#include <ctime>
|
||||
|
||||
// forward decl;
|
||||
class CSendStream;
|
||||
|
||||
namespace DBAgent
|
||||
{
|
||||
namespace DataStorage
|
||||
{
|
||||
// forward decl;
|
||||
class CSessionData;
|
||||
|
||||
class CBilling
|
||||
{
|
||||
public:
|
||||
|
||||
CBilling();
|
||||
~CBilling();
|
||||
|
||||
enum WarningType
|
||||
{
|
||||
WARN_BEFORE_1SEC = 0,
|
||||
NO_WARNING = 1,
|
||||
WARN_EVERY_MINUTE = 2
|
||||
};
|
||||
|
||||
|
||||
time_t GetLoginTime() const { return m_nLoginTime; }
|
||||
int GetPlayTime() const { return m_nPlayTime; }
|
||||
unsigned long GetCRMData() const { return m_dwCRMIndex1; }
|
||||
WarningType GetWarnMsgType() const { return m_eWarnMsgType; }
|
||||
char GetBillingType() const { return m_cBillingType; }
|
||||
|
||||
void SetWarnMsgType(WarningType eWarnMsgType) { m_eWarnMsgType = eWarnMsgType; }
|
||||
|
||||
//! <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>Ѵ<EFBFBD>.
|
||||
void StartBilling(int nPlayTime,
|
||||
unsigned long dwCRMIndex1, unsigned char cBillingType);
|
||||
|
||||
void ClearBilling();
|
||||
|
||||
//! <20><><EFBFBD>÷<EFBFBD><C3B7><EFBFBD> <20><><EFBFBD><EFBFBD>Ʈ<EFBFBD><C6AE> <20>߰<EFBFBD><DFB0>Ѵ<EFBFBD>
|
||||
void AddYouxiLandPoint(int nAdditionalPoint, unsigned char cBillingType);
|
||||
|
||||
//! true : <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> / false : <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><>.
|
||||
bool CheckBilling(const CSessionData& SessionData, time_t nCurrentTime);
|
||||
|
||||
private:
|
||||
|
||||
time_t m_nLoginTime; // <20>α<EFBFBD><CEB1><EFBFBD> <20>ð<EFBFBD>(midnight, January 1, 1970 <20><><EFBFBD><EFBFBD> <20>帥 <20>ð<EFBFBD>(sec))
|
||||
|
||||
int m_nPlayTime; // <20><><EFBFBD><EFBFBD> <20>ð<EFBFBD> (<28><>¥ Ȥ<><C8A4> <20>ð<EFBFBD>)
|
||||
unsigned long m_dwCRMIndex1; // PC<50><43> ID (0<≯<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>)
|
||||
WarningType m_eWarnMsgType; // <20>ؿ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><DEBD><EFBFBD> Ÿ<><C5B8> ( 0 : 1<><31><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> - <20>븸 <20><>, 1 : <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>, 2 : <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> )
|
||||
|
||||
char m_cBillingType; // <20><><EFBFBD><EFBFBD> Ÿ<><C5B8> (D : <20><><EFBFBD><EFBFBD> <20><>¥, T : <20><><EFBFBD><EFBFBD> <20>ð<EFBFBD>)
|
||||
char m_cFlags; // <20><><EFBFBD><EFBFBD> <20>÷<EFBFBD><C3B7><EFBFBD>.
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user