DragonNest/Server/ServerCommon/DNCommonVariable.h
2024-12-20 16:56:44 +08:00

23 lines
1.5 KiB
C++
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#pragma once
#include "DNCommonDef.h"
class CDNUserSession;
class CDNCommonVariable
{
private:
CDNUserSession *m_pSession;
std::map<CommonVariable::Type::eCode, CommonVariable::Data> m_mVariableData;
public:
CDNCommonVariable(CDNUserSession *pSession);
~CDNCommonVariable(void);
bool InitializeData( const TAGetListVariableReset* pA );
bool ModData( CommonVariable::Type::eCode Type, INT64 biValue, __time64_t tDate = 0 );
bool GetDataValue( CommonVariable::Type::eCode Type, INT64& biValue );
bool GetDataModDate( CommonVariable::Type::eCode Type, __time64_t& tDate );
bool IncData( CommonVariable::Type::eCode Type, __time64_t tDate = 0 );
void SendCommonVariableData(CommonVariable::Type::eCode Type);
};