This commit is contained in:
parent
7f8167ec20
commit
b49c9271c1
19 changed files with 2158 additions and 0 deletions
45
Utils/MapEdit/Core.h
Normal file
45
Utils/MapEdit/Core.h
Normal file
|
@ -0,0 +1,45 @@
|
|||
/***********************/
|
||||
/*** Map Editor Core ***/
|
||||
/***********************/
|
||||
|
||||
#ifndef __CORE_HEADER__
|
||||
#define __CORE_HEADER__
|
||||
|
||||
#include <Vector>
|
||||
|
||||
|
||||
/*****************************************************************************/
|
||||
//struct sLayer;
|
||||
struct sLayer
|
||||
{
|
||||
char Name[32];
|
||||
// sLayer *Next,*Prev;
|
||||
};
|
||||
|
||||
/*****************************************************************************/
|
||||
class CCore
|
||||
{
|
||||
public:
|
||||
CCore();
|
||||
~CCore();
|
||||
|
||||
// Layers
|
||||
void LayerAdd(char *Name=0);
|
||||
void LayerSetActive(int Layer);
|
||||
int LayerGetActive();
|
||||
int LayerGetCount();
|
||||
sLayer const &LayerGet(int i);
|
||||
void LayerDelete(int Layer);
|
||||
void LayerMoveUp(int Layer);
|
||||
void LayerMoveDown(int Layer);
|
||||
|
||||
|
||||
|
||||
private:
|
||||
|
||||
std::vector<sLayer> Layers;
|
||||
int ActiveLayer;
|
||||
};
|
||||
|
||||
/*****************************************************************************/
|
||||
#endif
|
Loading…
Add table
Add a link
Reference in a new issue