Initial MSVC 2008 projects workspace
This commit is contained in:
24
L2C_Server/datatables/CharNameTable.h
Normal file
24
L2C_Server/datatables/CharNameTable.h
Normal file
@@ -0,0 +1,24 @@
|
||||
#pragma once
|
||||
#include "l2c_utils.h"
|
||||
|
||||
class CharNameTable
|
||||
{
|
||||
protected:
|
||||
CharNameTable();
|
||||
~CharNameTable();
|
||||
static CharNameTable *s_instance;
|
||||
static int s_refCount;
|
||||
public:
|
||||
static CharNameTable *getInstance();
|
||||
static void freeInstance();
|
||||
|
||||
public:
|
||||
bool doesCharNameExist( const wchar_t *charName );
|
||||
int getAccountCharCount( const wchar_t *accountName );
|
||||
|
||||
void LockDB();
|
||||
void UnlockDB();
|
||||
|
||||
protected:
|
||||
CriticalSection m_lock;
|
||||
};
|
Reference in New Issue
Block a user