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>
41 lines
744 B
C++
41 lines
744 B
C++
#ifndef _RANKING_MGR_H_
|
|
#define _RANKING_MGR_H_
|
|
|
|
#pragma once
|
|
|
|
#include <Network/Packet/PacketStruct/RankingPacket.h>
|
|
#include <Creature/Character/CharacterClass.h>
|
|
|
|
// forward decl.
|
|
class CSendStream;
|
|
|
|
class CRankingDBMgr
|
|
{
|
|
public:
|
|
enum Const
|
|
{
|
|
MAX_DECLARE_RANK_NUM = 100,
|
|
NODE_NUM_PER_SENDING = 400
|
|
};
|
|
|
|
bool Initialize(void);
|
|
void UpdateRanking(RankingNode& node);
|
|
|
|
void SendRankingInfo(const RankingNode& node);
|
|
void SendRankingInfo(CSendStream& SendStream);
|
|
|
|
void DeleteRanking(RankingNode& node);
|
|
|
|
static CRankingDBMgr& GetInstance();
|
|
static VOID ReleaseInstance();
|
|
|
|
public:
|
|
CRankingDBMgr();
|
|
virtual ~CRankingDBMgr();
|
|
|
|
private:
|
|
|
|
RankingNode m_aryRanking[CClass::MAX_CLASS][MAX_DECLARE_RANK_NUM];
|
|
};
|
|
|
|
#endif |