Initial MSVC 2008 projects workspace
This commit is contained in:
25
L2C_Server/datatables/CharTemplateTable.h
Normal file
25
L2C_Server/datatables/CharTemplateTable.h
Normal file
@@ -0,0 +1,25 @@
|
||||
#pragma once
|
||||
#include "world/templates/chars/L2PlayerTemplate.h"
|
||||
|
||||
class CharTemplateTable
|
||||
{
|
||||
protected:
|
||||
static CharTemplateTable *s_instance;
|
||||
static int s_refCount;
|
||||
CharTemplateTable();
|
||||
~CharTemplateTable();
|
||||
public:
|
||||
static CharTemplateTable *getInstance();
|
||||
static void freeInstance();
|
||||
|
||||
public:
|
||||
void load();
|
||||
static const wchar_t *getClassNameById( int classId );
|
||||
static const L2PlayerTemplate *getTemplate( int classId );
|
||||
|
||||
protected:
|
||||
void addItemToAllTemplates( int itemId, int amount, bool equipped );
|
||||
|
||||
protected:
|
||||
std::map<int, L2PlayerTemplate *> m_templates;
|
||||
};
|
Reference in New Issue
Block a user